[asterisk-bugs] [Asterisk 0016845]: Incorrect linker flags used on OpenSolaris
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Feb 6 11:17:14 CST 2011
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: 2011-02-06 11:17 CST
======================================================================
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
======================================================================
----------------------------------------------------------------------
(0131538) bklang (reporter) - 2011-02-06 11:17
https://issues.asterisk.org/view.php?id=16845#c131538
----------------------------------------------------------------------
Now that the MySQL modules have been moved back in-tree with Asterisk 1.8,
this issue is mostly resolved.
There is still a problem on OpenSolaris because the CFLAGS reported by
mysql_config are for Sun Studio's CC and are incompatible with GCC.
However by removing all the "-x" args manually from makeopts after running
./configure I have working mysql modules.
It's not Asterisk's fault that mysql_config reports unusable flags. If
anyone else has a bright idea about working around this I'd love to hear
it, but at this point I've got a functional (if manual) build.
Issue History
Date Modified Username Field Change
======================================================================
2011-02-06 11:17 bklang Note Added: 0131538
======================================================================
More information about the asterisk-bugs
mailing list