[SuSE Linux] compiling netrek with suse 6.0
I am trying to compile netrek server 2.4p8 and keep getting this error: gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -L/usr/local/lib -o ntserv data.o shmem.o plutil.o path.o grid.o cutil.o sintab.o cluecheck.o message.o death.o detonate.o enter.o fatudp.o findslot.o gameconf.o getentry.o getname.o getship.o input.o interface.o main.o missile.o orbit.o packets.o parsexbm.o phaser.o ping.o plasma.o redraw.o socket.o sockio.o smessage.o timecheck.o torp.o util.o warning.o imath.o feature.o -lm -lgz message.o: In function `parse_player': message.o(.text+0x1b0a): undefined reference to `crypt' message.o(.text+0x1b51): undefined reference to `crypt' getname.o: In function `handleLogin': getname.o(.text+0x326): undefined reference to `crypt' getname.o(.text+0x42b): undefined reference to `crypt' collect2: ld returned 1 exit status make: *** [ntserv] Error 1 Can anyone help? ___________________ Jt "The Squeegy" Chiodi <A HREF="http://c54820-a.carneg1.pa.home.com/"><A HREF="http://c54820-a.carneg1.pa.home.com/</A">http://c54820-a.carneg1.pa.home.com/</A</A>> squeegy@c54820-a.carneg1.pa.home.com ___________________ Jt "The Squeegy" Chiodi <A HREF="http://c54820-a.carneg1.pa.home.com/"><A HREF="http://c54820-a.carneg1.pa.home.com/</A">http://c54820-a.carneg1.pa.home.com/</A</A>> squeegy@c54820-a.carneg1.pa.home.com -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Sat, May 01, 1999 at 21:48 -0400, Jt Chiodi The Squeegy wrote:
I am trying to compile netrek server 2.4p8 and keep getting this error:
gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -L/usr/local/lib -o ntserv data.o shmem.o plutil.o path.o grid.o cutil.o sintab.o cluecheck.o message.o death.o detonate.o enter.o fatudp.o findslot.o gameconf.o getentry.o getname.o getship.o input.o interface.o main.o missile.o orbit.o packets.o parsexbm.o phaser.o ping.o plasma.o redraw.o socket.o sockio.o smessage.o timecheck.o torp.o util.o warning.o imath.o feature.o -lm -lgz
Try changing the Makefile and adding an `-lcrypt' at the end of the line above. Ciao, Stefan -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, I tried your suggestion and got a little farther. Here is my next error. Thanks for the help. gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -c listen.c -o listen.o listen.c:505: conflicting types for `sys_errlist' /usr/include/stdio.h:221: previous declaration of `sys_errlist' make: *** [listen.o] Error 1
Hi,
On Sat, May 01, 1999 at 21:48 -0400, Jt Chiodi The Squeegy wrote:
I am trying to compile netrek server 2.4p8 and keep getting this error:
gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -L/usr/local/lib -o ntserv data.o shmem.o plutil.o path.o grid.o cutil.o sintab.o cluecheck.o message.o death.o detonate.o enter.o fatudp.o findslot.o gameconf.o getentry.o getname.o getship.o input.o interface.o main.o missile.o orbit.o packets.o parsexbm.o phaser.o ping.o plasma.o redraw.o socket.o sockio.o smessage.o timecheck.o torp.o util.o warning.o imath.o feature.o -lm -lgz
Try changing the Makefile and adding an `-lcrypt' at the end of the line above.
Ciao, Stefan -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
___________________ Jt "The Squeegy" Chiodi <A HREF="http://c54820-a.carneg1.pa.home.com/"><A HREF="http://c54820-a.carneg1.pa.home.com/</A">http://c54820-a.carneg1.pa.home.com/</A</A>> squeegy@c54820-a.carneg1.pa.home.com -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hello Jt 'Squeegy', * Jt Chiodi The Squeegy" (squeegy@c54820-a.carneg1.pa.home.com) [990502 10:18]:
Hi,
I tried your suggestion and got a little farther. Here is my next error. Thanks for the help.
gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -c listen.c -o listen.o listen.c:505: conflicting types for `sys_errlist' /usr/include/stdio.h:221: previous declaration of `sys_errlist' make: *** [listen.o] Error 1
If you look at the stdio header, you'll see that sys_errlist will be defined in stdio.h if __USE_BSD is defined. This is in turn defined if _BSD_SOURCE or _GNU_SOURCE is defined over in feature.h. I'm not sure where this comes from, but I suspect the compiler turns it on. I suspect the solution to this problem has a lot more to do with listen.c's design than with SuSE Linux. Have you tried poking at the nettrek FAQ? You might just compare the two defenitions and kludge listen.c to match if necessary. Best of luck, -josh -- SuSE Inc., Tel: +1-510-835-7879 Mo/Th 11a - 5p (PST) 458 Santa Clara Avenue, Fax: +1-510-835-7875 Oakland CA 94610 Email: support@suse.com USA WWW: <A HREF="http://www.suse.com"><A HREF="http://www.suse.com</A">http://www.suse.com</A</A>> -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Josh, I am confused. there are to definitions in stdio.h, but it is a one or the other situation as defined in the features.h file. Do you think that both are being defined? I read the netrek FAQ. is for how to use the software. so far I have been unable to find any docs that deal with compile problems for netrek. thanks for your help
gcc -O -s -DLinux -DHAVE_RAND48 -I/usr/local/include -c listen.c -o listen.o listen.c:505: conflicting types for `sys_errlist' /usr/include/stdio.h:221: previous declaration of `sys_errlist' make: *** [listen.o] Error 1
If you look at the stdio header, you'll see that sys_errlist will be defined in stdio.h if __USE_BSD is defined. This is in turn defined if _BSD_SOURCE or _GNU_SOURCE is defined over in feature.h.
I'm not sure where this comes from, but I suspect the compiler turns it on. I suspect the solution to this problem has a lot more to do with listen.c's design than with SuSE Linux. Have you tried poking at the nettrek FAQ? You might just compare the two defenitions and kludge listen.c to match if necessary.
___________________ Jt "The Squeegy" Chiodi <A HREF="http://c54820-a.carneg1.pa.home.com/"><A HREF="http://c54820-a.carneg1.pa.home.com/</A">http://c54820-a.carneg1.pa.home.com/</A</A>> squeegy@c54820-a.carneg1.pa.home.com -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
jrodman@suse.com
-
squeegy@c54820-a.carneg1.pa.home.com
-
stefan.troeger@wirtschaft.tu-chemnitz.de