comipling mgetty-1.1.15
Gert Doering (gert@greenie.muc.de)
Fri, 3 Jul 1998 09:08:35 +0200
Hi,
Robert W. Canary wrote:
> I am trying to update my mgetty and I am getting the following errors
> from the compiler.
>
> [root@office mgetty-1.1.15]# make
[..]
> -DCONFDIR=\"/etc/mgetty+sendfax\" -c login.c
> login.c: In function `login_dispatch':
> login.c:157: warning: implicit declaration of function `atoi'
[..]
> faxrecp.c: In function `fax_get_page_data':
> faxrecp.c:73: warning: implicit declaration of function `time'
[..]
> 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
Those are only warnings, and as such, harmless.
> 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
Now this is bad. It means that it isn't linking in "ring.o".
What kind of source tree is this? Did you get a new .tar.gz, with all of
mgetty 1.1.15, or just the diff 1.1.14 -> 1.1.15? Sounds as if something
in "Makefile" got garbled, the last line should look more like this
(broken into 4 lines for readability):
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 ring.o faxlib.o faxsend.o faxrecp.o
class1.o class1lib.o faxhng.o io.o gettydefs.o tio.o cnd.o getdisk.o
goodies.o config.o conf_mg.o do_stat.o
- you're missing "ring.o".
> I am on a Linux system 2.0.32 with gcc-2.7.2.3-8. May I have your
> suggestions please?
Did you get any .rej files when patching 1.1.14->1.1.15?
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de