I am trying to compile Nagios 3.2.3 under Solaris-10 sparc 5.10 Generic_141444-09 using SUNWgcc 3.4.3 and SUNWgmake 3.8. My configure command is ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --with-gd-lib=/opt/sfw/lib --with-gd-inc=/opt/sfw/include and it seems to finish successfully. When I look at config.log I see a few "ld: fatal" errors which I will put below. Questions;
1. Do I need to resolve these fatal errors?
2. If I need to resolve these fatal errors does anyone have any clue?
Any information would be greatly appreciated.
thanks
Dan
configure:4996: checking for asprintf
configure:5052: gcc -o conftest -g -O2 conftest.c >&5
Undefined first referenced
symbol in file
asprintf /var/tmp//ccmNNJwx.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5058: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:5258: checking for library containing getservbyname
configure:5299: gcc -o conftest -g -O2 conftest.c >&5
Undefined first referenced
symbol in file
getservbyname /var/tmp//ccc8Ghqa.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5305: $? = 1
configure: failed program was:
| /* confdefs.h. */configure:5343: checking for library containing connect
configure:5384: gcc -o conftest -g -O2 conftest.c >&5
Undefined first referenced
symbol in file
connect /var/tmp//ccAygMof.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5390: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:5627: gcc -o conftest -g -O2 conftest.c -lcma -lsocket >&5
ld: fatal: library -lcma: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5633: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:6013: checking for library containing nanosleep
configure:6054: gcc -o conftest -g -O2 conftest.c -lsocket >&5
Undefined first referenced
symbol in file
nanosleep /var/tmp//ccc2sxYE.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6060: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:6535: gcc -o conftest -g -O2 -I/opt/sfw/include -L/opt/sfw/lib conftest.c -lgd -lttf -lpng -ljpeg -lz -l
m -lrt -lsocket >&5
ld: fatal: library -lttf: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6541: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:7469: gcc -o conftest -g -O2 -I/opt/sfw/include -Wl,-Bexport conftest.c -lrt -lsocket >&5
ld: fatal: option -B has illegal argument `export'
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status
configure:7475: $? = 1
configure: failed program was:
| /* confdefs.h. */
Compiling nagios on Solaris-10
Re: Compiling nagios on Solaris-10
Hi,
Did you ever find a solution to this?
I am having the same problem with asprintf in Solaris 10.
Looks like that's not included and its a major bummer.
Wondering how people get it compiled under Solaris 10 and can't seem to find much on the subject.
Best,
Jeff
Did you ever find a solution to this?
I am having the same problem with asprintf in Solaris 10.
Looks like that's not included and its a major bummer.
Wondering how people get it compiled under Solaris 10 and can't seem to find much on the subject.
Best,
Jeff
Re: Compiling nagios on Solaris-10
The asprintf() function is in the {nagios-build-dir}/common/snprintf.c source file. Compile that and then link common/snprintf.o when building (the link is done automatically on Solaris but the compile is not).jrmartin wrote:Wondering how people get it compiled under Solaris 10 and can't seem to find much on the subject.