Hi Rene --
Thanks for the quick response. The tekwire.net article looks
promising, too.
I did run the gcc command from below and I got a c-client.so
generated... Now I'm working on getting that linked into PHP.
Thanks again,
Fred
--On Monday, April 09, 2007 12:12:15 -0500 René Berber
<[EMAIL PROTECTED]> wrote:
Fred Seaton wrote:
Mark,
In reference to:
<http://mailman1.u.washington.edu/pipermail/imap-uw/2006-October/0
007 65.html>
Is there a "make" option for imap-2006 that would generate shared
libraries (.so)? I thought that maybe adding "EXTRACFLAGS=-fPIC"
might do it, but it didn't (however, I'm no expert in doing this).
No, there is no option.
FWIW there is a good guide at :
http://www.tekwire.net/joomla/building/apache/comp_apache_sol9.htm
I didn't follow the instructions literally (I think there where
some typos at the time I read them), I just did:
# gcc -shared -o libc-client.so *.o -L/usr/local/ssl/lib
# -R/usr/local/ssl/lib
-lssl -lcrypto -lsocket -lnsl -ldl -lz
of course after building uw-imap with EXTRACFLAGS=-fPIC (otherwise
linking the library will not work).
I had the same errors when building PHP against other packages that
didn't have shared versions of their libraries, but those packages
had a '--shared' option on their ./configure script which solved
the problem. Now I'm having the errors (ld: fatal: relocations
remain against allocatable but non-writable sections) again when
trying to link in the c-client library.
--
René Berber
_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw
--
Fred Seaton
Research & Instructional Consultant, Senior UNIX Specialist
University Computer Support Services
Western Illinois University
126 Stipes Hall
Macomb, IL 61455
309-298-1177
_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw