Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling PHP, tearing hair



I assume you are using Mac OS X server? There is a conflict with mod_auth_apple
and mod_php on Mac OS X server. You have make sure PHP loads before mod_auth_apple
and you will not get this issue. It seems like your c-client library linked fine
the first try, as you would have had more then just _checkpw come up as undefined.

Give that a try and let me know if it works...

Regards,
Aaron Faby


On Friday, May 9, 2003, at 09:46 AM, Michael S. Fischer wrote:

First, run 'otool -L httpd' and see if it thinks the c-client library is
being linked in properly.

Have you tried using an absolute path instead of the relative path
"--with-imap=../../../chuq/imap-2002c1"?

The c-client libraries should be installed in /usr/local/lib (and the .h
files in /usr/local/include) so that the linker can find them at compile
time and so that dyld(1) can find them at runtime.

--Michael

-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of
Chuq Von Rospach
Sent: Thursday, May 08, 2003 9:10 PM
To: email@hidden
Subject: compiling PHP, tearing hair


Okay, I'm tearing my hair out here, so it's time to ask for help.

Trying to compile a custom version of PHP 4.3.1 for a project. We're
using it just fine on Another Platform, but we're trying to move some
code over to the Xserve so we can retire the old, tire, slow boxes.

The configure command I'm using is:

./configure --with-apxs=/usr/sbin/apxs --with-mysql
--enable-calendar
--enable-mbstring --enable-mbregex
--with-imap=../../../chuq/imap-2002c1 --prefix=/usr/local
--with-imap-ssl=/usr

Imap is the latest uw-imap, and it's compiled, and imapd builds fine,
so the c-client lib seems to be fine.

I can configure, build and install PHP. but when I start up
apache, it
fails with:

dyld: /usr/sbin/httpd Undefined symbols:
_checkpw

checkpw is coming out of imap and c-client. If I take imap
out of php,
it works just fine. but I need imap.

It looks like some really funky loader/apxs issue, but I
can't nail it
to the wall. I'm out of ideas. I've made sure php is using the same
loader sequence as imapd did (-lc-client, -lssl, -lcrypto),
but no joy.
I can't see why it loads fine one place and not the other.

Anyone have any ideas here? I feel like I'm real close to the
solution,
but I'm now running in circles around it and not getting any closer.

If you ever want this list-server upgraded and the archives fixed, I
have to fix this bug first. honest.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/ma> cos-x-server
Do
not post admin requests to the list. They
will be ignored.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.


----------------------------------------------------------------
Aaron Faby Server Logistics
email@hidden UNIX, Internet, Macintosh
http://www.serverlogistics.com Phone: 323-963-9867
Fax: 323-372-3546 Cell: 323-363-9127
----------------------------------------------------------------
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: compiling PHP, tearing hair (From: "Michael S. Fischer" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.