<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>131813</bug_id>
          
          <creation_ts>2006-04-30 09:43 0000</creation_ts>
          <short_desc>x11-misc/adesklets-0.6.1 fails with --as-needed</short_desc>
          <delta_ts>2006-07-27 04:29:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>129413</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>gpp666_999@yahoo.de</reporter>
          <assigned_to>desktop-dock@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gpp666_999@yahoo.de</who>
            <bug_when>2006-04-30 09:43:54 0000</bug_when>
            <thetext>i686-pc-linux-gnu-gcc  -march=athlon-xp -O2 -pipe -std=c99 -pedantic -Wall -DPKGDATADIR=\&quot;/usr/share/adesklets\&quot;  -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&apos;:
adesklets.c:(.text+0x2b6): undefined reference to `imlib_list_font_path&apos;
adesklets-adesklets.o: In function `base_font_generator&apos;:
adesklets.c:(.text+0x338): undefined reference to `imlib_list_fonts&apos;
adesklets.c:(.text+0x355): undefined reference to `imlib_free_font_list&apos;
adesklets-adesklets.o: In function `adesklets_free&apos;:
adesklets.c:(.text+0x3ec): undefined reference to `XCloseDisplay&apos;
adesklets.c:(.text+0x3f1): undefined reference to `rl_callback_handler_remove&apos;
adesklets.c:(.text+0x5f8): undefined reference to `XUnmapWindow&apos;
adesklets.c:(.text+0x60e): undefined reference to `XDestroyWindow&apos;
adesklets-adesklets.o: In function `image_is_shown&apos;:
adesklets.c:(.text+0x6b7): undefined reference to `imlib_context_get_image&apos;
adesklets-adesklets.o: In function `adesklets_menu_fire&apos;:
adesklets.c:(.text+0x8f9): undefined reference to `XMapWindow&apos;
adesklets-adesklets.o: In function `adesklets_filters_reset&apos;:
adesklets.c:(.text+0x9f1): undefined reference to `imlib_context_set_filter&apos;
adesklets-adesklets.o: In function `adesklets_color_modifiers_reset&apos;:
adesklets.c:(.text+0xa41): undefined reference to `imlib_context_set_color_modifier&apos;
adesklets-adesklets.o: In function `adesklets_color_ranges_reset&apos;:
adesklets.c:(.text+0xa91): undefined reference to `imlib_context_set_color_range&apos;
adesklets-adesklets.o: In function `adesklets_fonts_reset&apos;:
adesklets.c:(.text+0xae1): undefined reference to `imlib_context_set_font&apos;
adesklets-adesklets.o: In function `adesklets_window_reset&apos;:
adesklets.c:(.text+0xcb1): undefined reference to `XCreateWindow&apos;
adesklets.c:(.text+0xcef): undefined reference to `XGetWindowAttributes&apos;
adesklets.c:(.text+0xd17): undefined reference to `XDestroyWindow&apos;
adesklets.c:(.text+0xdf6): undefined reference to `XSelectInput&apos;
adesklets.c:(.text+0xe03): undefined reference to `imlib_context_set_drawable&apos;
adesklets.c:(.text+0xe27): undefined reference to `XRaiseWindow&apos;
adesklets.c:(.text+0xe4f): undefined reference to `XmbTextListToTextProperty&apos;
adesklets.c:(.text+0xe74): undefined reference to `XInternAtom&apos;
adesklets.c:(.text+0xeb3): undefined reference to `XSelectInput&apos;
adesklets.c:(.text+0xee2): undefined reference to `XLowerWindow&apos;
adesklets.c:(.text+0xf0e): undefined reference to `XMapWindow&apos;
adesklets.c:(.text+0xf2d): undefined reference to `XSetWMName&apos;
adesklets.c:(.text+0xf57): undefined reference to `XSetWMProtocols&apos;
adesklets-adesklets.o: In function `adesklets_images_reset_background&apos;:
adesklets.c:(.text+0xf93): undefined reference to `imlib_context_get_image&apos;
adesklets.c:(.text+0x108b): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x1091): undefined reference to `imlib_image_get_width&apos;
adesklets.c:(.text+0x1099): undefined reference to `imlib_image_get_height&apos;
adesklets.c:(.text+0x10bc): undefined reference to `imlib_create_image&apos;
adesklets.c:(.text+0x10ce): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x10da): undefined reference to `imlib_image_set_has_alpha&apos;
adesklets.c:(.text+0x10e6): undefined reference to `imlib_context_set_blend&apos;
adesklets.c:(.text+0x110a): undefined reference to `imlib_context_set_color&apos;
adesklets.c:(.text+0x112c): undefined reference to `imlib_image_fill_rectangle&apos;
adesklets.c:(.text+0x1182): undefined reference to `imlib_blend_image_onto_image&apos;
adesklets.c:(.text+0x1194): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x1199): undefined reference to `imlib_free_image&apos;
adesklets.c:(.text+0x11e6): undefined reference to `imlib_create_image&apos;
adesklets.c:(.text+0x11fe): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x120a): undefined reference to `imlib_image_set_has_alpha&apos;
adesklets.c:(.text+0x1216): undefined reference to `imlib_context_set_blend&apos;
adesklets.c:(.text+0x1243): undefined reference to `imlib_context_set_color&apos;
adesklets.c:(.text+0x1265): undefined reference to `imlib_image_fill_rectangle&apos;
adesklets.c:(.text+0x1322): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x133b): undefined reference to `imlib_context_set_image&apos;
adesklets-adesklets.o: In function `adesklets_images_reset&apos;:
adesklets.c:(.text+0x141e): undefined reference to `imlib_context_get_image&apos;
adesklets.c:(.text+0x142f): undefined reference to `imlib_context_get_image&apos;
adesklets.c:(.text+0x1446): undefined reference to `imlib_context_set_image&apos;
adesklets-adesklets.o: In function `adesklets_init&apos;:
adesklets.c:(.text+0x16c9): undefined reference to `XOpenDisplay&apos;
adesklets.c:(.text+0x1719): undefined reference to `imlib_get_best_visual&apos;
adesklets.c:(.text+0x172b): undefined reference to `imlib_context_set_display&apos;
adesklets.c:(.text+0x1738): undefined reference to `imlib_context_set_visual&apos;
adesklets.c:(.text+0x1764): undefined reference to `imlib_context_set_colormap&apos;
adesklets.c:(.text+0x177d): undefined reference to `XSetErrorHandler&apos;
adesklets.c:(.text+0x178e): undefined reference to `imlib_set_cache_size&apos;
adesklets.c:(.text+0x179a): undefined reference to `imlib_set_font_cache_size&apos;
adesklets.c:(.text+0x17a6): undefined reference to `imlib_set_color_usage&apos;
adesklets.c:(.text+0x17b2): undefined reference to `imlib_context_set_dither&apos;
adesklets.c:(.text+0x17be): undefined reference to `imlib_context_set_blend&apos;
adesklets.c:(.text+0x17e2): undefined reference to `imlib_context_set_color&apos;
adesklets-adesklets.o: In function `adesklets_events_loop&apos;:
adesklets.c:(.text+0x1ded): undefined reference to `imlib_updates_init&apos;
adesklets.c:(.text+0x1f11): undefined reference to `XCheckWindowEvent&apos;
adesklets.c:(.text+0x1fcd): undefined reference to `imlib_updates_free&apos;
adesklets.c:(.text+0x20e0): undefined reference to `imlib_update_append_rect&apos;
adesklets.c:(.text+0x216c): undefined reference to `XInternAtom&apos;
adesklets.c:(.text+0x21cf): undefined reference to `XInternAtom&apos;
adesklets.c:(.text+0x2213): undefined reference to `XCheckWindowEvent&apos;
adesklets.c:(.text+0x223d): undefined reference to `XCheckTypedWindowEvent&apos;
adesklets.c:(.text+0x2402): undefined reference to `remove_history&apos;
adesklets.c:(.text+0x240a): undefined reference to `free_history_entry&apos;
adesklets.c:(.text+0x245a): undefined reference to `remove_history&apos;
adesklets.c:(.text+0x2462): undefined reference to `free_history_entry&apos;
adesklets.c:(.text+0x2487): undefined reference to `imlib_clone_image&apos;
adesklets.c:(.text+0x2524): undefined reference to `imlib_context_get_image&apos;
adesklets.c:(.text+0x257d): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x25a9): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x25ae): undefined reference to `imlib_image_get_height&apos;
adesklets.c:(.text+0x25b5): undefined reference to `imlib_image_get_width&apos;
adesklets.c:(.text+0x25d8): undefined reference to `imlib_update_append_rect&apos;
adesklets.c:(.text+0x2677): undefined reference to `imlib_load_font&apos;
adesklets.c:(.text+0x270b): undefined reference to `imlib_context_get_font&apos;
adesklets.c:(.text+0x274d): undefined reference to `imlib_context_set_font&apos;
adesklets.c:(.text+0x275d): undefined reference to `imlib_list_fonts&apos;
adesklets.c:(.text+0x27bc): undefined reference to `imlib_free_font_list&apos;
adesklets.c:(.text+0x2878): undefined reference to `imlib_list_font_path&apos;
adesklets.c:(.text+0x28f2): undefined reference to `imlib_add_path_to_font_path&apos;adesklets.c:(.text+0x2920): undefined reference to `imlib_remove_path_from_font_path&apos;
adesklets.c:(.text+0x292a): undefined reference to `imlib_create_color_range&apos;
adesklets.c:(.text+0x29fa): undefined reference to `imlib_context_get_color_range&apos;
adesklets.c:(.text+0x2a38): undefined reference to `imlib_context_set_color_range&apos;
adesklets.c:(.text+0x2a42): undefined reference to `imlib_create_color_modifier&apos;adesklets.c:(.text+0x2b27): undefined reference to `imlib_context_get_color_modifier&apos;
adesklets.c:(.text+0x2b65): undefined reference to `imlib_context_set_color_modifier&apos;
adesklets.c:(.text+0x2b76): undefined reference to `imlib_create_filter&apos;
adesklets.c:(.text+0x2c5f): undefined reference to `imlib_context_get_filter&apos;
adesklets.c:(.text+0x2c9d): undefined reference to `imlib_context_set_filter&apos;
adesklets.c:(.text+0x2ca7): undefined reference to `imlib_polygon_new&apos;
adesklets.c:(.text+0x2eab): undefined reference to `imlib_polygon_add_point&apos;
adesklets.c:(.text+0x2f0b): undefined reference to `imlib_context_set_image&apos;
adesklets.c:(.text+0x2f10): undefined reference to `imlib_image_get_filename&apos;
adesklets.c:(.text+0x2f17): undefined reference to `imlib_image_has_alpha&apos;
adesklets.c:(.text+0x2f1e): undefined reference to `imlib_image_get_height&apos;
adesklets.c:(.text+0x2f25): undefined reference to `imlib_image_get_width&apos;
adesklets.c:(.text+0x303a): undefined reference to `imlib_image_has_alpha&apos;
adesklets.c:(.text+0x3057): undefined reference to `imlib_image_get_width&apos;
adesklets.c:(.text+0x3071): undefined reference to `imlib_image_get_height&apos;
adesklets.c:(.text+0x308b): undefined reference to `imlib_image_get_filename&apos;
adesklets.c:(.text+0x30a5): undefined reference to `imlib_image_get_data_for_reading_only&apos;
adesklets.c:(.text+0x30b7): undefined reference to `imlib_image_get_width&apos;
adesklets.c:(.text+0x30bf): undefined reference to `imlib_image_get_height&apos;
adesklets.c:(.text+0x31b9): undefined reference to `imlib_image_query_pixel&apos;
adesklets.c:(.text+0x3226): undefined reference to `imlib_image_set_has_alpha&apos;
adesklets.c:(.text+0x3230): undefined reference to `imlib_image_set_changes_on_disk&apos;
and so on...
it is clear that the objects should come before the needed libraries, patch to follow...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gpp666_999@yahoo.de</who>
            <bug_when>2006-04-30 09:46:29 0000</bug_when>
            <thetext>Created an attachment (id=85836)
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2006-07-27 04:15:31 0000</bug_when>
            <thetext>What USE flags are you compiling adesklets with? Compiles fine here...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2006-07-27 04:29:39 0000</bug_when>
            <thetext>Uhm, compiles fine with your patch added as well. I think I&apos;ll just commit it :-)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>85836</attachid>
            <date>2006-04-30 09:46 0000</date>
            <desc>adesklets-0.6.1-fix-as-needed.patch</desc>
            <filename>adesklets-0.6.1-fix-as-needed.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy9NYWtlZmlsZS5hbS5vcmlnCTIwMDYtMDMtMTMgMjA6NTQ6MTMuMDAwMDAwMDAwICsw
MTAwCisrKyBzcmMvTWFrZWZpbGUuYW0JMjAwNi0wNC0zMCAxODoxMDozMi4wMDAwMDAwMDAgKzAy
MDAKQEAgLTEzLDcgKzEzLDcgQEAKIAkJICAgIGVycm9yLmggdHlwZXMuaAogCiBhZGVza2xldHNf
Q0ZMQUdTID0gQFhfQ0ZMQUdTQCBASU1MSUIyX0NGTEFHU0AgQEZPTlRDT05GSUdfQ0ZMQUdTQAot
YWRlc2tsZXRzX0xERkxBR1MgPSBAWF9MSUJTQCBASU1MSUIyX0xJQlNAIFwKK2FkZXNrbGV0c19M
REFERCA9IEBYX0xJQlNAIEBJTUxJQjJfTElCU0AgXAogICAgICAgICAgICAgICAgICAgICBAUkVB
RExJTkVfTElCU0AgQEZPTlRDT05GSUdfTElCU0AKIAogZGlzdF9wa2dkYXRhX1NDUklQVFMgPSBh
ZGVza2xldHNfZGVidWcuc2gKLS0tIHNyYy9NYWtlZmlsZS5pbi5vcmlnCTIwMDYtMDMtMzEgMDM6
MTk6MTEuMDAwMDAwMDAwICswMjAwCisrKyBzcmMvTWFrZWZpbGUuaW4JMjAwNi0wNC0zMCAxODox
MToxNi4wMDAwMDAwMDAgKzAyMDAKQEAgLTIxMSw3ICsyMTEsNyBAQAogCQkgICAgZXJyb3IuaCB0
eXBlcy5oCiAKIGFkZXNrbGV0c19DRkxBR1MgPSBAWF9DRkxBR1NAIEBJTUxJQjJfQ0ZMQUdTQCBA
Rk9OVENPTkZJR19DRkxBR1NACi1hZGVza2xldHNfTERGTEFHUyA9IEBYX0xJQlNAIEBJTUxJQjJf
TElCU0AgXAorYWRlc2tsZXRzX0xEQUREID0gQFhfTElCU0AgQElNTElCMl9MSUJTQCBcCiAgICAg
ICAgICAgICAgICAgICAgIEBSRUFETElORV9MSUJTQCBARk9OVENPTkZJR19MSUJTQAogCiBkaXN0
X3BrZ2RhdGFfU0NSSVBUUyA9IGFkZXNrbGV0c19kZWJ1Zy5zaAo=
</data>        

          </attachment>
    </bug>

</bugzilla>