[Ocfs2-tools-users] compile error OCFS2-tools
Philox / Jonathan Salomon
joni at philox.eu
Tue Sep 5 11:09:56 PDT 2006
Hi everyone,
I am having trouble compiling the OCFS2-tools. I get this error when I
do make:
make[1]: Entering directory
`/mnt/lfs/lfs-sources/ocfs2-tools-1.2.1/o2cb_ctl'
gcc -ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DG_DISABLE_DEPRECATED -Iinclude
-I../libocfs2/include -I../libo2cb/include -DO2CB_FLAT_INCLUDES
-DVERSION=\"1.2.1\" -MD -MP -MF ./.o2cb_ctl.d -o o2cb_ctl.o -c o2cb_ctl.c
gcc -ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DG_DISABLE_DEPRECATED -Iinclude
-I../libocfs2/include -I../libo2cb/include -DO2CB_FLAT_INCLUDES
-DVERSION=\"1.2.1\" -MD -MP -MF ./.o2cb_config.d -o o2cb_config.o -c
o2cb_config.c
gcc -ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DG_DISABLE_DEPRECATED -Iinclude
-I../libocfs2/include -I../libo2cb/include -DO2CB_FLAT_INCLUDES
-DVERSION=\"1.2.1\" -MD -MP -MF ./.jconfig.d -o jconfig.o -c jconfig.c
jconfig.c: In function 'j_config_add_stanza':
jconfig.c:1089: warning: ignoring return value of 'g_list_append',
declared with attribute warn_unused_result
gcc -ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DG_DISABLE_DEPRECATED -Iinclude
-I../libocfs2/include -I../libo2cb/include -DO2CB_FLAT_INCLUDES
-DVERSION=\"1.2.1\" -MD -MP -MF ./.jiterator.d -o jiterator.o -c
jiterator.c
gcc -ggdb -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -static -o o2cb_ctl o2cb_ctl.o o2cb_config.o
jconfig.o jiterator.o ../libocfs2/libocfs2.a ../libo2cb/libo2cb.a
-L../libo2cb -lo2cb -lglib-2.0 -L../libocfs2 -locfs2 -lcom_err
/usr/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make[1]: *** [o2cb_ctl] Error 1
make[1]: Leaving directory `/mnt/lfs/lfs-sources/ocfs2-tools-1.2.1/o2cb_ctl'
make: *** [o2cb_ctl] Error 2
It seems to me that there is a problem with the glib library. However
while configuring it seems to find the libraries:
# cat config.log | grep glib
configure:4002: gcc -o conftest -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include conftest.c -lglib-2.0 >&5
GLIB_CFLAGS='-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '
GLIB_GENMARSHAL='glib-genmarshal'
GLIB_LIBS='-lglib-2.0 '
GLIB_MKENUMS='glib-mkenums'
Can anyone shed some light on this?
Thanks!
Jonathan
More information about the Ocfs2-tools-users
mailing list