Hello,
The most recent version of Unbound does not build on Solaris:
./libtool --tag=CC --mode=link /opt/csw/gcc4/bin/gcc ./linktest.c -I.
-I. -I/opt/csw/include -I/opt/csw/include -DHAVE_CONFIG_H -I. -I.
-Wwrite-strings -W -Wall -O2 -g -O2 -pipe -mcpu=v8 -I/opt/csw/include
-std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -lldns
-lnsl -lsocket -lcrypto -o linktest
libtool: link: /opt/csw/gcc4/bin/gcc ./linktest.c -I. -I.
-I/opt/csw/include -I/opt/csw/include -DHAVE_CONFIG_H -I. -I.
-Wwrite-strings -W -Wall -O2 -g -O2 -pipe -mcpu=v8 -I/opt/csw/include
-std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -o linktest
-lldns -lnsl -lsocket -lcrypto
ld: fatal: library -lldns: not found
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to linktest
I've tried to build it with the builtin library, but I'm getting the
same results using an external ldns library.
Ihsan
Wouter
November 4, 2009, 7:30am
2
Hi Ihsan,
With unbound-1.3.4 and builtin library for ldns:
./libtool --tag=CC --mode=link gcc ./linktest.c -I. -I. -DHAVE_CONFIG_H -I. -I. -Wwrite-strings -W -Wall -O2 -g -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -lldns -lnsl -lsocket -lcrypto -o linktest
libtool: link: gcc ./linktest.c -I. -I. -DHAVE_CONFIG_H -I. -I. -Wwrite-strings -W -Wall -O2 -g -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -o .libs/linktest /home/user/release-1.3.4/ldns-src/.libs/libldns.so -lnsl -lsocket -lcrypto -R/usr/local/lib
On Solaris. And it works fine. Also the unbound svn trunk works
fine and the ldns svn trunk. So, it works for me, what is going
wrong on your Solaris machine?
Best regards,
Wouter
Hello,
I'm experiencing this error, when I try to build unbound 1.4.3 on
Solaris 9 (same problem on Solaris 10). I'm using Sun Studio 12 to compile:
./libtool --quiet --tag=CC --mode=compile
/opt/studio/SOS12/SUNWspro/bin/cc -I. -I/opt/csw/include
-I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -xO3 -m32
-xarch=v8 -g -O2 -xO4 -xtarget=generic -D_REENTRANT -o
build/util/netevent.lo -c util/netevent.c
"util/netevent.c", line 164: warning: implicit function declaration:
event_base_new
"util/netevent.c", line 164: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 181: warning: implicit function declaration:
event_base_get_method
"util/netevent.c", line 369: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"util/netevent.c", line 373: undefined struct/union member: msg_control
"util/netevent.c", line 373: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 375: undefined struct/union member: msg_controllen
"util/netevent.c", line 377: undefined struct/union member: msg_flags
"util/netevent.c", line 380: warning: implicit function declaration:
CMSG_FIRSTHDR
"util/netevent.c", line 380: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 385: warning: implicit function declaration:
CMSG_DATA
"util/netevent.c", line 386: warning: improper pointer/integer
combination: arg #1
"util/netevent.c", line 399: warning: improper pointer/integer
combination: arg #1
"util/netevent.c", line 405: warning: improper pointer/integer
combination: arg #1
"util/netevent.c", line 408: improper member use: msg_controllen
"util/netevent.c", line 464: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"util/netevent.c", line 468: undefined struct/union member: msg_control
"util/netevent.c", line 468: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 470: undefined struct/union member: msg_controllen
"util/netevent.c", line 472: undefined struct/union member: msg_flags
"util/netevent.c", line 485: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 486: warning: implicit function declaration:
CMSG_NXTHDR
"util/netevent.c", line 486: warning: improper pointer/integer
combination: op "="
"util/netevent.c", line 491: warning: improper pointer/integer
combination: arg #2
"util/netevent.c", line 498: warning: improper pointer/integer
combination: arg #2
"util/netevent.c", line 884: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"util/netevent.c", line 886: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
Any thoughts what's going wrong here?
Ihsan
Wouter
March 22, 2010, 8:24am
4
Hi Ihsan,
You specified that libevent could be found in /opt/csw, but in the
include there is no event.h?
Can you look at the configure output where it detects libevent (you
passed some --with-libevent option?) ?
In config.log there are more details.
Can you email me (offlist due to size): your configure commandline, the
config.log file and configure output (if you have that) ? It looks a
little like Mike Emigh's errors, it turned out that he was passing
options to configure (libraries in the CFLAGS instead of LIBS) that
broke the configure process.
Best regards,
Wouter