|
|
| Author |
Message |
Kokey Beginner
Joined: 10 Nov 2004 Posts: 5 Location: Chihuahua, Mexico
|
Posted: Wed Nov 10, 2004 10:40 pm Post subject: Can't compile in Debian Woody |
|
|
** Hey! sorry.. Admin could you move this post to support forum?**
Hi,
the ./configure runs well, but the problem is:
| Code: |
kokey:~/netmrg/netmrg-0.18.2# make
Making all in src
Making all in .
CXX db.o
CXX devices.o
CXX events.o
CXX locks.o
CXX mappings.o
CXX monitors.o
monitors.cpp: In function `uint process_monitor(DeviceInfo, MYSQL *, RRDInfo)':
monitors.cpp:370: implicit declaration of function `int llround(...)'
make[2]: *** [monitors.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
|
Any idea?
Thanks a lot, I really want to test netmrg. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed Nov 10, 2004 10:59 pm Post subject: |
|
|
Which version are you using? We recently fixed this bug, should be in 0.18.2.
-Doug |
|
| Back to top |
|
 |
Kokey Beginner
Joined: 10 Nov 2004 Posts: 5 Location: Chihuahua, Mexico
|
Posted: Wed Nov 10, 2004 11:02 pm Post subject: 0.8.12 |
|
|
that's the version that I'm using
| Quote: |
kokey:~/netmrg/netmrg-0.18.2# make
|
|
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Wed Nov 10, 2004 11:41 pm Post subject: |
|
|
| The configure script is supposed to detect the presence of llround. Could you check your config.log for any info regarding this test? |
|
| Back to top |
|
 |
Kokey Beginner
Joined: 10 Nov 2004 Posts: 5 Location: Chihuahua, Mexico
|
Posted: Wed Nov 10, 2004 11:53 pm Post subject: my config.log |
|
|
Here some lines extracted from config.log
| Code: |
837 configure:6292: result: yes
838 configure:6204: checking for llround
839 configure:6261: g++ -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 conftest.cc -lmysqlclient -lxml2 -lstdc++ -lp thread -lz -ldl >&5
840 configure:6267: $? = 0
841 configure:6271: test -z
842 || test ! -s conftest.err
843 configure:6274: $? = 0
844 configure:6277: test -s conftest
845 configure:6280: $? = 0
846 configure:6292: result: yes
...
1088 ac_cv_exeext=
1089 ac_cv_func_llround=yes
1090 ac_cv_func_lstat_dereferences_slashed_symlink=yes
1091 ac_cv_func_memcmp_working=yes
|
Thanks! |
|
| Back to top |
|
 |
keb Contributor
Joined: 09 Jul 2003 Posts: 44 Location: Camp Hill, PA, USA
|
Posted: Thu Nov 11, 2004 7:32 am Post subject: Re: Can't compile in Debian Woody |
|
|
| Kokey wrote: |
the ./configure runs well, but the problem is:
| Code: |
kokey:~/netmrg/netmrg-0.18.2# make
Making all in src
Making all in .
CXX db.o
CXX devices.o
CXX events.o
CXX locks.o
CXX mappings.o
CXX monitors.o
monitors.cpp: In function `uint process_monitor(DeviceInfo, MYSQL *, RRDInfo)':
monitors.cpp:370: implicit declaration of function `int llround(...)'
make[2]: *** [monitors.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
|
|
That's odd. After running configure, in src/include/config.h, is HAVE_LLROUND defined to 1 or still undef? It would have to be the former, but I just want to make sure.
It might be missing the libm library. Please run the following in the NetMRG src directory:
From that you should see what command is being run to build monitors.cpp. Copy that and try to run it in your shell, adding '-lm' to the line.
Let us know how it turns out or if you need help with the above items. In the meantime, I'll see if I can find a box to install Woody on to see if I can duplicate this issue and resolve this build error.
- Kevin |
|
| Back to top |
|
 |
Kokey Beginner
Joined: 10 Nov 2004 Posts: 5 Location: Chihuahua, Mexico
|
Posted: Thu Nov 11, 2004 4:51 pm Post subject: thanks keb |
|
|
here's the output:
| Code: |
kokey:~/netmrg/netmrg-0.18.2/src# make VERBOSE=1
Making all in .
make[1]: Entering directory `/root/netmrg/netmrg-0.18.2/src'
CXX monitors.o
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../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o monitors.o monitors.cpp
monitors.cpp: In function `uint process_monitor(DeviceInfo, MYSQL *, RRDInfo)':
monitors.cpp:370: implicit declaration of function `int llround(...)'
make[1]: *** [monitors.o] Error 1
make[1]: Leaving directory `/root/netmrg/netmrg-0.18.2/src'
make: *** [all-recursive] Error 1
|
Then I run
| Code: |
l:~/netmrg/netmrg-0.18.2/src# g++ -lm -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o monitors.o monitors.cpp
monitors.cpp: In function `uint process_monitor(DeviceInfo, MYSQL *, RRDInfo)':
monitors.cpp:370: implicit declaration of function `int llround(...)'
|
Thanks again! |
|
| Back to top |
|
 |
keb Contributor
Joined: 09 Jul 2003 Posts: 44 Location: Camp Hill, PA, USA
|
Posted: Sat Nov 13, 2004 1:54 am Post subject: Re: thanks keb |
|
|
| Kokey wrote: |
| Code: |
l:~/netmrg/netmrg-0.18.2/src# g++ -lm -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o monitors.o monitors.cpp
monitors.cpp: In function `uint process_monitor(DeviceInfo, MYSQL *, RRDInfo)':
monitors.cpp:370: implicit declaration of function `int llround(...)'
|
|
I've found a Debian Woody box and was able to see this error as well. I'll poke around tonight and see if I can get it to build.
- Kevin |
|
| Back to top |
|
 |
keb Contributor
Joined: 09 Jul 2003 Posts: 44 Location: Camp Hill, PA, USA
|
Posted: Sat Nov 13, 2004 2:57 am Post subject: |
|
|
I've finally got it to build correctly on Debian Woody using g++ v3.0.4.
| Code: |
| apt-get install g++-3.0 |
Then as your build user, run:
| Code: |
./configure 'CXX=g++-3.0'
make
|
That should build NetMRG 0.18.2 successfully, without any changes to the source. Please try this and let us know your results. If everything works, a section for Debian Woody will probably be added to the 'Satisfying Requirements' section of the docs.
Thanks,
Kevin |
|
| Back to top |
|
 |
Kokey Beginner
Joined: 10 Nov 2004 Posts: 5 Location: Chihuahua, Mexico
|
Posted: Mon Nov 15, 2004 5:10 pm Post subject: |
|
|
That's it!
everything compile and install ok.
Thanks!
Now, I need to continue reading the documentation.....
Gracias! |
|
| Back to top |
|
 |
|