I was able to fix this and install DBD::mysql (and squeezecenter) by
modifying the /usr/mysql/5.x/bin/mysql_config file so it will work with
gcc. 

$ diff mysql_config mysql_config.orig 
94c94
< #ldflags='-L/opt/SUNWspro/lib -lCrun -lrt'
---
> ldflags='-L/opt/SUNWspro/lib -lCrun -lrt'
119c119
< cflags="-I$pkgincludedir  -DDBUG_OFF -xO4 -xstrconst -DBIG_TABLES
-DHAVE_RWLOCK_T " #note: end space!
---
> cflags="-I$pkgincludedir  -DDBUG_OFF -xO4 -xstrconst -xprefetch=auto
-xprefetch_level=3 -mt -fns=no -fsimple=1 -xbuiltin=%all -xlibmil
-xlibmopt -xtarget=generic   -DBIG_TABLES -DHAVE_RWLOCK_T " #note: end
space!


-- 
sakrafd
------------------------------------------------------------------------
sakrafd's Profile: http://forums.slimdevices.com/member.php?userid=30153
View this thread: http://forums.slimdevices.com/showthread.php?t=55852

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to