[Nagiosplug-devel] [ nagiosplug-Bugs-1117643 ] Problems compiling 1.4 on Solaris 8 x86

SourceForge.net noreply at sourceforge.net
Fri Jun 1 04:20:07 CEST 2007


Bugs item #1117643, was opened at 2005-02-06 18:52
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1117643&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parsing problem
Group: Release (specify)
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Jeremy Russell (ellipses)
Assigned to: M. Sean Finney (seanius)
Summary: Problems compiling 1.4 on Solaris 8 x86

Initial Comment:
make errored on compling check_icmp.
------<snip>----------------------------------------
gcc  -g -O2  -L. -R/usr/local/ssl/lib -L/usr/local/ssl/lib -o 
check_icmp  check_icmp.o  ../intl/libintl.a -liconv -lgen -
lsocket  -I/usr/local/ssl/include
Undefined                       first referenced
 symbol                             in file
gethostbyname                       check_icmp.o  (symbol 
belongs to implicit dependency /usr/lib/libnsl.so.1)
inet_addr                           check_icmp.o  (symbol 
belongs to implicit dependency /usr/lib/libnsl.so.1)
inet_ntoa                           check_icmp.o  (symbol 
belongs to implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to 
check_icmp
collect2: ld returned 1 exit status
make[2]: *** [check_icmp] Error 1
make[2]: Leaving directory 
`/usr/local/support/src/monitor/nagios-plugins-
1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/usr/local/support/src/monitor/nagios-plugins-1.4'
make: *** [all] Error 2
----------<snip>--------------------------------

 gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-
solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)


edited plugins/Makefile 

# diff Makefile Makefile.orig
419c419
< check_icmp_LDADD = -lnsl
---
> check_icmp_LDADD =


attaching config.log

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2007-05-31 19:20

Message:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-05-17 07:24

Message:
Logged In: YES 
user_id=1694341
Originator: NO

Hi Jeremy,

Have you tried the cvs that time?
I'm setting this case to "pending" which means it will be closed
automatically within 14 days if
you won't post a reply until then.

Best regards
Matthias

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-05-01 13:24

Message:
Logged In: YES 
user_id=226838

hi,

there exists code in the configure script which should find
cases where -lnsl/-lsocket is needed, so i'm wondering why
it's not working for you.

could you try compiling from the latest cvs?

if you still have the problem, could you post your config.log?

----------------------------------------------------------------------

Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2005-02-07 15:02

Message:
Logged In: YES 
user_id=395628

Dear Jeremy,

I am writing to thank you for opening a tracker about this
problem, which appears to be Solaris specific.

The developers advice is to add  _both_ -lnsl and -lsocket
for Solaris compiles.

Since all the Makefiles for the plugins are generated by
autoconf/automake, there needs to be Solaris specific mods
made to configure.in and perhaps plugin/Makefile.am for this
to please everyone.

In the meantime, others should do as you have and manually
add the extra libraries for Solaris.





----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1117643&group_id=29880




More information about the Devel mailing list