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'

Submitted by:  None
Submitted on:  Mon 28 Jun 2010 02:06:43 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned 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>
Project 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

 

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
  • -unavailable- added by tommyd (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Jul 2010 05:44:17 PM UTCtommydStatusWorks for me=>Invalid
      Open/ClosedOpen=>Closed
    Mon 28 Jun 2010 09:24:41 PM UTCtommydStatusNone=>Works for me
    Mon 28 Jun 2010 02:06:43 PM UTCNoneAttached File-=>Added config.log, #20842

    Back to the top


    Powered by Savane 3.1-cleanup1