bugmonotone - Bugs: bug #30277, configure script fails when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30277: configure script fails when LDFLAGS contains 'as-needed'

Submitter:  None
Submitted:  Mon 28 Jun 2010 02:06:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
mtn version --full: 


Fri 09 Jul 2010 03:26:57 PM UTC, comment #2: 

Hello!

I can confirm it is the problem with Archlinux package which was updated few days ago and now I was able ro rebuild it without any problem, so it can be closed as 'invalid'.


Sincerely,
Gour

Anonymous
Mon 28 Jun 2010 09:24:41 PM UTC, comment #1: 

I could not reproduce this on Fedora 12 (gcc 4.4.3, i686, Lua 5.1.4), as ./configure LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed" runs through without problems.

I looked at the configuration test in detail, and it seems as if there is a minor difference between yours and mine. Mine looks like this:

g++ -o conftest -g -O2 -Wall -W -Wno-unused    -Wl,--hash-style=gnu -Wl,--as-needed conftest.cpp -lz  -llua -lm -ldl

while your looks like this:

g++ -o conftest -march=native -O2 -pipe -Wall -W -Wno-unused    -Wl,--hash-style=gnu -Wl,--as-needed conftest.cpp -lz  -llua -lm

I have no idea why yours is missing -ldl in the linker line - my pkg-config gets it right:

$ pkg-config lua --libs
-llua -lm -ldl 

Can anybody else reproduce Gour's issue?

Thomas Keller <tommyd>
Group administrator
Mon 28 Jun 2010 02:06:43 PM UTC, original submission:  

Attempt to build monotone-0.48 on my Archlinux x86_64 failed with the packager's build system.

On #archlinux I got info that monotone is 'borken when LDFLAGS contains "as-needed".

My default line is:

LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"

However, when I unset LDFLAGS in my build script, everything was OK.


I'm attaching config.log


Sincerely,
Gour

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #20842:  config.log added by None (20KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tommyd (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-09 tommyd StatusWorks for me Invalid
        Open/ClosedOpen Closed
    2010-06-28 tommyd StatusNone Works for me
    2010-06-28 None Attached File- Added config.log, #20842

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code