RE: relay-ctrl installation problem
"Mark Lamb" <[email protected]> Thu, 7 Jul 2005 15:58:05 +0100
| Newsgroups | gmane.comp.sysutils.bgware |
|---|---|
| Message-ID | <[email protected]> |
Thanks Paul, I tried that, and now I get:
./compile relay-ctrl-send.c
Reading specs from
/u01/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.2
/u01/local/bin/../libexec/gcc/sparc-sun-solaris2.8/3.4.2/cc1 -quiet -v -I.
-iprefix /u01/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/
relay-ctrl-send.c -quiet -dumpbase relay-ctrl-send.c -mcpu=v7 -auxbase-strip
relay-ctrl-send.o -g -O -W -Wall -version -o /var/tmp//ccs89M0L.s
ignoring nonexistent directory
"/u01/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../../sparc-sun-
solaris2.8/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../../sparc-sun-solaris
2.8/include"
#include "..." search starts here:
#include <...> search starts here:
.
/u01/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/include
/usr/local/include
/usr/include
End of search list.
GNU C version 3.4.2 (sparc-sun-solaris2.8)
compiled by GNU C version 3.4.2.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32768
In file included from relay-ctrl-send.c:8:
fork.h:4: error: conflicting types for 'fork'
/usr/include/unistd.h:245: error: previous declaration of 'fork' was here
fork.h:4: error: conflicting types for 'fork'
/usr/include/unistd.h:245: error: previous declaration of 'fork' was here
fork.h:5: error: conflicting types for 'vfork'
/usr/include/unistd.h:461: error: previous declaration of 'vfork' was here
fork.h:5: error: conflicting types for 'vfork'
/usr/include/unistd.h:461: error: previous declaration of 'vfork' was here
*** Error code 1
make: Fatal error: Command failed for target `relay-ctrl-send.o'
Any further thoughts anyone?
Cheers,
Mark.
-----Original Message-----
From: Paul Jarc [mailto:[email protected]]
Sent: 06 July 2005 14:37
To: Mark Lamb
Cc: [email protected]
Subject: Re: [bgware] relay-ctrl installation problem
"Mark Lamb" <[email protected]> wrote:
> ./load relay-ctrl-udp relay-ctrl.a misc/misc.a msg/msg.a iobuf/iobuf.a
> net/ipv4.a net/socket.a iopoll.o
>
> Undefined first referenced
>
> symbol in file
>
> socket net/socket.a(udp.o)
Add "-lsocket -lnsl" to conf-ld.
paul