[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-dev] jailkit-2.5 compilation problem on Solaris 10 using gc
From: |
Stephen Tallowitz |
Subject: |
Re: [Jailkit-dev] jailkit-2.5 compilation problem on Solaris 10 using gcc |
Date: |
Sun, 1 Jun 2008 11:50:43 +0200 |
Hello Mo,
referencing your first email:
> Undefined first referenced
> symbol in file
> bind jk_socketd.o
> send jk_socketd.o
> nanosleep jk_socketd.o
> socket jk_socketd.o
> connect jk_socketd.o
> recvfrom jk_socketd.o
> shutdown jk_socketd.o
most symbols/functions come from the socket.h library (see "man 2 socket" as an
example). So somewhere along the line, some header files are probably not
included. I'm assuming this, because I've already seen your second email:
> bash-3.00$ echo 'main(){printf("hello world\n");}' | gcc -E -v -
> [...]
> /usr/local/libexec/gcc/i386-pc-solaris2.10/3.4.6/cc1 -E -quiet -v -
> ignoring nonexistent directory "NONE/include"
> ignoring nonexistent directory
> "/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/../../../../i386-pc-solaris2.10/include"
Just a shot in the dark: is 'ignoring nonexistent directory' expected behaviour
or is there something missing?
> /usr/local/include
> /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include
> /usr/include
> End of search list.
Does one of those paths include a "socket.h"? If it does, please read/look at
"socket.h" and see if it references some other header file(s) which cannot be
found in the search path.
On linux (gentoo), there is a "/usr/include/linux/socket.h", which defines a
few symbols, but then includes "/usr/include/sys/socket.h".
Cheers,
Stephen
- Re: [Jailkit-dev] jailkit-2.5 compilation problem on Solaris 10 using gcc,
Stephen Tallowitz <=