Subject: | unrecognized command line option "-fm64" |
Date: | Tue, 18 Feb 2014 17:27:37 +0200 |
To: | bug-XML-LibXML [...] rt.cpan.org |
From: | Thomas Roos <thomas.roos [...] csc.fi> |
Hi,
We have run into problems installing XML::LibXML on Solaris 10. Notice that there is one --m64 option, i.e. with 2 dashes. This then apparently gets interpreted as “-fm64”, which is not a valid gcc option.
$ /oracle/app/oracle/product/11.2.0/databaseX/perl/bin/perl -v
This is perl, v5.10.0 built for sun4-solaris-thread-multi-64
$ uname -a
SunOS hostX 5.10 Generic_150400-07 sun4u sparc SUNW,SPARC-Enterprise
XML::LibXML version 2.0110
'$ /oracle/app/oracle/product/11.2.0/db_1/perl/bin/perl Makefile.PL XMLPREFIX=/opt/csw DEBUG=1
Use of uninitialized value $_ in length at inc/Devel/CheckLib.pm line 375.
enable native perl UTF8
running xml2-config.../opt/csw/bin/xml2-config --version
/opt/csw/bin/xml2-config --libs
/opt/csw/bin/xml2-config --cflags
ok (2.7.8)
Use of uninitialized value $_ in length at inc/Devel/CheckLib.pm line 375.
# /usr/sfw/bin/gcc -D_REENTRANT -m64 -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 --m64 -L/opt/SUNWspro/WS6U1/lib/v9 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/usr/local/lib -lsocket -lnsl -ldl -lm -lpthread -lc assertlibte_3vqov.c -I/opt/csw/include/libxml2 -o assertlibvuSaqNyM
Checking for ability to link against xml2...cc1: error: unrecognized command line option "-fm64"
# /usr/sfw/bin/gcc -D_REENTRANT -m64 -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 --m64 -L/opt/SUNWspro/WS6U1/lib/v9 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/usr/local/lib -lsocket -lnsl -ldl -lm -lpthread -lc assertlibPXKDzIJg.c -I/opt/csw/include/libxml2 -o assertlibWiKQFy8K
cc1: error: unrecognized command line option "-fm64”
...
Thomas