#5366: Add libc-client
-------------------------+------------------------
 Reporter:  thofram      |       Owner:  blfs-book
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  x-future
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------

Comment (by timtas):

 Since c-client is not used a lot anymore apart from php, I suggest to
 build a temporary static c-client library and then a dynamically loadable
 php imap module. With the invaluable help of above settings, I did the
 following within a freshly unpacked php source tree (7.2.13), after having
 built and installed php before:

 {{{
 tar xf /lfs-src/imap-2007f.tar.gz
 cd imap-2007f || exit


 make lnp SSLINCLUDE=/usr/include SSLTYPE=unix EXTRACFLAGS=-fPIC
 install -v -m755 -d $C_CLIENT_BASE
 install -v -m755 -d $C_CLIENT_BASE/include
 install -v -m755 -d $C_CLIENT_BASE/lib
 install -v c-client/c-client.a $C_CLIENT_BASE/lib
 install -v c-client/*.c $C_CLIENT_BASE/lib
 install -v c-client/*.h $C_CLIENT_BASE/include
 ln -s c-client.a $C_CLIENT_BASE/lib/libc-client.a

 cd ..


 cd ext/imap
 phpize
 ./configure --with-imap=$C_CLIENT_BASE --with-imap-ssl
 make || exit
 sudo make install (or some make INSTALL_ROOT=$DESTDIR install)

 }}}

 I then only had to add

 extension=imap.so

 to my php.ini and got the imap extension successfully loaded. As not many
 php installations still require the imap extension, adding it dynamically
 migth be the better idea.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/5366#comment:10>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to