You seem to be using the gcc compiler with the studio flags. I'm not sure why this is the case, but perhaps you need to ensure that studio is used instead of gcc.

Regards,

Darryl.


On 08/25/11 20:30, Musical Shore wrote:
Hi,

I'm having issues compiling PHP on OpenSolaris. When I run my config script I 
get this:


gmake: *** No rule to make target `distclean'.  Stop.
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... egrep
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for gcc... gcc
checking whether the C compiler (gcc -fast -xipo -xtarget=generic 
-I/usr/sfw/include -L/opt/coolstack/mysql_32bit/lib/mysql -L/opt/coolstack/lib 
-L/usr/lib -lmysqlclient -liconv -lreadline -lcurses -lCstd -lCrun) works... no
configure: error: installation or configuration problem: C compiler cannot 
create executables.



When I try and run that gcc call, I get this:
gcc -fast -xipo -xtarget=generic -I/usr/sfw/include 
-L/opt/coolstack/mysql_32bit/lib/mysql -L/opt/coolstack/lib -L/usr/lib 
-lmysqlclient -liconv -lreadline -lcurses -lCstd -lCrun
ld: fatal: library -lCstd: not found
ld: fatal: library -lCrun: not found
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status


I can't for the life of me figure out how to get gcc to find libCstd or 
libCrun. They are in /usr/lib, specified on the command line and located as 
such:
/usr/lib/libCrun.so.1
/usr/lib/libCstd.so.1

any ideas?

Mike

--
Darryl Gove
Compiler Performance Engineering
Blog : http://blogs.sun.com/d/
Books: http://my.safaribooksonline.com/9780321711441
       http://my.safaribooksonline.com/9780768681390
       http://my.safaribooksonline.com/0595352510
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to