[mrtg] MRTG compilation error 'issues with long long'

Thi-tuyet-minh Nguyen (MA/ESF) thi-tuyet-minh.nguyen at ericsson.com
Mon Jul 28 11:22:15 MEST 2003


Hello,
As some troubles have occured with my email this morning, I am not sure that this mail have been correctly sent.
If you have already received the same mail, please don't take into account this mail.

All the library and compilater : gcc, perl (version 5.005_03), gd (version 2.0.11), libpng (version 1.0.15), zlib (version 1.1.4) are installed on the Unix machin with Solaris 8 based on the MRTG unix-guide made by Mr Oetiker. 
I have a problem during the compilation of MRTG. See the deatils of the error messages below.

When I try to compile the MRTG (version 2.9.29) by sending the command : /usr/local/src/mrtg-2.9.29>> ./configure --prefix=/usr/local/mrtg-2 
, an error message appears on the screen :
	
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for a BSD-compatible install... ./install-sh -c
checking for perl... /bin/perl
checking for groff... no
checking for nroff... /bin/nroff
checking for egrep... Broken Pipe
egrep
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... no
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 for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for __strtoll... no
checking for pow in -lm... yes
checking if long long works here... nope

** Ooops, your compiler seems to have issues with long long:

   figure out how to get long long, printf with %lld and
   strtoll working on your platform.
   probably the  config.log file can give you a hint.



On the config.log under /usr/local/src/mrtg-2 generated during the compilation of MRTG, the (extract of ) error log messages are :

configure:2893: checking for __strtoll
configure:2930: gcc -o conftest -g -O2   conftest.c  >&5
Undefined                       first referenced
 symbol                             in file
__strtoll                           /var/tmp//cccjNogN.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:2933: $? = 1
configure: failed program was:
#line 2898 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __strtoll (); below.  */
#include <assert.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 __strtoll ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___strtoll) || defined (__stub_____strtoll)
choke me
#else
f = __strtoll;
#endif

  ;
  return 0;
}
configure:2949: result: no
configure:2960: checking for pow in -lm
configure:2987: gcc -o conftest -g -O2   conftest.c -lm   >&5
configure:2990: $? = 0
configure:2993: test -s conftest
configure:2996: $? = 0
configure:3007: result: yes
configure:3015: checking if long long works here
configure:3048: gcc -o conftest -g -O2   conftest.c  >&5
In file included from configure:3026:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/stdlib.h:19:1: unterminated #if
configure: In function `main':
configure:3031: error: `NULL' undeclared (first use in this function)
configure:3031: error: (Each undeclared identifier is reported only once
configure:3031: error: for each function it appears in.)
configure:3051: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 3023 "configure"
#include "confdefs.h"

On the attach mail, I also send  the complete file config.log under /usr/local/src/mrtg-2 generated during the compilation of MRTG

 <<mrtg2_config.log>> 
Minh Nguyen
-----------------------------------------------------------------------
Ericsson France / Systems Integration & Network Consulting
Service Network integration engineer
Fixed : +33 1 6447 4735
Mobile : +33 6 0718 2991
I have a new email : mailto:thi-tuyet-minh.nguyen at ericsson.com
My old mail email will function until 2004-06-30
Please change my email in your personal address book.
-----------------------------------------------------------------------





-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 13k (13822 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/mrtg2_config.log


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list