! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-panel doesn't use -lxfcegui4 with -Wl,--as-needed
Status:
RESOLVED: FIXED
Product:
Xfce4-panel

Comments

Description Samuli Suominen 2006-07-02 09:05:24 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060604 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060604 Firefox/1.5.0.4

Current SVN of xfce4-panel doesn't with with LDFLAGS="-Wl,--as-needed" because it losts -lxfcegui4. Then again, LDFLAGS="-Wl,--as-needed -lxfcegui4" works.

Result is:

../../libxfce4panel/.libs/libxfce4panel.so: undefined reference to `xfce_message_dialog'
collect2: ld returned 1 exit status

How did I found out what it is missing:

unaffiliated ~ # strings /usr/lib/libxfcegui4.so.4.1.0 | grep xfce_message_dialog

Problems inside Makefile apparently?

By the way, rest of SVN is ok with -Wl,--as-needed

Thanks, Samuli


Reproducible: Always

Steps to Reproduce:
Comment 1 Jasper Huijsmans editbugs 2006-07-11 11:00:03 CEST
I suspect this is because the panel does not depend on those libraries directly in configure.ac.in, but relies on the fact that libxfce4panel pulls them in.

If this is indeed the problem, it should not be too hard to fix.
Comment 2 Samuli Suominen 2006-07-12 20:08:48 CEST
Created attachment 663 
xfce4-panel-4.3.90.2-asneeded.patch

This works (but is most likely not the way you want it?)
Comment 3 Jasper Huijsmans editbugs 2006-07-13 21:40:19 CEST
Could you try revision 22442? I tried to add some explicit libraries to link against.
Comment 4 Samuli Suominen 2006-07-14 19:18:00 CEST
(In reply to comment #3)
> Could you try revision 22442? I tried to add some explicit libraries to link
> against.
> 

You got it.

Thanks, drac.

Bug #1977

Reported by:
Samuli Suominen
Reported on: 2006-07-02
Last modified on: 2010-11-20

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
Unspecified

Attachments

xfce4-panel-4.3.90.2-asneeded.patch (1.50 KB, patch)
2006-07-12 20:08 CEST , Samuli Suominen
no flags

Additional information