[rrd-users] problems with the glib installation for rrdtools

Rashid Mehdiyev rmehdi at fnal.gov
Thu Nov 15 23:19:32 CET 2012


Hello,

I am having a problem while trying to install glib package along the lines of rebuilding rrdtools with gcc 4_7_1

An excerpt from the make.log file is provided below:

 

Using: libiconv v1_13_1
                     glib v2.15.4


Compiled with options:

>./configure --prefix=/home/glib/v2_15_4/Linux64bit+2.6-2.12-GCC_4_7_1 --with-libiconv LDFLAGS=-L$LIBICONV_DIR/lib

##Compilation went successfully.##


then with:
>make


.....
gchecksum.c: In function 'md5_sum_close':
gchecksum.c:389:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gchecksum.c:390:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gchecksum.c: In function 'IA__g_checksum_update':
gchecksum.c:1207:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
In file included from gchecksum.c:23:0:
/usr/include/string.h:399:15: note: expected 'const char *' but argument is of type 'const guchar *'
mv -f .deps/gchecksum.Tpo .deps/gchecksum.Plo

/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I..  -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -\
D_OPEN_BINARY -pthread  -g -O2 -Wall -MT gcompletion.lo -MD -MP -MF .deps/gcompletion.Tpo -c -o gcompletion.lo gcompletion.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -D_OPEN_BINARY -pthread -g -O2 -Wall -MT gcompl\
etion.lo -MD -MP -MF .deps/gcompletion.Tpo -c gcompletion.c  -fPIC -DPIC -o .libs/gcompletion.o
mv -f .deps/gcompletion.Tpo .deps/gcompletion.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I..  -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -\
D_OPEN_BINARY -pthread  -g -O2 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c -o gconvert.lo gconvert.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -D_OPEN_BINARY -pthread -g -O2 -Wall -MT gconve\
rt.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c  -fPIC -DPIC -o .libs/gconvert.o
gconvert.c:48:2: error: #error GNU libiconv in use but included iconv.h not from libiconv
make[4]: *** [gconvert.lo] Error 1
make[4]: Leaving directory `..../products/install/GCC_4_7_1/glib/glib-2.15.4/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `..../products/install/GCC_4_7_1/glib/glib-2.15.4/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `..../products/install/GCC_4_7_1/glib/glib-2.15.4/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `..../products/install/GCC_4_7_1/glib/glib-2.15.4'


Does anyone have the same problem(s) ? Any suggestions/recipes/ advices/fixes you may know?


Thanks,
RM



More information about the rrd-users mailing list