Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Compiling PHP with SOAP/Iconv/OpenSSL support

Hi,

I'm not sure if this is the best place for this but the other topics seem even less related.

I'm trying to compile PHP with SOAP and SSL on a Mac for use with Salesforce.com (it works without any issues on Gentoo and RedHat). Anytime I try to connect I get an invalid SOAP header error. It seems to be happening because the Salesforce SOAP server requires SSL connections and I don't have SSL enabled, but it's hard to backtrace. Regardless, I can't get SSL or iconv support working.

I've installed OpenSSL both from Macports and from source using the default ./config options, neither method worked. It may be related to some issues I'm having getting iconv working as well (which I also can't seem to get right, it's installed via Macports).

Here's my PHP configure, if anyone can let me in on what I'm doing wrong that would be great!!! Thanks in advance!

root# MACOSX DEPLOYMENTTARGET=10.5 \
CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" \
CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind atload"

root# ./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--enable-cli \
--with-curl=/opt/local \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-sockets \
--with-ldap=/usr \
--with-kerberos=/usr \
--with-mime-magic=/etc/apache2/magic \
--with-zlib-dir=/usr \
--with-xmlrpc \
--with-xsl=/usr \
--with-iconv=shared,/opt/local \
--with-openssl=shared,/opt/local \
--with-gd \
--with-png-dir=/usr/X11R6 \
--with-xpm-dir=/usr/X11R6 \
--with-jpeg-dir=/opt/local \
--enable-exif \
--with-freetype-dir=/opt/local \
--with-t1lib=/opt/local \
--enable-pdo \
--with-pdo-mysql \
--with-mysql-sock=/var/mysql \
--with-mysqli=/usr/bin/mysql_config \
--with-mysql=/usr/local/mysql \
--with-iodbc=/usr \
--with-curl \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--enable-soap

Message was edited by: mkenney - bad grammar

iMac, Mac OS X (10.5.7)

Posted on Jun 15, 2009 9:15 AM

Reply
Question marked as Best reply

Posted on Jun 15, 2009 9:39 AM

mkenney wrote:
Hi,

I'm not sure if this is the best place for this but the other topics seem even less related.


Welcome to Apple Discussions:
Use our Unix forum here:
http://discussions.apple.com/forum.jspa?forumID=735

(yes, it's a tad hidden 🙂 )

Message was edited by: nerowolfe
2 replies

Compiling PHP with SOAP/Iconv/OpenSSL support

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.