Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LDFLAG --as-needed / Speeding up of GNOME or KDE
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8, 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Sun Jul 17, 2005 1:46 am    Post subject: Reply with quote

media-video/transcode-0.6.14-r2 fails during configure, seemingly it can't find lame.
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Sun Jul 17, 2005 1:45 pm    Post subject: Reply with quote

mail-client/sylpheed-claws-1.0.5 fails while looking for GTK.
mail-client/sylpheed-claws-maildir-0.7 fails while looking for GTK.
mail-client/sylpheed-claws-ghostscript-viewer-0.8 fails while looking for GTK.
mail-client/sylpheed-claws-pgpinline-0.5 fails while looking for GTK.
They all produce this error message:

Code:

checking for GTK - version >= 1.2.6... no
*** Could not run GTK test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK or finding the wrong
*** version of GTK. If it is not finding GTK, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you should remove the GTK package that
*** came with the system with the command
***
***    rpm --erase --nodeps gtk gtk-devel
configure: error: Test for GTK failed. See the file 'INSTALL' for help.


Needless to say that all of the before mentioned packages compile nicely without -Wl,--as-needed.
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Mon Jul 18, 2005 7:53 pm    Post subject: Reply with quote

Allthough it's not in portage yet, net-p2p/amule-2.0.3 also fails with --as-needed. As far as I can remember it produces the exact same error message as net-p2p/amule-2.0.1
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Tue Jul 19, 2005 11:53 pm    Post subject: Reply with quote

is there any official gentoo progress on making this more supported?

I'd love seeing this filtered out of known problematic packages, if the performance increase is noticable it should be looked into in my opinion.
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Wed Jul 20, 2005 12:00 am    Post subject: Reply with quote

I use an extended /etc/portage/bashrc that allows me to have a package.ldflags file.
Works for me.
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Wed Jul 20, 2005 8:43 am    Post subject: Reply with quote

lnxz wrote:
I use an extended /etc/portage/bashrc that allows me to have a package.ldflags file.
Works for me.

Can you tell more precisely how you did that?
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Wed Jul 20, 2005 8:55 am    Post subject: Reply with quote

neuron wrote:
is there any official gentoo progress on making this more supported?

I'd love seeing this filtered out of known problematic packages, if the performance increase is noticable it should be looked into in my opinion.

Hmm, I would like that too but.... The use of ldflags is currently supported by portage but using them is at your own risk, --as-needed for sure. Bugs reported will also be marked invalid :(

Maybe if we ask many times we might get an official /etc/portage/package.{ld,c}flags :wink:
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Wed Jul 20, 2005 12:32 pm    Post subject: Reply with quote

@Pussi: I copied a /etc/portage/bashrc with support for package.cflags and package.cxxflags, looked closely at it and put in some extra lines of code which enabled the package.ldflags file.
This is where I got the bashrc:
https://forums.gentoo.org/viewtopic-t-280748.html

If you look through it you should be able to quite easily extend it to handle individual ldflags as well.
If you have trouble doing that, the author might help you, or I could post the relevant parts from my bashrc.


Last edited by lnxz on Wed Jul 20, 2005 12:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Wed Jul 20, 2005 12:43 pm    Post subject: Reply with quote

The guy's name is thebigslide,
here's the topic:
https://forums.gentoo.org/viewtopic-t-280748.html
_________________
Retired gentoo user
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Wed Jul 20, 2005 2:02 pm    Post subject: Reply with quote

@ lnxz & Tiger683: Thanks! I'll check it out.
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Sun Jul 24, 2005 4:19 pm    Post subject: Per package LDFLAGS Reply with quote

This works quite well :)

I have added all the packages that do not work in /etc/portage/package.ldflags with my standard LDFLAGS but without --as-needed. Now I do not have to worry about this anymore :D

I also updated the post with this info and made it more readable.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jul 25, 2005 6:53 pm    Post subject: Reply with quote

i just recompiled the world with LDFLAGS="-Wl,--as-needed" and this is the list of the packages which didn't get compiled:
Code:
app-admin/torsmo-0.18-r6
app-text/docbook-sgml-utils-0.6.14
dev-cpp/gtkmm-2.6.3
dev-libs/libcroco-0.6.0
media-gfx/gimp-print-5.0.0_beta4
media-gfx/gthumb-2.6.5
media-video/transcode-0.6.14-r2
net-p2p/amule-2.0.3
sci-calculators/qalculate-gtk-0.8.0
sci-libs/libqalculate-0.8.0
x11-libs/wxGTK-2.6.1
x11-terms/rxvt-unicode-5.7
x11-themes/gtk-engines-2.6.3
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Mon Jul 25, 2005 8:03 pm    Post subject: Reply with quote

