[Sawfish] Sawfish Pager fails to compile on Ubuntu 12.10

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


Hello everyone.

The Pager fails to compile for me on Ubuntu 12.10 with a non-logical
problem, it reports the following:

    sawfishpager.c:(.text+0x19): undefined reference to `gtk_init'

and more such errors (see attachment make.log).

If I try to run the compilation manually with the following command:

    gcc sawfishpager.c -o test `pkg-config --cflags --libs gtk+-2.0`

it does not output those errors (see attachment gcc.log). So I think
there's something wrong with the make file, like parameters are the
wrong order or missing...I tried to figure that out myself but did not
find anything.

Can somebody look into this who actually knows how the make file works?

Best Greetings,
Bobby
robert@Dagon:~/dev/Sawfish/sawfish-pager$ make
cc -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     -Wl,-rpath /usr/local/lib/rep/sawfish /usr/local/lib/rep/sawfish/client.so -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -pthread -L/usr/local/lib -lX11 -lgdk_pixbuf_xlib-2.0 -lrep -lcrypt -lgmp -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lrt -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0   -pthread -lgdk_pixbuf_xlib-2.0 -lgmodule-2.0 -lrt -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0    sawfishpager.c   -o sawfishpager
/tmp/ccRpXij8.o: In function `main':
sawfishpager.c:(.text+0x19): undefined reference to `gtk_init'
sawfishpager.c:(.text+0x25): undefined reference to `client_open'
sawfishpager.c:(.text+0x3c): undefined reference to `client_close'
sawfishpager.c:(.text+0x71): undefined reference to `gtk_plug_new'
sawfishpager.c:(.text+0x7f): undefined reference to `gtk_window_new'
sawfishpager.c:(.text+0x98): undefined reference to `gtk_vbox_new'
sawfishpager.c:(.text+0xa1): undefined reference to `gtk_container_get_type'
sawfishpager.c:(.text+0xb3): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0xc3): undefined reference to `gtk_container_add'
sawfishpager.c:(.text+0xc8): undefined reference to `gtk_drawing_area_new'
sawfishpager.c:(.text+0xf7): undefined reference to `gtk_drawing_area_get_type'
sawfishpager.c:(.text+0x109): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x119): undefined reference to `gtk_drawing_area_size'
sawfishpager.c:(.text+0x124): undefined reference to `gtk_box_get_type'
sawfishpager.c:(.text+0x134): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x158): undefined reference to `gtk_box_pack_start'
sawfishpager.c:(.text+0x15d): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x16f): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x19f): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x1a4): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x1b6): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x1e6): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x20b): undefined reference to `gdk_input_add'
sawfishpager.c:(.text+0x210): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x222): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x252): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x257): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x269): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x299): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x29e): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x2b0): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x2e0): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x2e5): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x2f7): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x327): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x32c): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x33e): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x36e): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x383): undefined reference to `gtk_widget_set_events'
sawfishpager.c:(.text+0x388): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x39a): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x3ca): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x3cf): undefined reference to `gtk_object_get_type'
sawfishpager.c:(.text+0x3e1): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x411): undefined reference to `g_signal_connect_data'
sawfishpager.c:(.text+0x41e): undefined reference to `gtk_widget_show'
sawfishpager.c:(.text+0x42a): undefined reference to `gtk_widget_show'
sawfishpager.c:(.text+0x43e): undefined reference to `gdk_atom_intern'
sawfishpager.c:(.text+0x454): undefined reference to `gdk_atom_intern'
sawfishpager.c:(.text+0x47a): undefined reference to `gtk_window_get_type'
sawfishpager.c:(.text+0x48c): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x49c): undefined reference to `gtk_window_set_type_hint'
sawfishpager.c:(.text+0x4a9): undefined reference to `gtk_widget_show'
sawfishpager.c:(.text+0x4ae): undefined reference to `gtk_main'
/tmp/ccRpXij8.o: In function `send_command':
sawfishpager.c:(.text+0x4da): undefined reference to `client_eval'
/tmp/ccRpXij8.o: In function `box':
sawfishpager.c:(.text+0x5a1): undefined reference to `gdk_draw_rectangle'
/tmp/ccRpXij8.o: In function `clipbox':
sawfishpager.c:(.text+0x5ce): undefined reference to `gdk_gc_set_clip_rectangle'
sawfishpager.c:(.text+0x60c): undefined reference to `gdk_draw_rectangle'
/tmp/ccRpXij8.o: In function `expose_event':
sawfishpager.c:(.text+0x640): undefined reference to `gtk_widget_get_state'
sawfishpager.c:(.text+0x689): undefined reference to `gdk_draw_drawable'
/tmp/ccRpXij8.o: In function `motion_notify_event':
sawfishpager.c:(.text+0x9bc): undefined reference to `gdk_window_get_pointer'
/tmp/ccRpXij8.o: In function `configure_event':
sawfishpager.c:(.text+0xbf7): undefined reference to `g_object_unref'
sawfishpager.c:(.text+0xc12): undefined reference to `gdk_gc_unref'
sawfishpager.c:(.text+0xc46): undefined reference to `gdk_pixmap_new'
sawfishpager.c:(.text+0xc73): undefined reference to `gdk_gc_new'
sawfishpager.c:(.text+0xc93): undefined reference to `gdk_gc_set_foreground'
sawfishpager.c:(.text+0xcca): undefined reference to `gdk_gc_set_line_attributes'
sawfishpager.c:(.text+0xcd7): undefined reference to `gdk_gc_new'
sawfishpager.c:(.text+0xcf1): undefined reference to `gdk_gc_set_foreground'
sawfishpager.c:(.text+0xd1e): undefined reference to `gdk_gc_set_line_attributes'
/tmp/ccRpXij8.o: In function `make_background':
sawfishpager.c:(.text+0xd58): undefined reference to `g_object_unref'
sawfishpager.c:(.text+0xd8b): undefined reference to `gdk_pixmap_create_from_xpm'
sawfishpager.c:(.text+0xdc9): undefined reference to `gdk_pixmap_new'
sawfishpager.c:(.text+0xe11): undefined reference to `gdk_draw_rectangle'
sawfishpager.c:(.text+0xe94): undefined reference to `gdk_draw_rectangle'
sawfishpager.c:(.text+0xef1): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0xf2a): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0xf3f): undefined reference to `gdk_gc_set_fill'
sawfishpager.c:(.text+0xf56): undefined reference to `gdk_gc_set_tile'
/tmp/ccRpXij8.o: In function `draw_pager':
sawfishpager.c:(.text+0x1407): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0x145e): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0x14b5): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0x150c): undefined reference to `gdk_draw_line'
sawfishpager.c:(.text+0x151f): undefined reference to `gtk_widget_draw'
/tmp/ccRpXij8.o: In function `parse_stdin':
sawfishpager.c:(.text+0x1ab9): undefined reference to `gdk_window_resize'
sawfishpager.c:(.text+0x1aca): undefined reference to `gtk_drawing_area_get_type'
sawfishpager.c:(.text+0x1adc): undefined reference to `g_type_check_instance_cast'
sawfishpager.c:(.text+0x1aec): undefined reference to `gtk_drawing_area_size'
sawfishpager.c:(.text+0x1b29): undefined reference to `gdk_colormap_get_system'
sawfishpager.c:(.text+0x1b6b): undefined reference to `gdk_colormap_free_colors'
sawfishpager.c:(.text+0x1bf2): undefined reference to `gdk_colormap_alloc_color'
/tmp/ccRpXij8.o: In function `destroy_event':
sawfishpager.c:(.text+0x1c42): undefined reference to `gtk_main_quit'
/tmp/ccRpXij8.o: In function `wmspec_change_state':
sawfishpager.c:(.text+0x1c8d): undefined reference to `gdk_display_get_default'
sawfishpager.c:(.text+0x1c95): undefined reference to `gdk_x11_display_get_xdisplay'
sawfishpager.c:(.text+0x1ca3): undefined reference to `gdk_x11_drawable_get_xid'
sawfishpager.c:(.text+0x1cb2): undefined reference to `gdk_x11_get_xatom_by_name'
sawfishpager.c:(.text+0x1cd4): undefined reference to `gdk_x11_atom_to_xatom'
sawfishpager.c:(.text+0x1ce5): undefined reference to `gdk_x11_atom_to_xatom'
sawfishpager.c:(.text+0x1ced): undefined reference to `gdk_get_default_root_window'
sawfishpager.c:(.text+0x1cf5): undefined reference to `gdk_x11_drawable_get_xid'
sawfishpager.c:(.text+0x1cfc): undefined reference to `gdk_display_get_default'
sawfishpager.c:(.text+0x1d04): undefined reference to `gdk_x11_display_get_xdisplay'
sawfishpager.c:(.text+0x1d27): undefined reference to `XSendEvent'
collect2: error: ld returned 1 exit status
make: *** [sawfishpager] Error 1
robert@Dagon:~/dev/Sawfish/sawfish-pager$ gcc sawfishpager.c -o test `pkg-config --cflags --libs gtk+-2.0`
/tmp/ccmuaQV3.o: In function `main':
sawfishpager.c:(.text+0x25): undefined reference to `client_open'
sawfishpager.c:(.text+0x3c): undefined reference to `client_close'
/tmp/ccmuaQV3.o: In function `send_command':
sawfishpager.c:(.text+0x4da): undefined reference to `client_eval'
collect2: error: ld returned 1 exit status


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/