pkgsrc-Users archive

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

Problems Building net/net-snmp in pkgsrc - need help please




Hi pkgsrc-users and net/net-snmp maintainer "adam":

I am having problems building net/net-snmp.  Any help will be greatly appreciated.

My host is Red Hat Linux Enterprise Workstation 3 Update 6
My pkgsrc metadata is as of 2006-02-19

Here is the error:
(.... snip lots of successful stuff ...)
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/users/tnoel l/pkg1/src/net/net-snmp/work.feriogt/.buildlink/include -DINET6 -O2 -Dlinux -I/u sr/include/rpm -c snmpd.c -o snmpd.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -DINET6 -O2 -I/users/tnoell/pkg1/ix86-Linux-R HEL3/include -Dlinux -I/usr/include/rpm -o snmpd snmpd.lo  -L/users/tnoell/pkg1/ ix86-Linux-RHEL3/lib -Wl,-R/users/tnoell/pkg1/ix86-Linux-RHEL3/lib libnetsnmpmib s.la  libnetsnmpagent.la helpers/libnetsnmphelpers.la -L/users/tnoell/pkg1/ix86- Linux-RHEL3/lib/lib -lwrap ../snmplib/libnetsnmp.la -ldl -lrpm -lrpmio -lpopt  - lz -lcrypto -lm
libtool: link: cannot find the library `/usr/lib/libbeecrypt.la' or unhandled ar gument `/usr/lib/libbeecrypt.la'
*** Error code 1

Stop.
bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/net-snmp-5.3. 0.1/agent
*** Error code 1

Stop.
bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/net-snmp-5.3. 0.1
*** Error code 1

Stop.
bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/.work.log
===>
*** Error code 1

Stop.
bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp

Now in my case  my host system does not have /usr/lib/libbeecrypt.la.  However, I have PREFER_PKGSRC=yes, and have successfully (after some shenanagins - see earlier email to pkgsrc-users) built beecrypt in my pkgsrc tree.
All the beecrypt library files, including libbeecrytp.la, are in my $LOCALBASE/lib dir:
galaxy 0 lib% ls -l libbee*              /users/tnoell/pkg1/ix86-Linux-RHEL3/lib
-rw-r--r--    1 tnoell   users      331496 Feb 24 15:02 libbeecrypt.a
-rwxr-xr-x    1 tnoell   users        1027 Feb 24 15:02 libbeecrypt.la*
lrwxrwxrwx    1 tnoell   users          20 Feb 24 15:02 libbeecrypt.so -> libbeecrypt.so.6.4.0*
lrwxrwxrwx    1 tnoell   users          20 Feb 24 15:02 libbeecrypt.so.6 -> libbeecrypt.so.6.4.0*
-rwxr-xr-x    1 tnoell   users      266444 Feb 24 15:02 libbeecrypt.so.6.4.0*
-rw-r--r--    1 tnoell   users       10524 Feb 24 15:02 libbeecrypt_java.a
-rwxr-xr-x    1 tnoell   users        1084 Feb 24 15:02 libbeecrypt_java.la*
lrwxrwxrwx    1 tnoell   users          25 Feb 24 15:02 libbeecrypt_java.so -> libbeecrypt_java.so.0.0.0*
lrwxrwxrwx    1 tnoell   users          25 Feb 24 15:02 libbeecrypt_java.so.0 -> libbeecrypt_java.so.0.0.0*
-rwxr-xr-x    1 tnoell   users       15475 Feb 24 15:02 libbeecrypt_java.so.0.0.0*

It is curious that libtool is getting an argument /usr/lib/libbeecrypt.la ... I would have expected -llibbeecrypt, and then it would find it via the -L path, which has my $LOCALBASE/lib dir on it ...

I don't see anything in config.log that looks for beecrypt.  In fact, of all the stuff in net-snmp-5.3.0 the only thng I find that references beecrypt is dist/net-snmp.spec which has it in a "Requries:" line.  Sure seems like configure should test for this if it uses it (?)

Thinking that wrappers might be missing, I tried adding
include "../../security/beecrypt/buildlink3.mk" to
net/net-snmp/Makefile
but I get the same error.

Anyone out there have any ideas what to try next?

Thx In Advance,
Tim Noell
Lexmark International, Inc.


Home | Main Index | Thread Index | Old Index