Thread View: comp.unix.programmer
3 messages
3 total messages
Started by Benjamin Flynn
Sat, 08 Nov 1997 00:00
Stuck trying to compile inn-1.7
Author: Benjamin Flynn
Date: Sat, 08 Nov 1997 00:00
Date: Sat, 08 Nov 1997 00:00
29 lines
1921 bytes
1921 bytes
Any help you could give would be very much appreciated. I'm trying to compile INN on a sparc running solaris 2.5.1. I have set up the configuration for inn, and compiled the code in the config and lib directories. The makefile in the lib directory uses 'ar' to create 'libinn.a' out of (presumably) all of the files in that directory. When I try to compile inews, in the frontends directory, I get this error: gcc -o inews inews.o ../libinn.a Undefined first referenced symbol in file socket ../libinn.a(remopen.o) gethostbyname ../libinn.a(getfqdn.o) inet_addr ../libinn.a(remopen.o) connect ../libinn.a(remopen.o) ld: fatal: Symbol referencing errors. No output written to inews *** Error code 1 make: Fatal error: Command failed for target `inews' That is the correct path for the library. Additionally, remopen.c and getfqdn.c seem to have all of the proper headers included in them. What could I be doing wrong? - Benjamin Flynn cflynn@haverford.edu
Re: Stuck trying to compile inn-1.7
Author: kelsey
Date: Sun, 09 Nov 1997 00:00
Date: Sun, 09 Nov 1997 00:00
37 lines
2288 bytes
2288 bytes
benjamin, when this happens do a man on the undefined symbol (i.e. socket). the first few lines of the manpage will show you what you need to include and what libs you will need to compile with (-lsocket). dtk Benjamin Flynn wrote: > Any help you could give would be very much appreciated. > > I'm trying to compile INN on a sparc running solaris 2.5.1. I have set up > the configuration for inn, and compiled the code in the config and lib > directories. The makefile in the lib directory uses 'ar' to create > 'libinn.a' out of (presumably) all of the files in that directory. When I > try to compile inews, in the frontends directory, I get this error: > > gcc -o inews inews.o ../libinn.a > Undefined first referenced > symbol in file > socket ../libinn.a(remopen.o) > gethostbyname ../libinn.a(getfqdn.o) > inet_addr ../libinn.a(remopen.o) > connect ../libinn.a(remopen.o) > ld: fatal: Symbol referencing errors. No output written to inews > *** Error code 1 > make: Fatal error: Command failed for target `inews' > > That is the correct path for the library. Additionally, remopen.c and > getfqdn.c seem to have all of the proper headers included in them. > > What could I be doing wrong? > > - Benjamin Flynn > cflynn@haverford.edu
Re: Stuck trying to compile inn-1.7
Author: Benjamin Flynn
Date: Mon, 10 Nov 1997 00:00
Date: Mon, 10 Nov 1997 00:00
9 lines
1098 bytes
1098 bytes
In article <3464F6E3.77FF@sensor.com>, Ron Natalie <ron@sensor.com> wrote: > You need to add -lsocket Excellent! Thanks very much! As it turned out, I needed to add -lnsl as well, but that one I figured out. - Ben 7:-)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads