|
Posted by Sisyphus on November 4, 2005, 7:18 pm
Please log in for more thread options
.
..
> Now this is a .pkg install from mysql.com - is it possible that I need
> to get a .tar.gz and install my own, making sure my gcc compiler is
> used?
Worth a try. Download from
http://search.cpan.org/~capttofu/DBD-mysql-3.0002_3/ and do a manual install
as per instructions in the INSTALL file.
As long as 'perl Makefile.PL' uses your gcc-built perl, then gcc will be
used.
As you indicated in your first post, you might need to build against a
*gcc-built* mysql.
> One thing that worries me is how to uninstall from this route..
Why would you need to uninstall ? Perl modules are not usually uninstalled.
Normally a module simply gets overwritten whenever a different version of
said module is installed.
>
> Back to your point though - I stripped down the -x flags, which gives
> me this result:
> gcc -c -I/opt/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI/
> -I/usr/local/mysql/mysql/include -xnone -mt -D_FORTEC_
> -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"3.0002\"
> -DXS_VERSION=\"3.0002\" -fPIC
> "-I/opt/lib/perl5/5.8.7/sun4-solaris/CORE" dbdimp.c
> cc1: error: invalid option `t'
>
I think the 't' option referred to is the 't' in '-mt'. Perhaps '-mt' needs
also to be removed. (I don't know if there's any future in this approach ...
faik it might work ... faik it might not :-)
I'm also a little bit puzzled by the appearance of 'cc1' in the error
message. That hints to me of 'cc' rather than 'gcc'.
(It would help if someone with specific knowledge of Solaris and cc could
help out here with some definitive information.)
Cheers,
Rob
|