lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Configure error

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Thu May 20, 2004 11:02 pm    Post subject: Configure error Reply with quote

Hi all,

Using netMRG-0.15
System : Mandrake 10

Code:

[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


It seems that lybcrypto is a part of lib-openssl
Quote:

[root@krolinux netmrg-0.15]# rpm -qa | grep openssl
libopenssl0.9.7-0.9.7c-2mdk
openssl-0.9.7c-2mdk


I don't understand what is the problem :(

Nobody had this problem during configure process ?
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Fri May 21, 2004 12:13 am    Post subject: Reply with quote

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


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 7:45 am    Post subject: Reply with quote

Thx balleman, configure process' working fine now :)
Back to top
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 9:23 am    Post subject: Make error Reply with quote

gnii

I have a make error ploblem now :/

Code:

[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


I'm using net-snmp-5.1-7
Code:

[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
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Fri May 21, 2004 1:05 pm    Post subject: Reply with quote

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.
Back to top
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 7:36 pm    Post subject: Reply with quote

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 :\

Code:

[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


Code:

[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
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Fri May 21, 2004 7:47 pm    Post subject: Reply with quote

Try
Code:
./configure --with-snmp-lib-dir=/usr/lib/

You missed an equals sign.

Also, what does
Code:
locate snmp.h

and
Code:
rpm -qa | grep snmp

give you? We're looking for an install of ucd-snmp, in case you're wondering.

-Doug
Back to top
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 8:09 pm    Post subject: Reply with quote

Oups....

Configure process working fine with equal sign

Code:

[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
[...]


but make error process is the same.

Find below informations you asked :

Quote:

[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
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Fri May 21, 2004 8:14 pm    Post subject: Reply with quote

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

-Doug
Back to top
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 8:25 pm    Post subject: Reply with quote

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.
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Fri May 21, 2004 8:38 pm    Post subject: Reply with quote

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
Back to top
Kro
Beginner


Joined: 20 May 2004
Posts: 7
Location: Paris

PostPosted: Fri May 21, 2004 8:51 pm    Post subject: Reply with quote

Many thanks Doug !

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

Then, I'm trying to make install now.. ;)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group