Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 1996 02:40:38 -0800 (PST)
From:      Howard Lew <hlew@genome.Stanford.EDU>
To:        ports@freebsd.org
Subject:   compilation problem with mgetty+sendfax/vgetty
Message-ID:  <Pine.SUN.3.91.960313023003.21101B-100000@vegemite.Stanford.EDU>

next in thread | raw e-mail | index | archive | help

Has anyone tried getting the voice patches for mgetty+sendfax to work?  
It seems to choke.  Apparently, the Makefile in ports doesn't compile the 
voice stuff...  But compiling it with make vgetty chokes with an error 
(#1 below).

I found that adding the -DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\" in 
the VGETTY_CFLAGS fixes this problem, but then it chokes with another 
error which I'm not sure how to fix... (#2 below).

Any help is greatly appreciated.  Oh BTW, this is on a 2.1R system....
Thanks in advance.


------------
#1

server: {22} make vgetty
`mgetty' is up to date.
cd voice; make CFLAGS="-O2 -Wall -pipe" CC="gcc" LDFLAGS=""  LN="ln -s" 
ZYXEL_ROM=612 VOICE_DIR="/usr/spool/voice"  vgetty-all
Making vgetty.c from ../mgetty.c
ln -s ../mgetty.c vgetty.c
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  -DZYXEL_ROM=612 -O2 
-Wall -pipe vgetty.c -o vgetty.o
vgetty.c: In function `main':
vgetty.c:887: `FAX_SPOOL_IN' undeclared (first use this function)
vgetty.c:887: (Each undeclared identifier is reported only once
vgetty.c:887: for each function it appears in.)
*** Error code 1

Stop.
*** Error code 1

Stop.

-------

#2

server: {39} make 
cd ..; make vgetty
`mgetty' is up to date.
cd voice; make CFLAGS="-O2 -Wall -pipe" CC="gcc" LDFLAGS=""  LN="ln -s" 
ZYXEL_ROM=612 VOICE_DIR="/usr/spool/voice"  vgetty-all
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe vgetty.c -o vgetty.o
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe vanswer.c -o vanswer.o
vanswer.c: In function `voice_answer':
vanswer.c:388: warning: int format, pid_t arg (arg 4)
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe voclib.c -o voclib.o
voclib.c: In function `open_fft_pipe':
voclib.c:452: warning: int format, pid_t arg (arg 3)
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe vpaths.c -o vpaths.o
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe vmodem.c -o vmodem.o
echo 'char *voice_rel="'021-Oct28'";' >vrel.c
gcc -c -I.. -DVOICE -DVOICE_DIR=\"/usr/spool/voice\"  
-DFAX_SPOOL_IN=\"/usr/spool/fax/incoming\"  -DZYXEL_ROM=612 -O2 -Wall 
-pipe vrel.c -o vrel.o
gcc -o vgetty vgetty.o vanswer.o voclib.o vpaths.o vmodem.o vrel.o  
../logfile.o ../do_chat.o ../utmp.o ../logname.o ../login.o  ../faxrec.o 
../faxsend.o ../locks.o ../faxlib.o ../faxhng.o  ../io.o ../gettydefs.o 
../tio.o ../config.o ../cnd.o ../getdisk.o  ../mg_m_init.o ../goodies.o 
../utmp.o: Undefined symbol `_login' referenced from text segment
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960313023003.21101B-100000>