[asterisk-bugs] [Asterisk 0016845]: Incorrect linker flags used on OpenSolaris

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 23 13:10:13 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:10 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
====================================================================== 

---------------------------------------------------------------------- 
 (0119757) qwell (administrator) - 2010-03-23 13:10
 https://issues.asterisk.org/view.php?id=16845#c119757 
---------------------------------------------------------------------- 
Can you run gmake with NOISY_BUILD=yes?  Would be helpful to see what ld is
trying to do. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-23 13:10 qwell          Note Added: 0119757                          
======================================================================




More information about the asterisk-bugs mailing list