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



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.

References: 
 >compiling PHP, tearing hair (From: Chuq Von Rospach <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.