You missed the most important step.  You need to tell config.m4 that you 
want to link against that libuu.a library.

Look at some of the other extensions to see how to do it.  Specifically 
look for PHP_CHECK_LIBRARY and PHP_ADD_LIBRARY_WITH_PATH

-Rasmus

On Tue, 30 Mar 2004, Stéphane Degré wrote:

> Hi,
> I am currently developing a PHP extension which provides a lot of functions
> to code/decode large mail attachments. This extension is based on the
> C-library "UUDeview".
> On Windows platforms, the extension works well. I have downloaded the
> Windows version of "UUDeview", I have specified the path of the header files
> in my "C++ Project" and I put the "uudeview.dll" file in my "C:\Windows"
> directory.
> 
> The problem comes from the "UNIX/Linux" version : I have downloaded the UNIX
> version of "UUDeview". I have installed it (./configure, make, make install)
> and then I have copied the header files ("uudeview.h", "crc32.h",
> "config.h") in the "/usr/local/include" directory. I have also copied the
> "libuu.a" file in the "/usr/local/lib" directory. Then I used the
> "./ext_skel" command which has created the module directory, the "config.m4"
> file and the others files. I have modified the "att_codec.h" and the
> "att_codec.c" files. Then I have modified the "config.m4" file. It only
> contains that :
> 
> 
> PHP_ARG_WITH(att_codec, for att_codec support,
> [  --with-att_codec             Include att_codec support])
> 
> if test "$PHP_ATT_CODEC" != "no"; then
>    PHP_NEW_EXTENSION(att_codec, att_codec.c, $ext_shared)
> fi
> 
> 
> Then I tried the following commands :
> -./buildconf
> -./configure --with-att_codec
> -make
> 
> The problem comes from the make : It fails with a lot of errors : It doesn't
> recognize the functions of the UNIX version of the C-library "UUDeview".
> I think I have to add some lines in the "config.m4" file. Can someone help
> me?
> 
> Stephane Degre
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to