[asterisk-bugs] [Asterisk 0016845]: Incorrect linker flags used on OpenSolaris
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Mar 23 13:01:00 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16845
======================================================================
Reported By: bklang
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16845
Category: Addons/General
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
Asterisk Version: SVN
JIRA: SWP-928
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2
SVN Revision (number only!): 1091
Request Review:
======================================================================
Date Submitted: 2010-02-16 13:15 CST
Last Modified: 2010-03-23 13:00 CDT
======================================================================
Summary: Incorrect linker flags used on OpenSolaris
Description:
While Asterisk itself builds cleanly on OpenSolaris, asterisk-addons does
not due to invalid linker flags.
gmake[1]: Entering directory
`/export/home/admin/asterisk-addons-1.6.2.svn/cdr'
[CC] cdr_addon_mysql.c -> cdr_addon_mysql.o
[LD] cdr_addon_mysql.o -> cdr_addon_mysql.so
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?]
file(s)
<...ld usage output removed...>
I can still manually link the objects with the following commands:
gcc -pg -shared -o cdr_addon_mysql.so -L/opt/SUNWspro/lib -lCrun -lrt
-L/usr/mysql/5.0/lib/mysql -R/usr/mysql/5.0/lib/mysql -lmysqlclient -lz
-lgen -lsocket -lnsl -lm cdr_addon_mysql.o
======================================================================
----------------------------------------------------------------------
(0119756) bklang (reporter) - 2010-03-23 13:00
https://issues.asterisk.org/view.php?id=16845#c119756
----------------------------------------------------------------------
@jtodd, unfortunately I have to claim ignorance. I did try looking in the
makefile for asterisk-addons, but could not find a suitable place to define
linker flags. As best I can tell, it's referencing the options created by
the asterisk build, but I couldn't find a suitable place there either.
I can offer two options though: 1) if someone can point me in the right
direction where to make those changes, I will work on a patch; or 2) I can
provide SSH access to an OpenSolaris host on which test builds can be made.
Issue History
Date Modified Username Field Change
======================================================================
2010-03-23 13:00 bklang Note Added: 0119756
======================================================================
More information about the asterisk-bugs
mailing list