From owner-freebsd-ports Wed Mar 13 02:40:42 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA20972 for ports-outgoing; Wed, 13 Mar 1996 02:40:42 -0800 (PST) Received: from vegemite.Stanford.EDU (vegemite.Stanford.EDU [171.65.76.158]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA20967 for ; Wed, 13 Mar 1996 02:40:40 -0800 (PST) Received: (hlew@localhost) by vegemite.Stanford.EDU (8.7.1/8.6.4) id CAA21119; Wed, 13 Mar 1996 02:40:39 -0800 (PST) Date: Wed, 13 Mar 1996 02:40:38 -0800 (PST) From: Howard Lew To: ports@freebsd.org Subject: compilation problem with mgetty+sendfax/vgetty Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.