Project

General

Profile

Bug #1960

Cannot compile on opensolaris

Added by edogawaconan over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2009-04-13
Due date:
% Done:

100%

Estimated time:

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

buildlog.txt (5.46 KB) buildlog.txt configure and compile log edogawaconan, 2009-04-13 04:48
builderror-gnuld.txt (1.52 KB) builderror-gnuld.txt error message with gnu.ld edogawaconan, 2009-04-13 04:48
config.log (39 KB) config.log edogawaconan, 2009-04-13 04:51
buildlog2 (12.1 KB) buildlog2 edogawaconan, 2009-04-14 15:44
config.log (40.6 KB) config.log edogawaconan, 2009-04-14 15:44
workinglog (5.27 KB) workinglog edogawaconan, 2009-04-14 15:44

Associated revisions

Revision 43 (diff)
Added by stbuehler over 8 years ago

Add check to link against socket/nsl if needed (fixes #1960)

Revision 36734bc4 (diff)
Added by Stefan B├╝hler over 8 years ago

Add check to link against socket/nsl if needed (fixes #1960)

git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@43 4a9f3682-ca7b-49a8-9a55-ba4640e46f83

History

#1 Updated by darix over 8 years ago

LDFLAGS="-lsocket" ./configure ...
should fix that

#2 Updated by edogawaconan over 8 years ago

trying

#3 Updated by edogawaconan over 8 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

#4 Updated by darix over 8 years ago

LDFLAGS="-lsocket -lnsl" ./configure ...
should fix that

#5 Updated by edogawaconan over 8 years ago

it works now. Perhaps make it default in the future?

#6 Updated by stbuehler over 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r43.

#7 Updated by edogawaconan over 8 years ago

stbuehler wrote:

Applied in changeset r43.

apparently the change doesn't help

#8 Updated by stbuehler over 8 years ago

Perhaps you have to rerun autogen.sh; if that doesn't help show us the configure + build logs.

#9 Updated by edogawaconan over 8 years ago

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

#10 Updated by stbuehler over 8 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