UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2006, 04:06 PM
DrLou DrLou is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 DrLou User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 58 sec
Reputation Power: 0
PHP compile - with MySQL - under 64-bit Solaris?

Has anybody build PHP from scratch on 64-bit Solaris?

Am running into trouble - in the confguration step - in portion related to MySQL setup. ld is complaining about wrong ELF flags...

Here are some relevant details from the config.log:
--------------------------------------------------------
configure:59182: checking for mysql_close in -lmysqlclient
configure:59201: gcc -o conftest -I/usr/local/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2 -R/usr/local/lib -L/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lmysqlclient -liconv -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64
ld: warning: file /usr/local/mysql/lib/libz.a(crc32.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_close /var/tmp//ccE9AHvm.o
ld: fatal: Symbol referencing errors. No output written to conftest

--------------------------------------------------------
seems clear to be an error wtih ld - can anyone point mein the right direction? thanks in advance. Lou

Reply With Quote
  #2  
Old April 17th, 2006, 10:25 AM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,728 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 22 h 41 m 16 sec
Reputation Power: 354
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
gcc 3.3.2 is pretty old - I don't know that it can handle creating 64 bit binaries.

The issue though seems to be that MySQL was compiled for 64 bits but you're compiling with 32 bits. I'd look at the gcc 3.3.2 manual to see how to turn on 64 bit compiling or recompile MySQL for 32 bits.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > PHP compile - with MySQL - under 64-bit Solaris?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway