#645 Can't build 1.0.2 with CentOS 6.3

1.1
closed-fixed
pcmanfm (118)
7
2012-10-31
2012-10-31
Andrew Lukoshko
No

Trying to build 1.0.2 with CentOS 6.3.
I've got this error:

gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share/pcmanfm"\" -DPACKAGE_UI_DIR=\""/usr/share/pcmanfm/ui"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DG_DISABLE_CAST_CHECKS -Wall -Werror-implicit-function-declaration -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT pcmanfm-desktop.o -MD -MP -MF .deps/pcmanfm-desktop.Tpo -c -o pcmanfm-desktop.o `test -f 'desktop.c' || echo './'`desktop.c
desktop.c: In function 'on_key_press':
desktop.c:2177: error: 'GDK_KEY_Return' undeclared (first use in this function)
desktop.c:2177: error: (Each undeclared identifier is reported only once
desktop.c:2177: error: for each function it appears in.)
desktop.c:2178: error: 'GDK_KEY_ISO_Enter' undeclared (first use in this function)
desktop.c:2179: error: 'GDK_KEY_KP_Enter' undeclared (first use in this function)
make[2]: *** [pcmanfm-desktop.o] Error 1

Previous version, 1.0.1, builds and works as expected.

Discussion

  • Yes, you're right - I've missed compatibility defines in that commit. I'm sorry. Added a fix into git - you can just apply patch over the unpacked tarball.
    Thank you very much!

     
    • priority: 5 --> 7
    • assigned_to: nobody --> lstranger
    • status: open --> closed-fixed