OpenWrt Forum Archive

Topic: GLIB fam compilation error in Kamikaze 7.09 for NSLU2

The content of this topic has been archived on 28 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Target System : Intel XScale IXP4xx [2.6]
Target Profile : Linksys NSLU2
Target Image : squashfs

I'm trying to build a Kamikaze image for NSLU2 on my Debian Lenny and I get this error when compiling fam :

fam-helper.c:45: error: expected ')' before 'code'
fam-helper.c: In function 'fam_do_iter_unlocked':
fam-helper.c:95: warning: implicit declaration of function 'fam_event_to_file_monitor_event'
make[8]: *** [libgiofam_la-fam-helper.lo] Error 1

Does anyone knows this problem and/or to solve it ?

Thanks a lot for your help !

Full output :

Making install in fam
make[8]: Entering directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/gio/fam'
/bin/sh ../../libtool --tag=CC   --mode=compile i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..   -pthread -DG_LOG_DOMAIN=\"GLib-GIO\" -I../.. -I../../glib -I../../gmodule -I../../gio -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGIO_MODULE_DIR=\"/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/build/i486-linux-gnu/lib/gio/modules\" -DGIO_COMPILATION -DG_DISABLE_DEPRECATED -g -O2 -Wall -MT libgiofam_la-fam-helper.lo -MD -MP -MF .deps/libgiofam_la-fam-helper.Tpo -c -o libgiofam_la-fam-helper.lo `test -f 'fam-helper.c' || echo './'`fam-helper.c
i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -DG_LOG_DOMAIN=\"GLib-GIO\" -I../.. -I../../glib -I../../gmodule -I../../gio -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGIO_MODULE_DIR=\"/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/build/i486-linux-gnu/lib/gio/modules\" -DGIO_COMPILATION -DG_DISABLE_DEPRECATED -g -O2 -Wall -MT libgiofam_la-fam-helper.lo -MD -MP -MF .deps/libgiofam_la-fam-helper.Tpo -c fam-helper.c -o libgiofam_la-fam-helper.o
fam-helper.c:45: error: expected ')' before 'code'
fam-helper.c: In function 'fam_do_iter_unlocked':
fam-helper.c:95: warning: implicit declaration of function 'fam_event_to_file_monitor_event'
make[8]: *** [libgiofam_la-fam-helper.lo] Error 1
make[8]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/gio/fam'
make[7]: *** [install-recursive] Error 1
make[7]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/gio'
make[6]: *** [install] Error 2
make[6]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/gio'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4'
make[3]: *** [/home/glr/openwrt/kamikaze_7.09/build_armeb/glib-2.15.4/.configured] Error 2
make[3]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/feeds/https_svn.openwrt.org_openwrt_packages_/libs/glib2'
make[2]: *** [glib2-compile] Error 2
make[2]: Leaving directory `/home/glr/openwrt/kamikaze_7.09/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/glr/openwrt/kamikaze_7.09'
make: *** [world] Erreur 2

Try with latest trunk. 7.09 is too old...

Thanks a lot, it works much better with the trunk sources !

I don't know why I used the 7.09 release sources...

The discussion might have continued from here.