Subject: pkg/14757: databases/rrdtool is broken -- can't find librrd_private.so.0
To: None <gnats-bugs@gnats.netbsd.org>
From: None <explorer@flame.org>
List: netbsd-bugs
Date: 11/28/2001 08:41:55
>Number:         14757
>Category:       pkg
>Synopsis:       databases/rrdtool is broken -- can't find librrd_private.so.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 28 00:42:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Graff
>Release:        NetBSD 1.5Y
>Organization:
flame.org:  yes, we do know everything
>Environment:
System: NetBSD kechara.flame.org 1.5Y NetBSD 1.5Y (FLAME_BIGNET) #1: Sat Nov 3 14:29:34 PST 2001 explorer@beak.flame.org:/u0/OS/src/sys/arch/i386/compile/FLAME_BIGNET i386
Architecture: i386
Machine: i386
>Description:
The rrdtool package has a Perl module, which is installed.  However,
it looks for a file "librrd_private.so.0" and it cannot find it:

Can't load '/usr/pkg/lib/perl5/site_perl/5.6.0/i386-netbsd/auto/RRDs/RRDs.so' for module RRDs: Shared object "librrd_private.so.0" not found at /usr/pkg/lib/perl5/5.6.0/i386-netbsd/DynaLoader.pm line 200.
 at - line 2
Compilation failed in require at - line 2.
BEGIN failed--compilation aborted at - line 2.

The problem seems to be that the build system thinks librrd_private should
be a staticlly linked library, but it somehow isn't happening that
way.

LD_RUN_PATH="" gcc -o blib/arch/auto/RRDs/RRDs.so  --whole-archive -shared  -L/usr/pkg/lib RRDs.o -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L../src/.libs/ -lrrd_private -lcgi -lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11 -lintl    

>How-To-Repeat:
	perl

	use RRDs;

<boom!>

>Fix:
My work around is to build once, then remove work/.build_done and
work/rrdtool-1.0.33/src/.libs/librrd_private.so*.

I then type "make" again, and after a "make install" it works.

That is gross.

--Michael
>Release-Note:
>Audit-Trail:
>Unformatted: