NetMRG on OpenBSD 3.4 (configure problem)

soox

15-03-2004 09:29:08

I get the following error during ./configure

[code1bd6bef970b]
$ tar -xzf ../netmrg-0.14.tar.gz
$ cd netmrg-0.14/
$ ls
INSTALL RELEASE-NOTES bootstrap configure.ac install-sh share www
Makefile.am UPGRADE config.guess contrib libexec src
Makefile.in aclocal.m4 config.sub depcomp missing subst.in
README bin configure etc mkinstalldirs var
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for rrdtool... /usr/local/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... sparc64-unknown-openbsd3.4
checking host system type... sparc64-unknown-openbsd3.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
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++... gcc
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... gcc
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... no
checking for compress in -lz... yes
checking for pthread_create in -lpthread... yes
checking for main in -lstdc++... yes
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml2... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... no
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... no
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... no
configure: error: XML2 headers not found. Use --with-xml2-include-dir=<path>
configure: error: /bin/sh './configure' failed for src
$[/code1bd6bef970b]

[code1bd6bef970b]
$ locate xmlmemory.h
/usr/local/include/libxml2/libxml/xmlmemory.h
/usr/local/share/doc/libxml2/html/libxml-xmlmemory.html
/usr/ports/textproc/libxml/w-libxml-2.5.10/fake-sparc64/usr/local/include/libxml2/libxml/xmlmemory.h
/usr/ports/textproc/libxml/w-libxml-2.5.10/fake-sparc64/usr/local/share/doc/libxml2/html/libxml-xmlmemory.html
/usr/ports/textproc/libxml/w-libxml-2.5.10/libxml2-2.5.10/doc/html/libxml-xmlmemory.html
/usr/ports/textproc/libxml/w-libxml-2.5.10/libxml2-2.5.10/include/libxml/xmlmemory.h
$[/code1bd6bef970b]

i hope anyone can help me to solve this

silfreed

15-03-2004 18:27:54

Is /usr/local/include/libxml2[/i[ in your include path?

Try running configure with the following parameters

[code1d78dc43e1a]./configure --with-xml2-include-dir=/usr/local/include/libxml2[/code1d78dc43e1a]

Let us know if this helps.

-Doug

soox

16-03-2004 03:25:40

thx for you answer...
but "--with-xml2-include-dir=/usr/local/include/libxml2" wont work...so i had set the include path "export CPATH="/usr/local/include/libxml2" and the xml2 problem was is solved.
but now, the configure script has an other error.

[code1946a9135c1]
$ ls -la /usr/local/lib |grep snmp
-rw-r--r-- 1 root bin 844900 Sep 7 2003 libsnmp.a
-rwxr-xr-x 1 root bin 700 Sep 7 2003 libsnmp.la
-rwxr-xr-x 1 root bin 509660 Sep 7 2003 libsnmp.so.42.6
$ ./configure --with-snmp-lib-dir=/usr/local/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for rrdtool... /usr/local/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/local/lib' --exec-prefix=/usr/local --cache-file=/dev/null --srcdir=.
checking build system type... sparc64-unknown-openbsd3.4
checking host system type... sparc64-unknown-openbsd3.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
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++... gcc
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... gcc
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... no
checking for compress in -lz... yes
checking for pthread_create in -lpthread... yes
checking for main in -lstdc++... yes
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml2... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... no
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... no
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... yes
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... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find Net-SNMP libraries...checking for UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries
configure: error: /bin/sh './configure' failed for src
$
[/code1946a9135c1]


[code1946a9135c1]$ ls -la /usr/local/lib |grep snmp
-rw-r--r-- 1 root bin 844900 Sep 7 2003 libsnmp.a
-rwxr-xr-x 1 root bin 700 Sep 7 2003 libsnmp.la
-rwxr-xr-x 1 root bin 509660 Sep 7 2003 libsnmp.so.42.6
$
[/code1946a9135c1]
this is ucd-snmp version 4.2.6

silfreed

16-03-2004 07:28:17

[quotec6b8d85695="soox"][code1c6b8d85695]
Cannot find Net-SNMP libraries...checking for UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries
configure: error: /bin/sh './configure' failed for src
[/code1c6b8d85695][/quotec6b8d85695]

Well, this is actually a little deceiving. NetMRG is looking for the headers here. You'll have to look in the config.log file to see the actual error message, but I would just do a general search for snmp headers first ([ic6b8d85695]locate snmp | grep inlucde[/ic6b8d85695]).

-Doug

soox

16-03-2004 08:48:37

still the same error

[code1f0bb591fb7]$ export CPATH="/usr/local/include/ucd-snmp:/usr/local/include/libxml2"
$
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
....
....
checking if Net-SNMP needs crypto support... no
checking if UCD-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find Net-SNMP libraries...checking for UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries
configure: error: /bin/sh './configure' failed for src
$
$ locate snmp |grep inclu
/home/magrub/temp/netmrg-0.14/src/include/snmp.h
/usr/local/include/ucd-snmp
/usr/local/include/ucd-snmp/agent_index.h
/usr/local/include/ucd-snmp/agent_read_config.h
/usr/local/include/ucd-snmp/agent_registry.h
/usr/local/include/ucd-snmp/agent_trap.h
/usr/local/include/ucd-snmp/asn1.h
/usr/local/include/ucd-snmp/auto_nlist.h
/usr/local/include/ucd-snmp/callback.h
/usr/local/include/ucd-snmp/default_store.h
/usr/local/include/ucd-snmp/ds_agent.h
/usr/local/include/ucd-snmp/header_complex.h
/usr/local/include/ucd-snmp/int64.h
/usr/local/include/ucd-snmp/keytools.h
/usr/local/include/ucd-snmp/mib.h
/usr/local/include/ucd-snmp/mib_module_config.h
/usr/local/include/ucd-snmp/mibincl.h
/usr/local/include/ucd-snmp/parse.h
/usr/local/include/ucd-snmp/read_config.h
/usr/local/include/ucd-snmp/scapi.h
/usr/local/include/ucd-snmp/snmp-tc.h
/usr/local/include/ucd-snmp/snmp.h
/usr/local/include/ucd-snmp/snmp_agent.h
/usr/local/include/ucd-snmp/snmp_alarm.h
/usr/local/include/ucd-snmp/snmp_api.h
/usr/local/include/ucd-snmp/snmp_client.h
/usr/local/include/ucd-snmp/snmp_debug.h
/usr/local/include/ucd-snmp/snmp_impl.h
/usr/local/include/ucd-snmp/snmp_logging.h
/usr/local/include/ucd-snmp/snmp_parse_args.h
/usr/local/include/ucd-snmp/snmp_vars.h
/usr/local/include/ucd-snmp/snmpusm.h
/usr/local/include/ucd-snmp/snmpv3.h
/usr/local/include/ucd-snmp/struct.h
/usr/local/include/ucd-snmp/system.h
/usr/local/include/ucd-snmp/tools.h
/usr/local/include/ucd-snmp/transform_oids.h
/usr/local/include/ucd-snmp/ucd-snmp-agent-includes.h
/usr/local/include/ucd-snmp/ucd-snmp-config.h
/usr/local/include/ucd-snmp/ucd-snmp-includes.h
/usr/local/include/ucd-snmp/util_funcs.h
/usr/local/include/ucd-snmp/var_struct.h
/usr/local/include/ucd-snmp/version.h
$
$ cat /usr/local/include/ucd-snmp/version.h
static const char *VersionInfo="4.2.6";
$
[/code1f0bb591fb7]




[code1f0bb591fb7]
$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by NetMRG configure 0.14, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = monica.alveran.ch
uname -m = sparc64
uname -r = 3.4
uname -s = OpenBSD
uname -v = GENERIC#0

/usr/bin/uname -p = SUNW,UltraSPARC-IIi @ 440 MHz, version 0 FPU
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = OpenBSD.sparc64
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/magrub/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/games
PATH: .


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1256: checking for a BSD-compatible install
configure:1310: result: /usr/bin/install -c
configure:1321: checking whether build environment is sane
configure:1364: result: yes
configure:1397: checking for gawk
configure:1426: result: no
configure:1397: checking for mawk
configure:1426: result: no
configure:1397: checking for nawk
configure:1413: found /usr/bin/nawk
configure:1423: result: nawk
configure:1433: checking whether make sets $(MAKE)
configure:1453: result: yes
configure:1617: checking whether make sets $(MAKE)
configure:1637: result: yes
configure:1649: checking for rrdtool
configure:1667: found /usr/local/bin/rrdtool
configure:1679: result: /usr/local/bin/rrdtool
configure:1830: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by NetMRG config.status 0.14, which was
generated by GNU Autoconf 2.57. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on monica.alveran.ch

config.status:624: creating Makefile
config.status:624: creating subst
config.status:624: creating bin/netmrg_cron.sh
config.status:624: creating etc/Makefile
config.status:624: creating etc/netmrg.conf
config.status:624: creating etc/netmrg.xml
config.status:624: creating src/include/netmrg.h
config.status:624: creating www/Makefile
config.status:624: creating www/include/config.php
configure:2650: configuring in src
configure:2734: running /bin/sh './configure' --prefix=/usr/local --exec-prefix=/usr/local --cache-file=/dev/null --srcdir=.
configure:2739: error: /bin/sh './configure' failed for src

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_RRDTOOL=/usr/local/bin/rrdtool
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=nawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run aclocal-1.7'
AMTAR='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run tar'
AUTOCONF='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run autoconf'
AUTOHEADER='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run autoheader'
AUTOMAKE='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run automake-1.7'
AWK='nawk'
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"NetMRG\" -DPACKAGE_TARNAME=\"netmrg\" -DPACKAGE_VERSION=\"0.14\" -DPACKAGE_STRING=\"NetMRG\ 0.14\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"netmrg\" -DVERSION=\"0.14\" '
ECHO_C=''ECHO_N=''
ECHO_T=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run makeinfo'
PACKAGE='netmrg'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='NetMRG'
PACKAGE_STRING='NetMRG 0.14'
PACKAGE_TARNAME='netmrg'
PACKAGE_VERSION='0.14'
PATH_SEPARATOR=':'
RRDTOOL='/usr/local/bin/rrdtool'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.14'
ac_ct_STRIP=''
am__leading_dot='.'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='/usr/local'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/magrub/temp/netmrg-0.14/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' src'
sysconfdir='${prefix}/etc'
target_alias=''

configure: exit 1
$
[/code1f0bb591fb7]

silfreed

16-03-2004 08:57:40

Can you post src/config.log?

-Doug

soox

16-03-2004 11:06:37

[code189312e0c06]
$ cat ./src/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by NetMRG configure src, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --prefix=/usr/local --exec-prefix=/usr/local --cache-file=/dev/null --srcdir=.

## --------- ##
## Platform. ##
## --------- ##

hostname = monica.alveran.ch
uname -m = sparc64
uname -r = 3.4
uname -s = OpenBSD
uname -v = GENERIC#0

/usr/bin/uname -p = SUNW,UltraSPARC-IIi @ 440 MHz, version 0 FPU
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = OpenBSD.sparc64
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/magrub/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/games
PATH: .


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1342: checking build system type
configure:1360: result: sparc64-unknown-openbsd3.4
configure:1368: checking host system type
configure:1382: result: sparc64-unknown-openbsd3.4
configure:1404: checking for a BSD-compatible install
configure:1458: result: /usr/bin/install -c
configure:1469: checking whether build environment is sane
configure:1512: result: yes
configure:1545: checking for gawk
configure:1574: result: no
configure:1545: checking for mawk
configure:1574: result: no
configure:1545: checking for nawk
configure:1561: found /usr/bin/nawk
configure:1571: result: nawk
configure:1581: checking whether make sets $(MAKE)
configure:1601: result: yes
configure:1899: checking for g++
configure:1915: found /usr/bin/g++
configure:1925: result: g++
configure:1941: checking for C++ compiler version
configure:1944: g++ --version </dev/null >&5
2.95.3
configure:1947: $? = 0
configure:1949: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd3.4/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)
configure:1952: $? = 0
configure:1954: g++ -V </dev/null >&5
g++: argument to `-V' missing

configure:1957: $? = 1
configure:1981: checking for C++ compiler default output
configure:1984: g++ conftest.cc >&5
configure:1987: $? = 0
configure:2033: result: a.out
configure:2038: checking whether the C++ compiler works
configure:2044: ./a.out
configure:2047: $? = 0
configure:2064: result: yes
configure:2071: checking whether we are cross compiling
configure:2073: result: no
configure:2076: checking for suffix of executables
configure:2078: g++ -o conftest conftest.cc >&5
configure:2081: $? = 0
configure:2106: result:
configure:2112: checking for suffix of object files
configure:2134: g++ -c conftest.cc >&5
configure:2137: $? = 0
configure:2159: result: o
configure:2163: checking whether we are using the GNU C++ compiler
configure:2188: g++ -c conftest.cc >&5
configure:2191: $? = 0
configure:2194: test -s conftest.o
configure:2197: $? = 0
configure:2210: result: yes
configure:2216: checking whether g++ accepts -g
configure:2238: g++ -c -g conftest.cc >&5
configure:2241: $? = 0
configure:2244: test -s conftest.o
configure:2247: $? = 0
configure:2258: result: yes
configure:2302: g++ -c -g -O2 conftest.cc >&5
configure:2305: $? = 0
configure:2308: test -s conftest.o
configure:2311: $? = 0
configure:2338: g++ -c -g -O2 conftest.cc >&5
configure:2341: $? = 0
configure:2344: test -s conftest.o
configure:2347: $? = 0
configure:2381: checking for style of include used by make
configure:2409: result: GNU
configure:2437: checking dependency style of g++
configure:2520: result: gcc
configure:2583: checking for gcc
configure:2599: found /usr/bin/gcc
configure:2609: result: gcc
configure:2853: checking for C compiler version
configure:2856: gcc --version </dev/null >&5
2.95.3
configure:2859: $? = 0
configure:2861: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd3.4/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)
configure:2864: $? = 0
configure:2866: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2869: $? = 1
configure:2872: checking whether we are using the GNU C compiler
configure:2897: gcc -c conftest.c >&5
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2919: result: yes
configure:2925: checking whether gcc accepts -g
configure:2947: gcc -c -g conftest.c >&5
configure:2950: $? = 0
configure:2953: test -s conftest.o
configure:2956: $? = 0
configure:2967: result: yes
configure:2984: checking for gcc option to accept ANSI C
configure:3045: gcc -c -g -O2 conftest.c >&5
configure:3048: $? = 0
configure:3051: test -s conftest.o
configure:3054: $? = 0
configure:3072: result: none needed
configure:3090: gcc -c -g -O2 conftest.c >&5
conftest.c:2: syntax error before `me'
configure:3093: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3204: checking dependency style of gcc
configure:3287: result: gcc
configure:3309: checking how to run the C preprocessor
configure:3345: gcc -E conftest.c
configure:3351: $? = 0
configure:3383: gcc -E conftest.c
configure:3384: ac_nonexistent.h: No such file or directory
configure:3389: $? = 1
configure: failed program was:
| #line 3374 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3427: result: gcc -E
configure:3452: gcc -E conftest.c
configure:3458: $? = 0
configure:3490: gcc -E conftest.c
configure:3491: ac_nonexistent.h: No such file or directory
configure:3496: $? = 1
configure: failed program was:
| #line 3481 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3550: checking for a BSD-compatible install
configure:3604: result: /usr/bin/install -c
configure:3616: checking whether to enable -Wall
configure:3627: result: no
configure:3634: checking for dlopen in -ldl
configure:3665: g++ -o conftest -g -O2 conftest.cc -ldl >&5
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
configure:3668: $? = 1
configure: failed program was:
| #line 3641 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char dlopen ();
| int
| main ()
| {
| dlopen ();
| ;
| return 0;
| }
configure:3686: result: no
configure:3698: checking for compress in -lz
configure:3729: g++ -o conftest -g -O2 conftest.cc -lz >&5
configure:3732: $? = 0
configure:3735: test -s conftest
configure:3738: $? = 0
configure:3750: result: yes
configure:3761: checking for pthread_create in -lpthread
configure:3792: g++ -o conftest -g -O2 conftest.cc -lpthread -lz >&5
configure:3795: $? = 0
configure:3798: test -s conftest
configure:3801: $? = 0
configure:3813: result: yes
configure:3887: checking for main in -lstdc++
configure:3912: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc -lstdc++ -lpthread -lz >&5
configure:3915: $? = 0
configure:3918: test -s conftest
configure:3921: $? = 0
configure:3933: result: yes
configure:3947: checking for xmlParseFile in -lxml2
configure:3978: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc -lxml2 -lstdc++ -lpthread -lz >&5
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:3981: $? = 1
configure: failed program was:
| #line 3954 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char xmlParseFile ();
| int
| main ()
| {
| xmlParseFile ();
| ;
| return 0;
| }
configure:3999: result: no
configure:4015: checking for xmlParseFile in -lxml2
configure:4046: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -L/usr/lib conftest.cc -lxml2 -lstdc++ -lpthread -lz >&5
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:4049: $? = 1
configure: failed program was:
| #line 4022 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char xmlParseFile ();
| int
| main ()
| {
| xmlParseFile ();
| ;
| return 0;
| }
configure:4067: result: no
configure:4015: checking for xmlParseFile in -lxml2
configure:4046: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -L/usr/local/lib conftest.cc -lxml2 -lstdc++ -lpthread -lz >&5
configure:4049: $? = 0
configure:4052: test -s conftest
configure:4055: $? = 0
configure:4067: result: yes
configure:4093: checking for mysql_init in -lmysqlclient
configure:4124: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:4127: $? = 0
configure:4130: test -s conftest
configure:4133: $? = 0
configure:4145: result: yes
configure:4239: checking for mysql_thread_init in -lmysqlclient
configure:4270: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -L/usr/local/lib conftest.cc -lmysqlclient -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
/tmp/ccP25952.o: In function `main':
/tmp/ccP25952.o(.text+0x4): undefined reference to `mysql_thread_init'
collect2: ld returned 1 exit status
configure:4273: $? = 1
configure: failed program was:
| #line 4246 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char mysql_thread_init ();
| int
| main ()
| {
| mysql_thread_init ();
| ;
| return 0;
| }
configure:4291: result: no
configure:4315: checking how to run the C++ preprocessor
configure:4347: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4353: $? = 0
configure:4385: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4389: ac_nonexistent.h: No such file or directory
configure:4391: $? = 1
configure: failed program was:
| #line 4376 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4429: result: g++ -E
configure:4454: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4460: $? = 0
configure:4492: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4496: ac_nonexistent.h: No such file or directory
configure:4498: $? = 1
configure: failed program was:
| #line 4483 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4541: checking for egrep
configure:4551: result: grep -E
configure:4556: checking for ANSI C header files
configure:4582: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4585: $? = 0
configure:4588: test -s conftest.o
configure:4591: $? = 0
configure:4683: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:4686: $? = 0
configure:4688: ./conftest
configure:4691: $? = 0
configure:4706: result: yes
configure:4716: checking for sys/wait.h that is POSIX.1 compatible
configure:4748: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4751: $? = 0
configure:4754: test -s conftest.o
configure:4757: $? = 0
configure:4768: result: yes
configure:4778: checking whether time.h and sys/time.h may both be included
configure:4804: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4807: $? = 0
configure:4810: test -s conftest.o
configure:4813: $? = 0
configure:4824: result: yes
configure:4848: checking for sys/types.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for sys/stat.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for stdlib.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for string.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for memory.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for strings.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for inttypes.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4848: checking for stdint.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4911: stdint.h: No such file or directory
configure:4868: $? = 1
configure: failed program was:
| #line 4853 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|
| #include <stdint.h>
configure:4885: result: no
configure:4848: checking for unistd.h
configure:4865: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4868: $? = 0
configure:4871: test -s conftest.o
configure:4874: $? = 0
configure:4885: result: yes
configure:4921: checking cstdio usability
configure:4934: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4937: $? = 0
configure:4940: test -s conftest.o
configure:4943: $? = 0
configure:4953: result: yes
configure:4957: checking cstdio presence
configure:4968: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4974: $? = 0
configure:4993: result: yes
configure:5029: checking for cstdio
configure:5036: result: yes
configure:4921: checking cstdlib usability
configure:4934: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4937: $? = 0
configure:4940: test -s conftest.o
configure:4943: $? = 0
configure:4953: result: yes
configure:4957: checking cstdlib presence
configure:4968: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4974: $? = 0
configure:4993: result: yes
configure:5029: checking for cstdlib
configure:5036: result: yes
configure:4921: checking string usability
configure:4934: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4937: $? = 0
configure:4940: test -s conftest.o
configure:4943: $? = 0
configure:4953: result: yes
configure:4957: checking string presence
configure:4968: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4974: $? = 0
configure:4993: result: yes
configure:5029: checking for string
configure:5036: result: yes
configure:4921: checking list usability
configure:4934: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
configure:4937: $? = 0
configure:4940: test -s conftest.o
configure:4943: $? = 0
configure:4953: result: yes
configure:4957: checking list presence
configure:4968: g++ -E -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc
configure:4974: $? = 0
configure:4993: result: yes
configure:5029: checking for list
configure:5036: result: yes
configure:4912: checking for unistd.h
configure:4917: result: yes
configure:5051: checking for libxml/xmlmemory.h
configure:5072: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS conftest.cc >&5
In file included from /usr/local/include/libxml2/libxml/parser.h:655,
from /usr/local/include/libxml2/libxml/globals.h:16,
from /usr/local/include/libxml2/libxml/threads.h:31,
from /usr/local/include/libxml2/libxml/xmlmemory.h:188,
from configure:5084:
/usr/local/include/libxml2/libxml/encoding.h:27: iconv.h: No such file or directory
configure:5075: $? = 1
configure: failed program was:
| #line 5055 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <libxml/xmlmemory.h>
| int
| main ()
| {
| int a = 1;
| ;
| return 0;
| }
configure:5115: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include conftest.cc >&5
In file included from /usr/local/include/libxml2/libxml/parser.h:655,
from /usr/local/include/libxml2/libxml/globals.h:16,
from /usr/local/include/libxml2/libxml/threads.h:31,
from /usr/local/include/libxml2/libxml/xmlmemory.h:188,
from configure:5127:
/usr/local/include/libxml2/libxml/encoding.h:27: iconv.h: No such file or directory
configure:5118: $? = 1
configure: failed program was:
| #line 5098 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <libxml/xmlmemory.h>
| int
| main ()
| {
| int a = 1;
| ;
| return 0;
| }
configure:5115: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include conftest.cc >&5
configure:5118: $? = 0
configure:5121: test -s conftest.o
configure:5124: $? = 0
configure:5149: result: yes
configure:5153: checking for mysql/mysql.h
configure:5174: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include conftest.cc >&5
configure:5177: $? = 0
configure:5180: test -s conftest.o
configure:5183: $? = 0
configure:5251: result: yes
configure:5256: checking for an ANSI C-conforming const
configure:5324: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include conftest.cc >&5
configure:5327: $? = 0
configure:5330: test -s conftest.o
configure:5333: $? = 0
configure:5344: result: yes
configure:5354: checking for size_t
configure:5379: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include conftest.cc >&5
configure:5382: $? = 0
configure:5385: test -s conftest.o
configure:5388: $? = 0
configure:5399: result: yes
configure:5413: checking return type of signal handlers
configure:5445: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include conftest.cc >&5
configure:5448: $? = 0
configure:5451: test -s conftest.o
configure:5454: $? = 0
configure:5465: result: void
configure:5473: checking for working memcmp
configure:5522: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:5525: $? = 0
configure:5527: ./conftest
configure:5530: $? = 0
configure:5544: result: yes
configure:5548: checking whether lstat dereferences a symlink specified with a trailing slash
configure:5580: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:5583: $? = 0
configure:5585: ./conftest
configure:5588: $? = 0
configure:5609: result: yes
configure:5623: checking whether stat accepts an empty string
configure:5649: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:5652: $? = 0
configure:5654: ./conftest
configure:5657: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 5631 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| #define RETSIGTYPE void
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| struct stat sbuf;
| exit (stat ("", &sbuf) ? 1 : 0);
| ;
| return 0;
| }
configure:5671: result: no
configure:5686: checking for memmove
configure:5736: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -L/usr/local/lib conftest.cc -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:5739: $? = 0
configure:5742: test -s conftest
configure:5745: $? = 0
configure:5756: result: yes
configure:5827: checking if Net-SNMP needs crypto support
configure:5846: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp conftest.cc >&5
configure:5861: net-snmp-config.h: No such file or directory
configure:5849: $? = 1
configure: failed program was:
| #line 5829 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| #define RETSIGTYPE void
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define HAVE_MEMMOVE 1
| /* end confdefs.h. */
| #include <net-snmp-config.h>
| int
| main ()
| {
| exit(USE_OPENSSL != 1);
| ;
| return 0;
| }
configure:5864: result: no
configure:5868: checking if UCD-SNMP needs crypto support
configure:5887: g++ -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp conftest.cc >&5
configure:5890: $? = 0
configure:5893: test -s conftest.o
configure:5896: $? = 0
configure:5898: result: yes
configure:5912: checking for CRYPTO_free in -lcrypto
configure:5943: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -L/usr/local/lib -L/usr/local/lib conftest.cc -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
configure:5946: $? = 0
configure:5949: test -s conftest
configure:5952: $? = 0
configure:5964: result: yes
configure:5982: checking for snmp_timeout in -lnetsnmp
configure:6013: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -L/usr/local/lib -L/usr/local/lib conftest.cc -lnetsnmp -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
/usr/bin/ld: cannot find -lnetsnmp
collect2: ld returned 1 exit status
configure:6016: $? = 1
configure: failed program was:
| #line 5989 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| #define RETSIGTYPE void
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define HAVE_MEMMOVE 1
| #define HAVE_LIBCRYPTO 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char snmp_timeout ();
| int
| main ()
| {
| snmp_timeout ();
| ;
| return 0;
| }
configure:6034: result: no
configure:6045: result: Cannot find Net-SNMP libraries...checking for UCD-SNMP
configure:6052: checking for snmp_timeout in -lsnmp
configure:6083: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -L/usr/local/lib -L/usr/local/lib conftest.cc -lsnmp -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz >&5
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
configure:6086: $? = 1
configure: failed program was:
| #line 6059 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "NetMRG"
| #define PACKAGE_TARNAME "netmrg"
| #define PACKAGE_VERSION "src"
| #define PACKAGE_STRING "NetMRG src"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "netmrg"
| #define VERSION "src"
| #define HAVE_LIBZ 1
| #define HAVE_LIBSTDC__ 1
| #define OLD_MYSQL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CSTDIO 1
| #define HAVE_CSTDLIB 1
| #define HAVE_STRING 1
| #define HAVE_LIST 1
| #define HAVE_UNISTD_H 1
| #define RETSIGTYPE void
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define HAVE_MEMMOVE 1
| #define HAVE_LIBCRYPTO 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char snmp_timeout ();
| int
| main ()
| {
| snmp_timeout ();
| ;
| return 0;
| }
configure:6104: result: no
configure:6114: error: Cannot find UCD-SNMP libraries

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=sparc64-unknown-openbsd3.4
ac_cv_build_alias=sparc64-unknown-openbsd3.4
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_func_lstat_dereferences_slashed_symlink=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_memmove=yes
ac_cv_func_stat_empty_string_bug=no
ac_cv_header_cstdio=yes
ac_cv_header_cstdlib=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_list=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=no
ac_cv_header_stdlib_h=yes
ac_cv_header_string=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_wait_h=yes
ac_cv_header_time=yes
ac_cv_header_unistd_h=yes
ac_cv_host=sparc64-unknown-openbsd3.4
ac_cv_host_alias=sparc64-unknown-openbsd3.4
ac_cv_lib_crypto_CRYPTO_free=yes
ac_cv_lib_dl_dlopen=no
ac_cv_lib_mysqlclient_mysql_init=yes
ac_cv_lib_mysqlclient_mysql_thread_init=no
ac_cv_lib_netsnmp_snmp_timeout=no
ac_cv_lib_pthread_pthread_create=yes
ac_cv_lib_snmp_snmp_timeout=no
ac_cv_lib_stdcpp_main=yes
ac_cv_lib_xml2_xmlParseFile=yes
ac_cv_lib_z_compress=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=nawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
ac_cv_type_signal=void
ac_cv_type_size_t=yes
am_cv_CC_dependencies_compiler_type=gcc
am_cv_CXX_dependencies_compiler_type=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run aclocal-1.7'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run tar'
AUTOCONF='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run autoconf'
AUTOHEADER='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run autoheader'
AUTOMAKE='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run automake-1.7'
AWK='nawk'
CC='gcc'
CCDEPMODE='depmode=gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=' -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp'
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''ECHO_N=''
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=' -L/usr/local/lib -L/usr/local/lib'
LIBOBJS=''
LIBS='-lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz '
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/magrub/temp/netmrg-0.14/missing --run makeinfo'
OBJEXT='o'
PACKAGE='netmrg'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='NetMRG'
PACKAGE_STRING='NetMRG src'
PACKAGE_TARNAME='netmrg'
PACKAGE_VERSION='src'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='src'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE='#'
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='sparc64-unknown-openbsd3.4'
build_alias=''
build_cpu='sparc64'
build_os='openbsd3.4'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='/usr/local'
host='sparc64-unknown-openbsd3.4'
host_alias='sparc64-unknown-openbsd3.4'
host_cpu='sparc64'
host_os='openbsd3.4'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/magrub/temp/netmrg-0.14/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_CSTDIO 1
#define HAVE_CSTDLIB 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIBCRYPTO 1
#define HAVE_LIBSTDC__ 1
#define HAVE_LIBZ 1
#define HAVE_LIST 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMORY_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define OLD_MYSQL 1
#define PACKAGE "netmrg"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "NetMRG"
#define PACKAGE_STRING "NetMRG src"
#define PACKAGE_TARNAME "netmrg"
#define PACKAGE_VERSION "src"
#define RETSIGTYPE void
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1
#define VERSION "src"

configure: exit 1
$
[/code189312e0c06]

keb

16-03-2004 19:26:03

[quotea921150dab="soox"]/usr/local/lib/libsnmp.so.42.6 undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so.42.6 undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so.42.6 undefined reference to `des_ncbc_encrypt'
[/quotea921150dab]

These errors are causing that check to fail. Try moving the crypto library (-lcrypto) before the snmp library (-lsnmp) to see if the above errors are still there. To do this, put the following in a file called test.cc.

[code1a921150dab]#define PACKAGE_NAME "NetMRG"
#define PACKAGE_TARNAME "netmrg"
#define PACKAGE_VERSION "src"
#define PACKAGE_STRING "NetMRG src"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "netmrg"
#define VERSION "src"
#define HAVE_LIBZ 1
#define HAVE_LIBSTDC__ 1
#define OLD_MYSQL 1
#define STDC_HEADERS 1
#define HAVE_SYS_WAIT_H 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_CSTDIO 1
#define HAVE_CSTDLIB 1
#define HAVE_STRING 1
#define HAVE_LIST 1
#define HAVE_UNISTD_H 1
#define RETSIGTYPE void
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_MEMMOVE 1
#define HAVE_LIBCRYPTO 1

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char snmp_timeout ();
int
main ()
{
snmp_timeout ();
;
return 0;
}
[/code1a921150dab]

Once that file is created, run the command below and post any errors.

[code1a921150dab]g++ -o test -g -O2 -Wall -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -L/usr/local/lib -L/usr/local/lib test.cc -lcrypto -lsnmp -lmysqlclient -lxml2 -lstdc++ -lpthread -lz[/code1a921150dab]

- Kevin

soox

17-03-2004 03:32:50

same error with the 'test.cc' file

[code143f1181572]
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
[/code143f1181572]


i dont know if this help but here are my ucd-snmp configure args
[code143f1181572]--with-defaults --with-logfile='/var/log/snmpd' \
--with-persistent-directory='/var/ucd-snmp' \
--with-libwrap='/usr' --with-openssl --with-zlib \
--with-sys-contact='default@' \
--with-sys-location='Default Location'
[/code143f1181572]

many thx for all your help

keb

17-03-2004 15:31:21

Darn. Are you using the ucd-snmp source from www.ece.ucdavis.edu/ucd-snmp or from the openbsd ports? I am assuming the latter, but want to be sure.

Are you trying to install NetMRG on a test box? If so, can you remove your current ucd-snmp stuff compiled from source and try using the pre-compiled openbsd package for ucd-snmp 4.2.6? You can install the package by running
[code1e151b253fa]pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.4/packages/i386/ucd-snmp-4.2.6.tgz[/code1e151b253fa]

Once that is done, I would try compiling the test.cc file again with the following command to see if the errors persist.

[code1e151b253fa]g++ -o test -g -O2 -Wall -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS test.cc -lcrypto -lsnmp -lmysqlclient -lxml2 -lstdc++ -lpthread -lz[/code1e151b253fa]
Thanks!
- Kevin

soox

18-03-2004 04:35:11

[quotee92eed5004="keb"]Darn. Are you using the ucd-snmp source from www.ece.ucdavis.edu/ucd-snmp or from the openbsd ports? I am assuming the latter, but want to be sure.[/quotee92eed5004]

yes, i had used the ports...

after unistall ucd-snmp and install the pkg i have got the follow output

[code1e92eed5004]
$ ldconfig -r |grep snmp
35:-lsnmp.42.6 => /usr/local/lib/libsnmp.so.42.6
$
$
$ ls -la
total 16
drwxr-xr-x 3 magrub magrub 512 Mar 18 10:22 .
drwxr-xr-x 4 magrub magrub 1536 Mar 17 09:24 ..
drwxr-xr-x 10 magrub magrub 1024 Mar 16 14:32 netmrg-0.14
-rw-r--r-- 1 magrub magrub 1075 Mar 17 09:24 test.cc
$
$
$
$
$ g++ -o test -g -O2 -Wall -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS test.cc -lcrypto -lsnmp -lmysqlclient -lxml2 -lstdc++ -lpthread -lz
/usr/bin/ld: cannot find -lsnmp
collect2: ld returned 1 exit status
$
$
$ g++ -o test -g -O2 -Wall -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp \
> -L/usr/local/lib -L/usr/local/lib test.cc -lcrypto -lsnmp -lmysqlclient -lxml2 -lstdc++ -lpthread -lz
/usr/local/lib/libsnmp.so.42.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
$
$
$
[/code1e92eed5004]

keb

19-03-2004 11:41:57

[quotec1b997c126="soox"]same error with the 'test.cc' file

[code1c1b997c126]
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
[/code1c1b997c126][/quotec1b997c126]

I obtained access to an OpenBSD 3.4 box yesterday to see if I could get NetMRG installed. Upon installing the necessary packages (using pkg_add), I was able to duplicate this error. About the only thing that seemed odd to me was the output of 'ldconfig -r' had 2 libcrypto versions listed. My initial guess it that this is an issue with libsnmp, so I'll try a ports install tonight and see how that goes.

I've created bug#176 for this issue.

- Kevin

soox

19-03-2004 13:18:16

let me know, if you need any shell acces for more tests

at weekend i will try the same with the current snapshot (pre 3.5)

thx

soox

26-03-2004 06:47:06

update gcc needs the "-ldes" flag an it works..

[code15ac1f89198]
$ export CPPFLAGS="-ldes"
$ export CPATH="/usr/local/include/libxml2/"
$
$ ./configure
configure configure.ac
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... 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... yes
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... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find Net-SNMP libraries...checking for UCD-SNMP
checking for snmp_timeout in -lsnmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
$
$
$
$ make
Making all in src
source='db.cpp' object='db.o' libtool=no depfile='.deps/db.Po' tmpdepfile='.deps/db.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o db.o `test -f 'db.cpp' || echo './'`db.cpp
g++: -ldes: linker input file unused since linking not done
source='devices.cpp' object='devices.o' libtool=no depfile='.deps/devices.Po' tmpdepfile='.deps/devices.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o devices.o `test -f 'devices.cpp' || echo './'`devices.cpp
g++: -ldes: linker input file unused since linking not done
source='events.cpp' object='events.o' libtool=no depfile='.deps/events.Po' tmpdepfile='.deps/events.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o events.o `test -f 'events.cpp' || echo './'`events.cpp
g++: -ldes: linker input file unused since linking not done
source='locks.cpp' object='locks.o' libtool=no depfile='.deps/locks.Po' tmpdepfile='.deps/locks.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o locks.o `test -f 'locks.cpp' || echo './'`locks.cpp
g++: -ldes: linker input file unused since linking not done
source='mappings.cpp' object='mappings.o' libtool=no depfile='.deps/mappings.Po' tmpdepfile='.deps/mappings.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o mappings.o `test -f 'mappings.cpp' || echo './'`mappings.cpp
g++: -ldes: linker input file unused since linking not done
source='monitors.cpp' object='monitors.o' libtool=no depfile='.deps/monitors.Po' tmpdepfile='.deps/monitors.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o monitors.o `test -f 'monitors.cpp' || echo './'`monitors.cpp
g++: -ldes: linker input file unused since linking not done
source='netmrg.cpp' object='netmrg.o' libtool=no depfile='.deps/netmrg.Po' tmpdepfile='.deps/netmrg.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o netmrg.o `test -f 'netmrg.cpp' || echo './'`netmrg.cpp
g++: -ldes: linker input file unused since linking not done
source='rrd.cpp' object='rrd.o' libtool=no depfile='.deps/rrd.Po' tmpdepfile='.deps/rrd.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o rrd.o `test -f 'rrd.cpp' || echo './'`rrd.cpp
g++: -ldes: linker input file unused since linking not done
source='settings.cpp' object='settings.o' libtool=no depfile='.deps/settings.Po' tmpdepfile='.deps/settings.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o settings.o `test -f 'settings.cpp' || echo './'`settings.cpp
g++: -ldes: linker input file unused since linking not done
source='snmp.cpp' object='snmp.o' libtool=no depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o snmp.o `test -f 'snmp.cpp' || echo './'`snmp.cpp
g++: -ldes: linker input file unused since linking not done
source='utils.cpp' object='utils.o' libtool=no depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' depmode=gcc /bin/sh ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -ldes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c -o utils.o `test -f 'utils.cpp' || echo './'`utils.cpp
g++: -ldes: linker input file unused since linking not done
g++ -g -O2 -L/usr/local/lib -L/usr/local/lib -o netmrg-gatherer db.o devices.o events.o locks.o mappings.o monitors.o netmrg.o rrd.o settings.o snmp.o utils.o -lsnmp -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so.42.6: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/magrub/netmrg/netmrg-0.14/src (line 231 of Makefile).
*** Error code 1

Stop in /home/magrub/netmrg/netmrg-0.14 (line 369 of Makefile).
$
$
$
ices.o events.o locks.o mappings.o monitors.o netmrg.o rrd.o settings.o snmp.o utils.o -ldes -lsnmp -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -<
g++: db.o: No such file or directory
g++: devices.o: No such file or directory
g++: events.o: No such file or directory
g++: locks.o: No such file or directory
g++: mappings.o: No such file or directory
g++: monitors.o: No such file or directory
g++: netmrg.o: No such file or directory
g++: rrd.o: No such file or directory
g++: settings.o: No such file or directory
g++: snmp.o: No such file or directory
g++: utils.o: No such file or directory
$
$
$ cd src/
o utils.o -ldes -lsnmp -lcrypto -lmysqlclient -lxml2 -lstdc++ -lpthread -lz <
$
$
$ cd ..
$ make
Making all in src
Making all in www
Making all in etc
$
[/code15ac1f89198]

i dont know if it work now (no time for finish the installation at the moment). i will update this thread if it works (or not)


btw does anyone know what the "g++ -ldes linker input file unused since linking not done" output means?

keb

26-03-2004 12:08:20

[quote318946f209="soox"]update gcc needs the "-ldes" flag an it works..

[ snip ]

i dont know if it work now (no time for finish the installation at the moment). i will update this thread if it works (or not)[/quote318946f209]

Awesome! Thanks for testing and discovering a solution. I'll commit the fix into CVS soon.

[quote318946f209="soox"]btw does anyone know what the "g++ -ldes linker input file unused since linking not done" output means?[/quote318946f209]

Yeah. It's displaying that message because it is just trying to compile those files, not link them yet. Instead of using CPPFLAGS, you can use the LIBS variable to specify the des library.

[code1318946f209]$ ./configure LIBS="-ldes"[/code1318946f209]

The des library might require the crypto one, so you may need to add the '-lcrypto' to the LIBS variable.

Kevin

keb

29-03-2004 00:56:40

This should be fixed in CVS and the 2004-03-29 CVS snapshot.

I tested on an OpenBSD 3.4 box and was able to get NetMRG to compile without errors using

[code1d41d1d28d2]./configure "CPPFLAGS=-I/usr/local/include"[/code1d41d1d28d2]

I needed to include /usr/local/include because the libxml/xmlmemory.h check failed looking for the iconv.h header file. The configure script is setup to check /usr/local/include/libxml2 for header files, so that shouldn't need to be specified before building.

Kevin