(#459) Compile errors in Linux V9 - curses?

Speak Freely Forum <[email protected]>
Newsgroups gmane.comp.audio.speak-freely.general
Message-ID <[email protected]>
Message posted to the Speak Freely Forum
  by Greg Forrest on Mon, 22 Sep 2003 02:00:38 +0200 (MEST).
  http://www.fourmilab.ch/wb/speak-freely.pl?rev=459

I have been truncated. Ouch! Lets try this again:

After hours of searching for some solutions, I thought I would post this
question for the group.

When I originally tried to "make" V7.6a of SF (I only want to run sfreflect),
I received the following errors:

[root@12-323-104-60 speak_freely-7.6a]# make

gcc -Wall -O3 -DHEXDUMP -Iadpcm -Iaes -Icelp -Ilpc -Igsm/inc -Ilpc10 -Imd5 -Id
es -Iidea -Ilibdes -Iblowfish -DInternet_Port=2074 -DAUDIO_BLOCKING -DLINUX
-DH
ALF_DUPLEX -DM_LITTLE_ENDIAN -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER
-DHAVE_DEV
_RANDOM -c -o speaker.o speaker.c
In file included from speaker.c:11:
speakfree.h:32:20: curses.h: No such file or directory
speaker.c: In function `main':
speaker.c:2194: warning: implicit declaration of function `initscr'
speaker.c:2195: warning: implicit declaration of function `move'
speaker.c:2196: warning: implicit declaration of function `printw'
speaker.c:2203: warning: implicit declaration of function `noecho'
speaker.c:2204: warning: implicit declaration of function `getstr'
speaker.c:2206: warning: implicit declaration of function `echo'
speaker.c:2207: warning: implicit declaration of function `endwin'
speaker.c:2820: warning: operation on `ident' may be undefined
make: *** [speaker.o] Error 1

TO focus on the first error...I have no "curses.h" file (I suspect Linux V9 no
longer includes this file).

I then "remarked" out reference to curses.h in speakfree.h and the program
compiled up to a point where the file "ncurses" could not be found. This file
does not exist in Linux V9 either. Here is this message:

[root@12-323-104-60 speak_freely-7.6a]# make

gcc -Wall -O3 -DHEXDUMP -Iadpcm -Iaes -Icelp -Ilpc -Igsm/inc -Ilpc10 -Imd5
-Ides -Iidea -Ilibdes -Iblowfish -DInternet_Port=2074 -DAUDIO_BLOCKING -DLINUX
-DHALF_DUPLEX -DM_LITTLE_ENDIAN -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER
-DHAVE_DEV_RANDOM -c -o speaker.o speaker.c
speaker.c: In function `main':
speaker.c:2194: warning: implicit declaration of function `initscr'

…………..
…………..
gcc -Wall speaker.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o
tempfile.o ulaw.o usleep.o vatpkt.o vox.o audio_hp.o audio_sgi.o audio_alsa.o
common.o adpcm/adpcm-u.o aes/aes.a blowfish/libblowfish.a celp/celp.o
des/des.a md5/md5.o idea/idea.a lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o
xdsub.o libdes/libdes.a -lncurses -lm -o sfspeaker
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [sfspeaker] Error 1

[root@12-323-104-60 speak_freely-7.6a]#

I then installed an ncurses4 5.0 - 11 RPM, but this package does not include
either file. At this point, I could simply remark ncurses out, but I am
getting a bit concerned....

Earlier, I ran a binary version of sfreflect to avoid compiling problems, but
I experienced "segmentation faults" on a regular basis. So I figured I would
formally compile and install it to see if this is more reliable.

Any help would be appreciated.

Greg Forrest
San Francisco area, CA USA


                      * * *

To unsubscribe from this mailing list, send E-mail containing
the word "unsubscribe" in the message body (*not* as the
Subject) to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.