pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

linking, libraries, user build and linux



Hi,

I've run into this a few times before... building packages on linux
fails because missing libs. I don't know what the best solution is but
in the past I've extended /etc/ld.conf to include /usr/pkg libs; in
this case I'm trying to deploy pkgsrc as a user so that won't be an
option.

I'm going to try building /cake/pkgsrc/lang/gcc46 (as I write this)
with the hope the missing libs will be provided that way.

Is this the best way to go about this?

Is there a "lighter weight" method to build libraries within pkgsrc to
remove dependency on system libraries?

Am I going aout this totally wrong?

I'm using linux kernel 2.6.18-238.19.1.el5 on CentOS release 5.6,
build errors below.

Best regards,
-George


/cake/pkgsrc/parallel/ganglia-monitor-core bmake install
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Skipping vulnerability checks.
WARNING: No /cake/pkg-2011Q2/db/pkg-vulnerabilities file found.
WARNING: To fix run: `/cake/pkg-2011Q2/sbin/pkg_admin -K
/cake/pkg-2011Q2/db fetch-pkg-vulnerabilities'.
===> Building for ganglia-monitor-core-3.1.2nb6
/cake/pkg-2011Q2/bin/bmake  all-recursive
Making all in lib
Making all in libmetrics
/cake/pkg-2011Q2/bin/bmake  all-recursive
Making all in linux
Making all in .
Making all in tests
Making all in tests
Making all in gmetad
Making all in gmond
Making all in modules
Making all in example
Making all in cpu
Making all in disk
Making all in memory
Making all in network
Making all in system
Making all in python_modules
/bin/sh ../libtool --tag=CC --mode=link gcc -I../lib -I../include/
-I../libmetrics -D_LARGEFILE64_SOURCE -Wno-error -Wno-format
-fno-builtin -I/cake/pkg-2011Q2/include -I/usr/include
-I/cake/pkg-2011Q2/include/freetype2 -I/cake/pkg-2011Q2/include/apr-1
-fno-strict-aliasing -Wall -D_REENTRANT   -L/cake/pkg-2011Q2/lib
-Wl,-R/cake/pkg-2011Q2/lib -L/usr/lib -Wl,-R/usr/lib
-L/cake/pkg-2011Q2/lib -o gmond -export-dynamic gmond.o cmdline.o
g25_config.o core_metrics.o ../libmetrics/libmetrics.la
../lib/libganglia.la  ../lib/libgetopthelper.a   -ldl -lnsl -lnsl
-lexpat -lconfuse -lapr-1 -lpthread
libtool: link: gcc -I../lib -I../include/ -I../libmetrics
-D_LARGEFILE64_SOURCE -Wno-error -Wno-format -fno-builtin
-I/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/include
-I/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/include/freetype2
-I/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/include/apr-1
-fno-strict-aliasing -Wall -D_REENTRANT -Wl,-R/cake/pkg-2011Q2/lib -o
.libs/gmond gmond.o cmdline.o g25_config.o core_metrics.o
-Wl,--export-dynamic
-L/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/lib
../libmetrics/.libs/libmetrics.a -lresolv ../lib/.libs/libganglia.so
../lib/libgetopthelper.a -lnsl
/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/lib/libexpat.so
/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/lib/libconfuse.so
/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/lib/libapr-1.so
-lrt -lcrypt -ldl -lpthread -pthread -Wl,-rpath
-Wl,/cake/pkg-2011Q2/lib64 -Wl,-rpath
-Wl,/cake/pkgsrc/parallel/ganglia-monitor-core/work/.buildlink/lib
gmond.o: In function `Ganglia_collection_group_collect':
gmond.c:(.text+0x40df): undefined reference to `fabsf'
gmond.c:(.text+0x4123): undefined reference to `fabs'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in
/cake/pkgsrc/parallel/ganglia-monitor-core/work/ganglia-3.1.2/gmond
*** Error code 1

Stop.
bmake: stopped in
/cake/pkgsrc/parallel/ganglia-monitor-core/work/ganglia-3.1.2/gmond
*** Error code 1

Stop.
bmake: stopped in /cake/pkgsrc/parallel/ganglia-monitor-core/work/ganglia-3.1.2
*** Error code 1

Stop.
bmake: stopped in /cake/pkgsrc/parallel/ganglia-monitor-core/work/ganglia-3.1.2
*** Error code 1

Stop.
bmake: stopped in /cake/pkgsrc/parallel/ganglia-monitor-core
*** Error code 1

Stop.
bmake: stopped in /cake/pkgsrc/parallel/ganglia-monitor-core




-- 
George Georgalis, (415) 894-2710, http://www.galis.org/


Home | Main Index | Thread Index | Old Index