Subject: Problems Building net/net-snmp in pkgsrc - need help please
To: None <pkgsrc-users@netbsd.org>
From: None <tnoell@lexmark.com>
List: pkgsrc-users
Date: 02/27/2006 15:22:10
This is a multipart message in MIME format.
--=_alternative 006FE4DE85257122_=
Content-Type: text/plain; charset="us-ascii"
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.
--=_alternative 006FE4DE85257122_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">Hi pkgsrc-users and net/net-snmp maintainer "adam":</font>
<br>
<br><font size=2 face="sans-serif">I am having problems building net/net-snmp. Any help will be greatly appreciated.</font>
<br>
<br><font size=2 face="sans-serif">My host is Red Hat Linux Enterprise Workstation 3 Update 6</font>
<br><font size=2 face="sans-serif">My pkgsrc metadata is as of 2006-02-19</font>
<br>
<br><font size=2 face="sans-serif">Here is the error:</font>
<br><font size=2 face="sans-serif">(.... snip lots of successful stuff ...)</font>
<br><font size=2 face="sans-serif"> 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</font>
<br><font size=2 face="sans-serif">/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</font>
<br><font size=2 face="sans-serif">libtool: link: cannot find the library `/usr/lib/libbeecrypt.la' or unhandled ar gument `/usr/lib/libbeecrypt.la'</font>
<br><font size=2 face="sans-serif">*** Error code 1</font>
<br>
<br><font size=2 face="sans-serif">Stop.</font>
<br><font size=2 face="sans-serif">bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/net-snmp-5.3. 0.1/agent</font>
<br><font size=2 face="sans-serif">*** Error code 1</font>
<br>
<br><font size=2 face="sans-serif">Stop.</font>
<br><font size=2 face="sans-serif">bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/net-snmp-5.3. 0.1</font>
<br><font size=2 face="sans-serif">*** Error code 1</font>
<br>
<br><font size=2 face="sans-serif">Stop.</font>
<br><font size=2 face="sans-serif">bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp</font>
<br><font size=2 face="sans-serif">===></font>
<br><font size=2 face="sans-serif">===> There was an error during the ``build'' phase.</font>
<br><font size=2 face="sans-serif">===> Please investigate the following for more information:</font>
<br><font size=2 face="sans-serif">===> * log of the build</font>
<br><font size=2 face="sans-serif">===> * /users/tnoell/pkg1/src/net/net-snmp/work.feriogt/.work.log</font>
<br><font size=2 face="sans-serif">===></font>
<br><font size=2 face="sans-serif">*** Error code 1</font>
<br>
<br><font size=2 face="sans-serif">Stop.</font>
<br><font size=2 face="sans-serif">bmake: stopped in /users/tnoell/pkg1/src/net/net-snmp</font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br><font size=2 face="sans-serif">All the beecrypt library files, including libbeecrytp.la, are in my $LOCALBASE/lib dir:</font>
<br><font size=2 face="sans-serif">galaxy 0 lib% ls -l libbee* /users/tnoell/pkg1/ix86-Linux-RHEL3/lib</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 tnoell users 331496 Feb 24 15:02 libbeecrypt.a</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 tnoell users 1027 Feb 24 15:02 libbeecrypt.la*</font>
<br><font size=2 face="sans-serif">lrwxrwxrwx 1 tnoell users 20 Feb 24 15:02 libbeecrypt.so -> libbeecrypt.so.6.4.0*</font>
<br><font size=2 face="sans-serif">lrwxrwxrwx 1 tnoell users 20 Feb 24 15:02 libbeecrypt.so.6 -> libbeecrypt.so.6.4.0*</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 tnoell users 266444 Feb 24 15:02 libbeecrypt.so.6.4.0*</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 tnoell users 10524 Feb 24 15:02 libbeecrypt_java.a</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 tnoell users 1084 Feb 24 15:02 libbeecrypt_java.la*</font>
<br><font size=2 face="sans-serif">lrwxrwxrwx 1 tnoell users 25 Feb 24 15:02 libbeecrypt_java.so -> libbeecrypt_java.so.0.0.0*</font>
<br><font size=2 face="sans-serif">lrwxrwxrwx 1 tnoell users 25 Feb 24 15:02 libbeecrypt_java.so.0 -> libbeecrypt_java.so.0.0.0*</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 tnoell users 15475 Feb 24 15:02 libbeecrypt_java.so.0.0.0*</font>
<br>
<br><font size=2 face="sans-serif">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 ...</font>
<br>
<br><font size=2 face="sans-serif">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 (?)</font>
<br>
<br><font size=2 face="sans-serif">Thinking that wrappers might be missing, I tried adding </font>
<br><font size=2 face="sans-serif">include "../../security/beecrypt/buildlink3.mk" to </font>
<br><font size=2 face="sans-serif">net/net-snmp/Makefile</font>
<br><font size=2 face="sans-serif">but I get the same error.</font>
<br>
<br><font size=2 face="sans-serif">Anyone out there have any ideas what to try next?</font>
<br>
<br><font size=2 face="sans-serif">Thx In Advance,</font>
<br><font size=2 face="sans-serif">Tim Noell</font>
<br><font size=2 face="sans-serif">Lexmark International, Inc.</font>
<br>
--=_alternative 006FE4DE85257122_=--