Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4 aj-snapshot-0.9.6 fail on Gentoo with -Wl,--as-needed

open
nobody
None
5
2014-01-30
2013-04-01
Dominique Michel
No

aj-snashot begun to fail to compile on my Gentoo Linux ~amd64 system:

emerge aj-snapshot
...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --libdir=/usr/lib64
...
checking mxml.h usability... yes
checking mxml.h presence... yes
checking for mxml.h... yes
checking for main in -lasound... yes
checking for main in -ljack... yes
checking for mxmlLoadFile in -lmxml... no
configure: error: mxml library (mxml) is required

If I go in the source directory and issue exactly the same configure command, or just ./configure, it just work and I can compile the software.

On Gentoo, the default LDFLAGS are "-Wl,-O1 -Wl,--as-needed" and emerge use them. If "-Wl,--as-needed" is filtered out, emerge work fine. I made a modified ebuild for the pro-audio Gentoo overlay, but it would be better if this issue can be fixed into the source.

http://proaudio.tuxfamily.org/wiki/index.php?title=Main_Page

Vest,
Dominique

Discussion

  • failed configure log

     
    Attachments
  • lieven
    lieven
    2013-05-24

    I'm aware of this issue, because I have the same problem on Arch Linux.
    But I haven't found an sollution yet...