Configure error

Kro

20-05-2004 19:02:53

Hi all,

Using netMRG-0.15
System Mandrake 10

[code1a14a64b459]
[root@krolinux netmrg-0.15]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for rrdtool... /usr/bin/rrdtool
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating bin/netmrg_cron.sh
config.status: creating etc/Makefile
config.status: creating etc/netmrg.conf
config.status: creating etc/netmrg.xml
config.status: creating src/include/netmrg.h
config.status: creating www/Makefile
config.status: creating www/include/config.php
configure: configuring in src
configure: running /bin/sh './configure' --prefix=/usr/local --exec-prefix=/usr/local --cache-file=/dev/null --srcdir=.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable -Wall... no
checking for dlopen in -ldl... yes
checking for compress in -lz... yes
checking for pthread_create in -lpthread... yes
checking for main in -lstdc++... yes
checking for xmlParseFile in -lxml2... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking cstdio usability... yes
checking cstdio presence... yes
checking for cstdio... yes
checking cstdlib usability... yes
checking cstdlib presence... yes
checking for cstdlib... yes
checking string usability... yes
checking string presence... yes
checking for string... yes
checking list usability... yes
checking list presence... yes
checking for list... yes
checking for unistd.h... (cached) yes
checking for libxml/xmlmemory.h... yes
checking for mysql/mysql.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for working memcmp... no
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for memmove... yes
checking if Net-SNMP needs crypto support... no
checking if UCD-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
configure: error: /bin/sh './configure' failed for src
[/code1a14a64b459]

It seems that lybcrypto is a part of lib-openssl
[quotea14a64b459]
[root@krolinux netmrg-0.15]# rpm -qa | grep openssl
libopenssl0.9.7-0.9.7c-2mdk
openssl-0.9.7c-2mdk
[/quotea14a64b459]

I don't understand what is the problem (

Nobody had this problem during configure process ?

balleman

20-05-2004 20:13:03

Could you look for a openssl-devel package? Not certain that's the problem, but that would be my first guess.

Kro

21-05-2004 03:45:35

Thx balleman, configure process' working fine now )

Kro

21-05-2004 05:23:39

gnii

I have a make error ploblem now /

[code1deae90be2b]
[root@krolinux netmrg-0.15]# make
Making all in src
make[1]: Entering directory `/home/common/netmrg-0.15/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -MT snmp.o -MD -MP -MF ".deps/snmp.Tpo" \
-c -o snmp.o `test -f 'snmp.cpp' || echo './'`snmp.cpp; \
then mv -f ".deps/snmp.Tpo" ".deps/snmp.Po"; \
else rm -f ".deps/snmp.Tpo"; exit 1; \
fi
In file included from /usr/include/ucd-snmp/ucd-snmp-includes.h:20,
from snmp.cpp:34:
/usr/include/ucd-snmp/system.h:79: error: syntax error before `)' token
make[1]: *** [snmp.o] Erreur 1
make[1]: Leaving directory `/home/common/netmrg-0.15/src'
make: *** [all-recursive] Erreur 1
[/code1deae90be2b]

I'm using net-snmp-5.1-7
[code1deae90be2b]
[root@krolinux netmrg-0.15]# rpm -qa | grep net-snmp
libnet-snmp5-5.1-7mdk
net-snmp-utils-5.1-7mdk
net-snmp-trapd-5.1-7mdk
net-snmp-mibs-5.1-7mdk
net-snmp-5.1-7mdk
[/code1deae90be2b]

balleman

21-05-2004 09:05:05

Configure may be finding an older install of ucd-snmp on your system. Try overriding the detection with the --with-snmp-include-dir and/or --with-snmp-lib-dir options to configure. "./configure -hr" gives the full list of options.

Kro

21-05-2004 15:36:19

This is the only version I installed.

I try to use --with-snmp-include-dir and --with-snmp-lib-dir options but I have some warning.

After that, make error process is the same \

[code12ef626ac3d]
[root@krolinux netmrg-0.15]# locate libsnmp.so
/usr/lib/libsnmp.so.5.1.0
/usr/lib/libsnmp.so.5
/usr/lib/libsnmp.so.0
/usr/lib/libsnmp.so.0.4.2
/usr/lib/libsnmp.so
[/code12ef626ac3d]

[code12ef626ac3d]
[root@krolinux netmrg-0.15]# ./configure --with-snmp-lib-dir /usr/lib/
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /usr/lib/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for rrdtool... /usr/bin/rrdtool
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating bin/netmrg_cron.sh
config.status: creating etc/Makefile
config.status: creating etc/netmrg.conf
config.status: creating etc/netmrg.xml
config.status: creating src/include/netmrg.h
config.status: creating www/Makefile
config.status: creating www/include/config.php
configure: configuring in src
configure: running /bin/sh './configure' --prefix=/usr/local '--with-snmp-lib-dir' '/usr/lib/' 'build_alias=/usr/lib/' 'host_alias=/usr/lib/' 'target_alias=/usr/lib/' --exec-prefix=/usr/local --cache-file=/dev/null --srcdir=.
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /usr/lib/
checking build system type... Invalid configuration `/usr/lib/': machine `/usr/lib/' not recognized
configure: error: /bin/sh ./../config.sub /usr/lib/ failed
configure: error: /bin/sh './configure' failed for src
[/code12ef626ac3d]

silfreed

21-05-2004 15:47:13

Try
[code1ff35ff8e2b]./configure --with-snmp-lib-dir=/usr/lib/[/code1ff35ff8e2b]
You missed an equals sign.

Also, what does
[code1ff35ff8e2b]locate snmp.h[/code1ff35ff8e2b]
and
[code1ff35ff8e2b]rpm -qa | grep snmp[/code1ff35ff8e2b]
give you? We're looking for an install of ucd-snmp, in case you're wondering.

-Doug

Kro

21-05-2004 16:09:37

Oups....

Configure process working fine with equal sign

[code1967cad0cf8]
[root@krolinux netmrg-0.15]# ./configure --with-snmp-include-dir=/usr/include/ucd-snmp --with-snmp-lib-dir=/usr/lib
[...]
Cannot find Net-SNMP libraries...checking for UCD-SNMP
checking for snmp_timeout in -lsnmp... yes
[...]
[/code1967cad0cf8]

but make error process is the same.

Find below informations you asked

[quote967cad0cf8]
[root@krolinux netmrg-0.15]# locate snmp.h
/usr/src/linux-2.6.3-4mdk/include/net/snmp.h
/usr/include/ucd-snmp/snmp.h

[root@krolinux netmrg-0.15]# rpm -qa | grep snmp
libnet-snmp5-5.1-7mdk
net-snmp-utils-5.1-7mdk
net-snmp-trapd-5.1-7mdk
php-snmp-4.3.4-3mdk
libsnmp0-4.2.3-8mdk
net-snmp-mibs-5.1-7mdk
net-snmp-5.1-7mdk
libsnmp0-devel-4.2.3-8mdk
[/quote967cad0cf8]

silfreed

21-05-2004 16:14:32

Looks like you do have a couple old libraries installed. Try removing the [i4997e02946]libsnmp0-4.2.3-8mdk[/i4997e02946] and [i4997e02946]libsnmp0-devel-4.2.3-8mdk[/i4997e02946] and installing [b4997e02946]net-snmp-devel[/b4997e02946] and recompiling. I don't think you'll need the 'with-snmp' options for configure then.

-Doug

Kro

21-05-2004 16:25:47

On http//net-snmp.sourceforge.net , I find net-snmp-devel-5.1.1-1 package but it seems to be only for RH distrib ?

I supose I must download entire source (net-snmp-5.1.1.tar.gz) and recompile it... Could you confirm ?

Thanks in advance.

silfreed

21-05-2004 16:38:53

No, you should be able to get packages from your vendor (Mandrake). Looking on their ftp server, I think this package will set you up (providing you remove the older libraries)
ftp//mandrake.mirrors.pair.com/Mandrakelinux/official/10.0/i586/Mandrake/RPMS/libnet-snmp5-devel-5.1-7mdk.i586.rpm

-Doug

Kro

21-05-2004 16:51:36

Many thanks Doug !

Configure and Make process working find now without warning or error messages.

Then, I'm trying to make install now.. ;)