fctk wrote:
i just recompiled the world with LDFLAGS="-Wl,--as-needed" and this is the list of the packages which didn't get compiled:
Code:
app-admin/torsmo-0.18-r6
app-text/docbook-sgml-utils-0.6.14
dev-cpp/gtkmm-2.6.3
dev-libs/libcroco-0.6.0
media-gfx/gimp-print-5.0.0_beta4
media-gfx/gthumb-2.6.5
media-video/transcode-0.6.14-r2
net-p2p/amule-2.0.3
sci-calculators/qalculate-gtk-0.8.0
sci-libs/libqalculate-0.8.0
x11-libs/wxGTK-2.6.1
x11-terms/rxvt-unicode-5.7
x11-themes/gtk-engines-2.6.3

Thanks.

Are you sure x11-terms/rxvt-unicode-5.7 is failing as it is working for me.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jul 25, 2005 8:08 pm    Post subject: Reply with quote

Code:
checking whether time.h and sys/time.h may both be included... yes
checking whether termios.h and sys/ioctl.h may both be included... yes
checking for -rpath dynamic library path recording... no
checking for -R dynamic library path recording... no
checking for XPointer... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking for short... yes
checking size of short... configure: error: cannot compute sizeof (short), 77
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/rxvt-unicode-5.7/work/rxvt-unicode-5.7/config.log

!!! ERROR: x11-terms/rxvt-unicode-5.7 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


if i do: LDFLAGS="" emerge rxvt-unicode no errors...
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Mon Jul 25, 2005 9:10 pm    Post subject: Reply with quote

fctk wrote:
Code:
checking whether time.h and sys/time.h may both be included... yes
checking whether termios.h and sys/ioctl.h may both be included... yes
snip
checking size of short... configure: error: cannot compute sizeof (short), 77
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/rxvt-unicode-5.7/work/rxvt-unicode-5.7/config.log

!!! ERROR: x11-terms/rxvt-unicode-5.7 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


if i do: LDFLAGS="" emerge rxvt-unicode no errors...

Hmm, this is the second report for rxvt-unicode-5.7 with this error. Not certain --as-needed is the problem but it for it sure triggers the bug/error :wink:

Untill someone figures out what is causing the error/bug this will be in the list. Anyone :?:

Thanks
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Jul 26, 2005 1:18 pm    Post subject: Reply with quote

another package that won't compile is: sci-misc/boinc-4.72
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Jul 26, 2005 5:57 pm    Post subject: Reply with quote

i read this: https://forums.gentoo.org/viewtopic-t-280748.html and i installed smoked's script in /etc/portage/bashrc. then i created /etc/portage/package.ldflags and i put there the following line:
Code:
=sci-misc/boinc-4.72 -Wl,--no-as-needed

that won't work. the working line is:
Code:
sci-misc/boinc -Wl,--no-as-needed

but in this way i can't specify the version. is there a way to accomplish that?
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Fri Jul 29, 2005 8:11 pm    Post subject: Reply with quote

x11-misc/fluxconf-0.9.8 fails reporting alot of undefined references, mostly to GTK components (or so it seems).

Example:
Code:

/var/tmp/portage/fluxconf-0.9.8/work/fluxconf-0.9.8/src/fluxbare.c:113: undefined reference to `gtk_widget_realize'
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Sat Jul 30, 2005 2:08 pm    Post subject: Reply with quote

Seems like dev-php/php-4.4.0 doesn't play well with -Wl,--as-needed either, it just fails silently when looking for jpeg during configure, even when the jpeg use flag isn't set. Without -Wl,--as-needed it compiles w/o probs.
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Wed Aug 10, 2005 2:31 pm    Post subject: Reply with quote

net-analyzer/nmap-3.83 fails to find GTK.
Back to top
View user's profile Send private message
Enverex
Guru
Guru


Joined: 02 Jul 2003
Posts: 501
Location: Worcester, UK

PostPosted: Wed Aug 24, 2005 7:58 pm    Post subject: Reply with quote

More packages that fail:

Timidity++-2.13.2.r2
xmm-midi-0.03
speex-1.1.7
Back to top
View user's profile Send private message
Enverex
Guru
Guru


Joined: 02 Jul 2003
Posts: 501
Location: Worcester, UK

PostPosted: Thu Aug 25, 2005 7:40 pm    Post subject: Reply with quote

app-emmulation/e-uae-0.8.27
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Sun Aug 28, 2005 10:04 am    Post subject: Reply with quote

app-admin/conky-1.2 fails silently when it comes to libmpdclient.o
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Mon Aug 29, 2005 11:25 am    Post subject: Reply with quote

1: Thanks for the feedback, NightShade737 and lnxz :D I have added them to the original post.

2: FYI, I had some unicode problems with firefox and this generated garbage in the original post :oops:
I think I fixed them all but if you see strange characters that should not be there let me know, thanks :wink:

3: I tried the latest gnome beta and saw some problems that I am not sure if there are related to --as-needed. A lot of the problems are related to cairo and I will post a small list below when I am home.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Enverex
Guru
Guru


Joined: 02 Jul 2003
Posts: 501
Location: Worcester, UK

PostPosted: Tue Aug 30, 2005 9:58 am    Post subject: Reply with quote

media-libs/gdk-pixbuf-0.22.0-r4
x11-libs/gtkglarea-1.2.3-r1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 6, 7, 8, 9, 10, 11  Next
Page 7 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum