i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -std=c99 -pedantic -Wall -DPKGDATADIR=\"/usr/share/adesklets\" -Wl,-O1 -Wl,--as-needed -o adesklets -L/usr/X11R6/lib -lX11 -lImlib2 -lncurses -lreadline -lhistory -lfreetype -lz -lfontconfig -lexpat adesklets-main.o adesklets-adesklets.o adesklets-xwindow.o adesklets-xmenu.o adesklets-cfgfile.o adesklets-cfg_parser.o adesklets-cfg_scanner.o adesklets-command.o adesklets-event.o adesklets-variable.o adesklets-vector.o adesklets-vector_free.o adesklets-tree.o adesklets-error.o adesklets-adesklets.o: In function `base_font_path_generator': adesklets.c:(.text+0x2b6): undefined reference to `imlib_list_font_path' adesklets-adesklets.o: In function `base_font_generator': adesklets.c:(.text+0x338): undefined reference to `imlib_list_fonts' adesklets.c:(.text+0x355): undefined reference to `imlib_free_font_list' adesklets-adesklets.o: In function `adesklets_free': adesklets.c:(.text+0x3ec): undefined reference to `XCloseDisplay' adesklets.c:(.text+0x3f1): undefined reference to `rl_callback_handler_remove' adesklets.c:(.text+0x5f8): undefined reference to `XUnmapWindow' adesklets.c:(.text+0x60e): undefined reference to `XDestroyWindow' adesklets-adesklets.o: In function `image_is_shown': adesklets.c:(.text+0x6b7): undefined reference to `imlib_context_get_image' adesklets-adesklets.o: In function `adesklets_menu_fire': adesklets.c:(.text+0x8f9): undefined reference to `XMapWindow' adesklets-adesklets.o: In function `adesklets_filters_reset': adesklets.c:(.text+0x9f1): undefined reference to `imlib_context_set_filter' adesklets-adesklets.o: In function `adesklets_color_modifiers_reset': adesklets.c:(.text+0xa41): undefined reference to `imlib_context_set_color_modifier' adesklets-adesklets.o: In function `adesklets_color_ranges_reset': adesklets.c:(.text+0xa91): undefined reference to `imlib_context_set_color_range' adesklets-adesklets.o: In function `adesklets_fonts_reset': adesklets.c:(.text+0xae1): undefined reference to `imlib_context_set_font' adesklets-adesklets.o: In function `adesklets_window_reset': adesklets.c:(.text+0xcb1): undefined reference to `XCreateWindow' adesklets.c:(.text+0xcef): undefined reference to `XGetWindowAttributes' adesklets.c:(.text+0xd17): undefined reference to `XDestroyWindow' adesklets.c:(.text+0xdf6): undefined reference to `XSelectInput' adesklets.c:(.text+0xe03): undefined reference to `imlib_context_set_drawable' adesklets.c:(.text+0xe27): undefined reference to `XRaiseWindow' adesklets.c:(.text+0xe4f): undefined reference to `XmbTextListToTextProperty' adesklets.c:(.text+0xe74): undefined reference to `XInternAtom' adesklets.c:(.text+0xeb3): undefined reference to `XSelectInput' adesklets.c:(.text+0xee2): undefined reference to `XLowerWindow' adesklets.c:(.text+0xf0e): undefined reference to `XMapWindow' adesklets.c:(.text+0xf2d): undefined reference to `XSetWMName' adesklets.c:(.text+0xf57): undefined reference to `XSetWMProtocols' adesklets-adesklets.o: In function `adesklets_images_reset_background': adesklets.c:(.text+0xf93): undefined reference to `imlib_context_get_image' adesklets.c:(.text+0x108b): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x1091): undefined reference to `imlib_image_get_width' adesklets.c:(.text+0x1099): undefined reference to `imlib_image_get_height' adesklets.c:(.text+0x10bc): undefined reference to `imlib_create_image' adesklets.c:(.text+0x10ce): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x10da): undefined reference to `imlib_image_set_has_alpha' adesklets.c:(.text+0x10e6): undefined reference to `imlib_context_set_blend' adesklets.c:(.text+0x110a): undefined reference to `imlib_context_set_color' adesklets.c:(.text+0x112c): undefined reference to `imlib_image_fill_rectangle' adesklets.c:(.text+0x1182): undefined reference to `imlib_blend_image_onto_image' adesklets.c:(.text+0x1194): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x1199): undefined reference to `imlib_free_image' adesklets.c:(.text+0x11e6): undefined reference to `imlib_create_image' adesklets.c:(.text+0x11fe): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x120a): undefined reference to `imlib_image_set_has_alpha' adesklets.c:(.text+0x1216): undefined reference to `imlib_context_set_blend' adesklets.c:(.text+0x1243): undefined reference to `imlib_context_set_color' adesklets.c:(.text+0x1265): undefined reference to `imlib_image_fill_rectangle' adesklets.c:(.text+0x1322): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x133b): undefined reference to `imlib_context_set_image' adesklets-adesklets.o: In function `adesklets_images_reset': adesklets.c:(.text+0x141e): undefined reference to `imlib_context_get_image' adesklets.c:(.text+0x142f): undefined reference to `imlib_context_get_image' adesklets.c:(.text+0x1446): undefined reference to `imlib_context_set_image' adesklets-adesklets.o: In function `adesklets_init': adesklets.c:(.text+0x16c9): undefined reference to `XOpenDisplay' adesklets.c:(.text+0x1719): undefined reference to `imlib_get_best_visual' adesklets.c:(.text+0x172b): undefined reference to `imlib_context_set_display' adesklets.c:(.text+0x1738): undefined reference to `imlib_context_set_visual' adesklets.c:(.text+0x1764): undefined reference to `imlib_context_set_colormap' adesklets.c:(.text+0x177d): undefined reference to `XSetErrorHandler' adesklets.c:(.text+0x178e): undefined reference to `imlib_set_cache_size' adesklets.c:(.text+0x179a): undefined reference to `imlib_set_font_cache_size' adesklets.c:(.text+0x17a6): undefined reference to `imlib_set_color_usage' adesklets.c:(.text+0x17b2): undefined reference to `imlib_context_set_dither' adesklets.c:(.text+0x17be): undefined reference to `imlib_context_set_blend' adesklets.c:(.text+0x17e2): undefined reference to `imlib_context_set_color' adesklets-adesklets.o: In function `adesklets_events_loop': adesklets.c:(.text+0x1ded): undefined reference to `imlib_updates_init' adesklets.c:(.text+0x1f11): undefined reference to `XCheckWindowEvent' adesklets.c:(.text+0x1fcd): undefined reference to `imlib_updates_free' adesklets.c:(.text+0x20e0): undefined reference to `imlib_update_append_rect' adesklets.c:(.text+0x216c): undefined reference to `XInternAtom' adesklets.c:(.text+0x21cf): undefined reference to `XInternAtom' adesklets.c:(.text+0x2213): undefined reference to `XCheckWindowEvent' adesklets.c:(.text+0x223d): undefined reference to `XCheckTypedWindowEvent' adesklets.c:(.text+0x2402): undefined reference to `remove_history' adesklets.c:(.text+0x240a): undefined reference to `free_history_entry' adesklets.c:(.text+0x245a): undefined reference to `remove_history' adesklets.c:(.text+0x2462): undefined reference to `free_history_entry' adesklets.c:(.text+0x2487): undefined reference to `imlib_clone_image' adesklets.c:(.text+0x2524): undefined reference to `imlib_context_get_image' adesklets.c:(.text+0x257d): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x25a9): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x25ae): undefined reference to `imlib_image_get_height' adesklets.c:(.text+0x25b5): undefined reference to `imlib_image_get_width' adesklets.c:(.text+0x25d8): undefined reference to `imlib_update_append_rect' adesklets.c:(.text+0x2677): undefined reference to `imlib_load_font' adesklets.c:(.text+0x270b): undefined reference to `imlib_context_get_font' adesklets.c:(.text+0x274d): undefined reference to `imlib_context_set_font' adesklets.c:(.text+0x275d): undefined reference to `imlib_list_fonts' adesklets.c:(.text+0x27bc): undefined reference to `imlib_free_font_list' adesklets.c:(.text+0x2878): undefined reference to `imlib_list_font_path' adesklets.c:(.text+0x28f2): undefined reference to `imlib_add_path_to_font_path'adesklets.c:(.text+0x2920): undefined reference to `imlib_remove_path_from_font_path' adesklets.c:(.text+0x292a): undefined reference to `imlib_create_color_range' adesklets.c:(.text+0x29fa): undefined reference to `imlib_context_get_color_range' adesklets.c:(.text+0x2a38): undefined reference to `imlib_context_set_color_range' adesklets.c:(.text+0x2a42): undefined reference to `imlib_create_color_modifier'adesklets.c:(.text+0x2b27): undefined reference to `imlib_context_get_color_modifier' adesklets.c:(.text+0x2b65): undefined reference to `imlib_context_set_color_modifier' adesklets.c:(.text+0x2b76): undefined reference to `imlib_create_filter' adesklets.c:(.text+0x2c5f): undefined reference to `imlib_context_get_filter' adesklets.c:(.text+0x2c9d): undefined reference to `imlib_context_set_filter' adesklets.c:(.text+0x2ca7): undefined reference to `imlib_polygon_new' adesklets.c:(.text+0x2eab): undefined reference to `imlib_polygon_add_point' adesklets.c:(.text+0x2f0b): undefined reference to `imlib_context_set_image' adesklets.c:(.text+0x2f10): undefined reference to `imlib_image_get_filename' adesklets.c:(.text+0x2f17): undefined reference to `imlib_image_has_alpha' adesklets.c:(.text+0x2f1e): undefined reference to `imlib_image_get_height' adesklets.c:(.text+0x2f25): undefined reference to `imlib_image_get_width' adesklets.c:(.text+0x303a): undefined reference to `imlib_image_has_alpha' adesklets.c:(.text+0x3057): undefined reference to `imlib_image_get_width' adesklets.c:(.text+0x3071): undefined reference to `imlib_image_get_height' adesklets.c:(.text+0x308b): undefined reference to `imlib_image_get_filename' adesklets.c:(.text+0x30a5): undefined reference to `imlib_image_get_data_for_reading_only' adesklets.c:(.text+0x30b7): undefined reference to `imlib_image_get_width' adesklets.c:(.text+0x30bf): undefined reference to `imlib_image_get_height' adesklets.c:(.text+0x31b9): undefined reference to `imlib_image_query_pixel' adesklets.c:(.text+0x3226): undefined reference to `imlib_image_set_has_alpha' adesklets.c:(.text+0x3230): undefined reference to `imlib_image_set_changes_on_disk' and so on... it is clear that the objects should come before the needed libraries, patch to follow...
Created attachment 85836 [details, diff] adesklets-0.6.1-fix-as-needed.patch this patch should fix the issue, it changes adesklets_LDFLAGS to adesklets_LDADD, changing in effect the feed order
What USE flags are you compiling adesklets with? Compiles fine here...
Uhm, compiles fine with your patch added as well. I think I'll just commit it :-)