[asterisk-bugs] [DAHDI-tools 0014638]: [patch] dahdi-tools fails to build if LDFLAGS contains "-Wl, --as-needed"
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Mar 17 04:10:14 CDT 2009
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=14638
======================================================================
Reported By: Chainsaw
Assigned To: tzafrir
======================================================================
Project: DAHDI-tools
Issue ID: 14638
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-03-10 12:02 CDT
Last Modified: 2009-03-17 04:10 CDT
======================================================================
Summary: [patch] dahdi-tools fails to build if LDFLAGS
contains "-Wl,--as-needed"
Description:
-lm ends up being discarded if --as-needed is in use:
x86_64-pc-linux-gnu-gcc -Wl,--as-needed -lm -o fxotune fxotune.o
version.o
fxotune.o: In function `power_of':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:285:
undefined reference to `sqrtf'
fxotune.o: In function `one_point_dft':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:318:
undefined reference to `sincos'
fxotune.o: In function `gentone':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:206:
undefined reference to `sin'
fxotune.o: In function `genwaveform':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:228:
undefined reference to `sin'
fxotune.o: In function `gentone':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:206:
undefined reference to `sin'
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:206:
undefined reference to `sin'
fxotune.o: In function `genwaveform':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:228:
undefined reference to `sin'
fxotune.o: In function `db_loss':
/var/tmp/portage/net-misc/dahdi-tools-2.1.0.2/work/dahdi-tools-2.1.0.2/fxotune.c:309:
undefined reference to `logf'
collect2: ld returned 1 exit status
make[1]: *** [fxotune] Error 1
make[1]: *** Waiting for unfinished jobs....
This is caused by the Makefile using LDFLAGS to pass libraries, resulting
in an incorrect ordering. As a result -lm is discarded. I have a patch for
this which I will attach shortly.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-03-17 04:10 svnbot Status assigned => resolved
2009-03-17 04:10 svnbot Resolution open => fixed
======================================================================
More information about the asterisk-bugs
mailing list