[Nagiosplug-devel] [ nagiosplug-Bugs-2864596 ] 1.4.14 no longer compiles on solaris
SourceForge.net
noreply at sourceforge.net
Tue Apr 13 06:29:27 CEST 2010
Bugs item #2864596, was opened at 2009-09-22 17:38
Message generated for change (Settings changed) made by dermoth
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2864596&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: Compilation
>Group: release-1.4.15
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Robert C. Sheets (robert_sheets)
Assigned to: Thomas Guyot-Sionnest (dermoth)
Summary: 1.4.14 no longer compiles on solaris
Initial Comment:
This is a regression relative to 1.4.13. Compilation aborts with the following messages:
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.14"' -g -O2 -L. -o pst3 -m64 pst3-pst3.o -lpthread -ldl
gcc -DNP_VERSION=\"1.4.14\" -g -O2 -o pst3 -m64 pst3-pst3.o -L/home/rsheets/nagios-plugins-trunk-200909221200/plugins-root -lpthread -ldl
Undefined first referenced
symbol in file
rpl_open pst3-pst3.o
ld: fatal: Symbol referencing errors. No output written to pst3
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `pst3'
Current working directory /home/rsheets/nagios-plugins-trunk-200909221200/plugins-root
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/rsheets/nagios-plugins-trunk-200909221200
*** Error code 1
make: Fatal error: Command failed for target `all'
options to configure were --prefix=/opt/nagios-plugins-trunk --without-openssl
OS is solaris 9
uname -a output is SunOS remedy0 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-280R
I'm not sure how to get make to tell me its version, but it is /usr/ccs/bin/make
gcc -v reports the following:
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.4.1
Please contact me if any other information would be helpful.
----------------------------------------------------------------------
>Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2010-04-13 00:29
Message:
I believe I finally found the issue and set up a shapshot of a fixed HEAD.
The head can be downloaded here (the current, fixed version is
nagios-plugins-1.4.14-85-g942f.tar.gz):
http://dermoth.users.sourceforge.net/snapshot/nagios-plugins-gnulib_new.tar.gz
pst3 included the Gnulib headers but it shouldn't (and couldn't easily
link against glunig anyway).
Using AM_CPPFLAGS instead of INCLUDES (which is recommended BTW) in
Makefile.am and defining an empty pst3_CPPFLAFS appears to do the trick.
I'm just waiting for a confirmation now before I merge this head (which
also include a gnulib update) back in master.
----------------------------------------------------------------------
Comment By: Robert C. Sheets (robert_sheets)
Date: 2009-09-23 10:29
Message:
Make failed, but not as you predicted. If it matters, I applied the patch
and ran tools/setup on a linux machine, as the solaris box does not have
GNU Make, among other apparent prerequisites of the setup script. The patch
applied cleanly. Here's the last few lines of the make output (on
solaris):
Making all in plugins
make: Fatal error in reader: Makefile, line 1579: Unexpected end of line
seen
Current working directory /home/rsheets/nagiosplugins/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/rsheets/nagiosplugins
*** Error code 1
make: Fatal error: Command failed for target `all'
Line 1579 of plugins/Makefile is this:
install-html: install-html-am
----------------------------------------------------------------------
Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2009-09-23 01:52
Message:
Looks like YAGB (Yet Another Gnulib Bug). Please try the attached patch:
1. Get the latest snapshot from repos.or.cz (not the daily snapsot!)
http://repo.or.cz/w/nagiosplugins.git?a=snapshot;f=tgz
2. Apply the patch (see attached files below)
3. Run tools/setup (this can be done form another system like Linux if you
don't have recent auto-tools on Solaris), then you can copy the directory
tree to the solaris and run configure.)
NB: There's a small probklem with gnulib that I haven't sorted out yet, if
make fails with something like:
*** /bin/bash: arpa: command not found
just add MKDIR_P="mkdir -p" to your make command, i.e.:
$ make MKDIR_P="mkdir -p"
Please let me know if you have difficulties getting the source
patched/setup'ed and I'll prepare a distrib snapshot for you
----------------------------------------------------------------------
Comment By: Robert C. Sheets (robert_sheets)
Date: 2009-09-22 17:39
Message:
Forgot to add to my initial report: the problem exists in 1.4.14 as well as
trunk-200909221200
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2864596&group_id=29880
More information about the Devel
mailing list