comipling mgetty-1.1.15

"Robert W. Canary" (rwcanary@ohiocounty.net)
Fri, 3 Jul 1998 06:51:56 +0200


Hi Gert,

I am trying to update my mgetty and I am getting the following errors
from the compiler.

[root@office mgetty-1.1.15]# make
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP
-DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" -c mgetty.c
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c logfile.c -o logfile.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c do_chat.c -o do_chat.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c locks.c -o locks.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c logname.c -o logname.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP
-DCONFDIR=\"/etc/mgetty+sendfax\" -c login.c
login.c: In function `login_dispatch':
login.c:157: warning: implicit declaration of function `atoi'
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c mg_m_init.c -o mg_m_init.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c modem.c -o modem.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c faxrec.c -o faxrec.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c faxrecp.c -o faxrecp.o
faxrecp.c: In function `fax_get_page_data':
faxrecp.c:73: warning: implicit declaration of function `time'
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c faxsend.c -o faxsend.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c faxlib.c -o faxlib.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c faxhng.c -o faxhng.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c io.c -o io.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c gettydefs.c -o gettydefs.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c tio.c -o tio.o
tio.c:21: warning: `tio_compilation_type' defined but not used
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP
-DCONFDIR=\"/etc/mgetty+sendfax\" -c cnd.c
cnd.c: In function `cndlookup':
cnd.c:207: warning: suggest parentheses around assignment used as
truth value
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c getdisk.c -o getdisk.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c goodies.c -o goodies.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c config.c -o config.o
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP
-DCONFDIR=\"/etc/mgetty+sendfax\" -c conf_mg.c
gcc -O2 -Wall -pipe -DFIDO -DAUTO_PPP   -c do_stat.c -o do_stat.o
gcc -o mgetty mgetty.o logfile.o do_chat.o locks.o utmp.o logname.o
login.o mg_m_init.o modem.o faxrec.o faxrecp.o faxsend.o faxlib 
mgetty.o: In function `main':
mgetty.o(.text+0x922): undefined reference to `wait_for_ring'
mgetty.o(.text+0xa3e): undefined reference to `wait_for_ring'
mgetty.o(.text+0xabf): undefined reference to `wait_for_ring'
make: *** [mgetty] Error 1

I am on a Linux system 2.0.32 with gcc-2.7.2.3-8.  May I have your
suggestions please?

thanks in advance :-)
--
robert