OpenCSW Bug Tracker


Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003859 [pm_tt2] upgrade minor always 2009-08-17 10:34 2009-08-19 09:49
Reporter dam View Status public  
Assigned To bonivart
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Product Build
Summary 0003859: Package needs to include static libs for XS
Description The should be static libs included in the package, at least DynaLoader.a should be in there or XS won't work.
Steps To Reproduce \[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]gmake
/opt/studio/SOS11/SUNWspro/bin/cc -xO3 -xarch=386 -I/opt/csw/include -I/opt/csw/nagios/include -D_REENTRANT -xO3 -xarch=386 -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/csw/lib/perl/5.8.8/CORE -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o ../common/snprintf.o perlxsi.o -xarch=386 -L/opt/csw/nagios/lib -L/opt/csw/lib -R /opt/csw/lib -xarch=386 -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib -L/opt/csw/lib/perl/5.8.8/CORE -lperl -lsocket -lnsl -ldb-4.7 -ldl -lm -lpthread -lc -lperl -lm -lnsl -lsocket -lpthread -lltdl -lrt
"nagios.c", line 652: warning: implicit function declaration: asprintf
Undefined first referenced
 symbol in file
boot_DynaLoader perlxsi.o
ld: fatal: Symbol referencing errors. No output written to nagios
gmake: *** [nagios] Error 1
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]perl -MExtUtils::Embed -e ldopts
-R /usr/perl5/5.00503/i86pc-solaris/CORE /usr/perl5/5.00503/i86pc-solaris/auto/DynaLoader/DynaLoader.a -L/usr/perl5/5.00503/i86pc-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -lcrypt
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]/opt/csw/bin/perl -MExtUtils::Embed -e ldopts
-R /opt/csw/lib -xarch=386 -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib -L/opt/csw/lib/perl/5.8.8/CORE -lperl -lsocket -lnsl -ldb-4.7 -ldl -lm -lpthread -lc -lperl
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]truss -f /opt/csw/bin/perl -MExtUtils::Embed -e ldopts 2>&1 | grep Dyna
16431: stat64("/opt/csw/lib/perl/5.8.8/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/share/perl/5.8.8/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/lib/perl/site_perl/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/share/perl/site_perl/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/share/perl/site_perl/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/lib/perl/csw/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/share/perl/csw/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("/opt/csw/share/perl/csw/auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
16431: stat64("auto/DynaLoader/DynaLoader.a", 0x08062B38) Err#2 ENOENT
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]/usr/ccs/bin/nm -A /
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]/usr/ccs/bin/nm -A /usr/perl5/5.00503/i86pc-solaris/auto/DynaLoader/DynaLoader.a | grep boot_DynaLoader
/usr/perl5/5.00503/i86pc-solaris/auto/DynaLoader/DynaLoader.a[DynaLoader.o]: [51] | 1368| 544|FUNC |GLOB |0 |2 |boot_DynaLoader
\[\033[1;32m\]\u@\h:$PWD:> \[\033[0;37m\]
Additional Information You can circumvent stripping static libs from GAR with

Index: Makefile
===================================================================
--- Makefile (revision 5970)
+++ Makefile (working copy)
@@ -118,6 +118,9 @@
 # Tests take a long time
 TEST_SCRIPTS =
 
+# Do not exclude static libs as at least DynaLoader.a is needed for XS compilation
+MERGE_EXCLUDE_STATICLIBS =
+
 include gar/category.mk
 ifneq ($(CORE_UPDATES),)
 POST_TARGETS = install-core-updates
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006584)
bonivart (developer)
2009-08-17 15:53

Ok, new version in testing, thanks for posting the solution. :-)
(0006588)
bonivart (developer)
2009-08-19 09:49

Perl 5.8.8,REV=2009.08.17 released with fix.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker