[bug-notifications] [curl_devel 0004550]: curl-config emits 'xarch' value for --libs and --static-libs

Mantis Bug Tracker noreply at opencsw.org
Fri Sep 17 23:02:13 CEST 2010


The following issue has been ASSIGNED. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4550 
====================================================================== 
Reported By:                jensd
Assigned To:                dam
====================================================================== 
Project:                    curl_devel
Issue ID:                   4550
Category:                   other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2010-09-16 18:16 CEST
Last Modified:              2010-09-17 23:02 CEST
====================================================================== 
Summary:                    curl-config emits 'xarch' value for --libs and
--static-libs
Description: 
I'm using the curl libs to build a ruby extension (curb). At some point the
link call fails with:

/opt/studio/SOS11/SUNWspro/bin/cc -I. -I.
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.8 -I.
-DRUBY_EXTCONF_H=\"curb_config.h\" -I/opt/csw/include
-D_FILE_OFFSET_BITS=64 -I/opt/csw/include -KPIC -xO3 -xarch=v8
-I/opt/csw/include  -KPIC  -I/opt/csw/include -g  -c curb_multi.c
ld -G -o curb_core.so curb.o curb_postfield.o curb_upload.o curb_errors.o
curb_easy.o curb_multi.o -L. -L/opt/csw/lib -R/opt/csw/lib -L.
-L/opt/csw/lib    -R /opt/csw/lib -L/opt/csw/lib -lruby  -lpthread -lrt
-ldl -lcrypt -lm   -lc -L/opt/csw/lib -lcurl -xarch=v8 -L/opt/csw/lib
-L/opt/csw/lib -lcares -lidn -lssl -lcrypto -llber -lldap -lsocket -lnsl
-lssl -lcrypto -lsocket -lnsl -ldl -lz
ld: illegal option -- x
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)

The failure is because the linker is using the option -xarch=v8 and this
is as a result of using 'curl-config --libs':

jensd at current8s:ext$> curl-config --libs
-L/opt/csw/lib -lcurl -xarch=v8 -L/opt/csw/lib -L/opt/csw/lib -lcares
-lidn -lssl -lcrypto -llber -lldap -lsocket -lnsl -lssl -lcrypto -lsocket
-lnsl -ldl -lz

I don't think curl-config should be emitting '-xarch=v8' here.
======================================================================



More information about the bug-notifications mailing list