Bug #1960
closedCannot compile on opensolaris
Description
Neither gcc4 (from blastwave.org) nor sunstudio 12 works.
error message (more detail at attached log)
ld: fatal: Symbol referencing errors. No output written to spawn-fcgi
Using gnu ld doesn't help either
Files
Updated by darix over 15 years ago
LDFLAGS="-lsocket" ./configure ...
should fix that
Updated by edogawaconan over 15 years ago
still error
[edho@genshiken spawn-fcgi-1.6.2]$ gmake
gmake all-recursive
gmake1: Entering directory `/export/home/edho/src/spawn-fcgi-1.6.2'
Making all in src
gmake2: Entering directory `/export/home/edho/src/spawn-fcgi-1.6.2/src'
source='spawn-fcgi.c' object='spawn-fcgi.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I.. -g -c spawn-fcgi.c
cc -g -lsocket -o spawn-fcgi spawn-fcgi.o
Undefined first referenced
symbol in file
inet_addr spawn-fcgi.o (symbol belongs to implicit dependency /lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to spawn-fcgi
gmake2: * [spawn-fcgi] Error 1
gmake2: Leaving directory `/export/home/edho/src/spawn-fcgi-1.6.2/src'
gmake1: [all-recursive] Error 1
gmake1: Leaving directory `/export/home/edho/src/spawn-fcgi-1.6.2'
gmake: ** [all] Error 2
Updated by darix over 15 years ago
LDFLAGS="-lsocket -lnsl" ./configure ...
should fix that
Updated by edogawaconan over 15 years ago
it works now. Perhaps make it default in the future?
Updated by stbuehler over 15 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r43.
Updated by edogawaconan over 15 years ago
stbuehler wrote:
Applied in changeset r43.
apparently the change doesn't help
Updated by stbuehler over 15 years ago
Perhaps you have to rerun autogen.sh; if that doesn't help show us the configure + build logs.
Updated by edogawaconan over 15 years ago
- File buildlog2 buildlog2 added
- File config.log config.log added
- File workinglog workinglog added
autogen.sh doesn't work (in fact I built it before without autogen)
edho@genshiken:~/src/spawn-fcgi-1.6.2$ ./autogen.sh
./autogen.sh: running `aclocal'
./autogen.sh17: aclocal: not found [No such file or directory]
config and build log attached. Also attached build log with LDFLAGS manually declared when ./configure
Updated by stbuehler over 15 years ago
If you don't have all needed auto-tools you will have to wait for the next snapshot/release/whatever, you cannot test svn checkouts without them.
Also available in: Atom