On Sun, Mar 12, 2006 at 07:43:16PM +0800, Vladan Popovic wrote:
> Hello
> I installed openBSD 3.8 with lighttpd & php-5.1.2
>
> unfortunately I fail to install pdflib to work with php.
> when I run the 'make' command I get an error message related to the
> linker - but since I don't understand the message, I have no clue how to
> try to resolve it.
> I suppose that a file called pdf.so should be created but somehow it
> doesn't happen
> The message is here below - can anyone help?
Just a guess, but it looks like the pdflib PEAR stuff is a wrapper
around the pdflib library, which you do not have installed (pkg_add
pdflib-4.0.3p0). In their infinite wisdom, the PEAR pdflib developers
use the exact same name for what they do.
Aside from that, I miss the configure command that was used.
However, if you cannot get this sort of stuff to work on your own, you
are usually better off sticking to packages and ports. Upgrade to
3.9-beta for the newer stuff.
Joachim
> Thank you
>
> # make LIBDIR=/usr/local/bin/libtool
> /bin/sh /usr/src/pdflib-2.0.5/libtool --mode=compile gcc -I.
> -I/usr/src/pdflib-2.0.5 -DPHP_ATOM_INC -I/usr/src/pdflib-2.0.5/include
> -I/usr/src/pdflib-2.0.5/main -I/usr/src/pdflib-2.0.5
> -I/usr/local/include/php -I/usr/local/include/php/main
> -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
> -I/usr/local/include/php/ext
> -I/usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/include -DHAVE_CONFIG_H -g
> -O2 -c /usr/src/pdflib-2.0.5/pdf.c -o pdf.lo
> mkdir .libs
> gcc -I. -I/usr/src/pdflib-2.0.5 -DPHP_ATOM_INC
> -I/usr/src/pdflib-2.0.5/include -I/usr/src/pdflib-2.0.5/main
> -I/usr/src/pdflib-2.0.5 -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/TSRM
> -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
> -I/usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/include -DHAVE_CONFIG_H -g -O2
> -c /usr/src/pdflib-2.0.5/pdf.c -fPIC -DPIC -o .libs/pdf.o
> /bin/sh /usr/src/pdflib-2.0.5/libtool --mode=link gcc -DPHP_ATOM_INC
> -I/usr/src/pdflib-2.0.5/include -I/usr/src/pdflib-2.0.5/main
> -I/usr/src/pdflib-2.0.5 -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/TSRM
> -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
> -I/usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/include -DHAVE_CONFIG_H -g
> -O2 -o ./pdf.la -export-dynamic -avoid-version -prefer-pic -module
> -rpath /usr/src/pdflib-2.0.5/modules pdf.lo
> -R/usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/lib
> -L/usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/lib -lpdf
>
> *** Warning: linker path does not have real file for library -lpdf.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have
> *** because I did check the linker path looking for a file starting
> *** with libpdf and none of the candidates passed a file format test
> *** using a regex pattern. Last file checked:
> /usr/src/PDFlib-6.0.3-OpenBSD34/bind/c/lib/libpdf.a
>
> *** Warning: libtool could not satisfy all declared inter-library
> *** dependencies of module pdf. Therefore, libtool will create
> *** a static module, that should work as long as the dlopening
> *** application is linked with the -dlopen flag.
> ar cru ./.libs/pdf.a .libs/pdf.o
> ranlib ./.libs/pdf.a
> creating ./pdf.la
> (cd ./.libs && rm -f pdf.la && ln -s ../pdf.la pdf.la)
> /bin/sh /usr/src/pdflib-2.0.5/libtool --mode=install cp ./pdf.la
> /usr/src/pdflib-2.0.5/modules
> cp ./.libs/pdf.lai /usr/src/pdflib-2.0.5/modules/pdf.la
> cp ./.libs/pdf.a /usr/src/pdflib-2.0.5/modules/pdf.a
> ranlib -t /usr/src/pdflib-2.0.5/modules/pdf.a
> chmod 644 /usr/src/pdflib-2.0.5/modules/pdf.a
> PATH="$PATH:/sbin" ldconfig -m /usr/src/pdflib-2.0.5/modules
> ----------------------------------------------------------------------
> Libraries have been installed in:
> /usr/src/pdflib-2.0.5/modules