Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147183 - media-libs/ming-0.3.0 LDFLAGS="--as-needed" incompatibility.
Summary: media-libs/ming-0.3.0 LDFLAGS="--as-needed" incompatibility.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-09-11 05:54 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2006-09-11 05:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ming-0.3.0/src/Makefile (Makefile,1.40 KB, text/plain)
2006-09-11 05:56 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
ming-0.3.0/util/Makefile (Makefile,2.65 KB, text/plain)
2006-09-11 05:57 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2006-09-11 05:54:45 UTC
I know this package is still hardmasked, but you'll probably want to fix this rather trivial fix before unmasking it :)

A lot of the stuff in the util/ subdir wont compile due to link error due to incorrect order of operands, both in the compilation of its own files, and the core libming.so

Basically your merging the LDFlags with the LIBS flags in the Makefile resulting in a 
$(LDFLAGS) $(LIBS) $(SOURCE FILES) -o $(OUTPUT) 
structure when it should be 
-o $(OUTPUT) $(SOURCE FILES) $(LDFLAGS) $(LIBS) 
if I recall correctly :)

I will append the 2 makefiles that i have mangled to work with --as-needed. Changes are rather minimal.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2006-09-11 05:56:21 UTC
Created attachment 96706 [details]
ming-0.3.0/src/Makefile

Modified Makefile for ming itself so packages using it don't break with missing calls to php/gif
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2006-09-11 05:57:19 UTC
Created attachment 96707 [details]
ming-0.3.0/util/Makefile

modified so things wont break on compilation.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 05:59:37 UTC
No, we won't unmask this version because it breaks PHP, sorry. Please, submit this upstream, and tell them about the PHP borkage as well. 

https://sourceforge.net/tracker/?group_id=18365&atid=118365