[ WARNING: this message contains several bits and pieces of both
'configure' and 'compile' commands which are rather long.  you've been
warned. ]


    Okay, I've tried this several different ways now, and the end result
is always the same, so I'm starting to think this is no longer a problem
on my end, or something I'm forgetting.

    I have a rather hefty PHP module compiled for Apache.  My PHP module
has been configured, and successfully compiled with the following set
(warning, this is long):

./configure  --with-apache=../apache_1.3.14
--with-config-file-path=/usr/local/apache/conf --enable-safe-mode
--with-openssl=/usr/local --enable-magic-quotes --enable-bcmath
--with-bz2 --enable-calendar --with-gdbm --with-ndbm --with-db3
--with-zlib-dir=/usr/local --enable-ftp --with-gd
--with-jpeg-dir=/usr/local --with-dom=/usr/local --with-ttf=/usr/local
--with-gmp=/usr/local --with-imap=/usr/imap --with-mysql=/usr/mysql
--with-jpeg-dir=/usr/local --with-png-dir=/usr --with-tiff-dir=/usr
--with-snmp=/usr/snmp --enable-ucd-snmp-hack --with-zlib=/usr/local
--enable-inline-optimization --with-pgsql=/usr/pgsql
--with-java=/usr/java --with-aspell=/usr/local
--with-cpdflib=/usr/local/pdflib --with-pspell=/usr/local
--with-fdftk=/usr/local/fdftk

    This, as I said, compiles the PHP modules without a single error.

    Then, I move on to Apache, and it gets configured with:

./configure --with-layout=Apache
--activate-module=src/modules/dav/libdav.a
--activate-module=src/modules/perl/libperl.a
--activate-module=src/modules/php4/libphp4.a --enable-module=cern_meta
--enable-module=expires --enable-module=headers --enable-module=info
--enable-module=log_agent --enable-module=log_referer
--enable-module=mime_magic --enable-module=mmap_static
--enable-module=proxy --enable-module=rewrite --enable-module=speling
--enable-module=unique_id --enable-module=usertrack
--enable-module=vhost_alias --server-uid=httpd --server-gid=daemon

    This runs all the way through, up until it gets to build the actual
httpd server, then it bombs:

modules/php4/libphp4.a(aspell.o): In function `php_if_aspell_new':
/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:89: undefined
reference to `aspell_new'
modules/php4/libphp4.a(aspell.o): In function `php_if_aspell_suggest':
/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:126: undefined
reference to `aspell_suggest'
/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:130: undefined
reference to `aspell_free_suggestions'
modules/php4/libphp4.a(aspell.o): In function `php_if_aspell_check':
/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:155: undefined
reference to `aspell_check'
modules/php4/libphp4.a(aspell.o): In function `php_if_aspell_check_raw':

/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:187: undefined
reference to `aspell_check_raw'
modules/php4/libphp4.a(aspell.o): In function `php_aspell_close':
/usr/local/src/apache/php-4.0.4pl1/ext/aspell/aspell.c:58: undefined
reference to `aspell_free'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache/apache_1.3.14'
make: *** [build] Error 2


    My first impression was, it's not passing the -laspell argument,
however, it does (both -laspell as well as -lpspell):

gcc  -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing
-I/usr/local/src/apache/php-4.0.4pl1
-I/usr/local/src/apache/php-4.0.4pl1/main
-I/usr/local/src/apache/php-4.0.4pl1/main
-I/usr/local/src/apache/php-4.0.4pl1/Zend
-I/usr/local/src/apache/php-4.0.4pl1/Zend
-I/usr/local/src/apache/php-4.0.4pl1/TSRM
-I/usr/local/src/apache/php-4.0.4pl1/TSRM
-I/usr/local/src/apache/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o modules/dav/libdav.a
modules/perl/libperl.a modules/php4/libphp4.a
modules/experimental/libexperimental.a modules/standard/libstandard.a
modules/proxy/libproxy.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a  -Wl,-rpath,/usr/local/lib
-Wl,-rpath,/usr/local/fdftk-dir/lib -Wl,-rpath,/usr/imap/c-client
-Wl,-rpath,/usr/java/jre/lib/i386/classic
-Wl,-rpath,/usr/java/jre/lib/i386/native_threads
-Wl,-rpath,/usr/java/jre/lib/i386 -Wl,-rpath,/usr/mysql/lib/mysql
-Wl,-rpath,/usr/pgsql/lib -Wl,-rpath,/usr/snmp/lib  -rdynamic
-L/usr/local/lib -L/usr/local/fdftk-dir/lib -L/usr/imap/c-client
-L/usr/java/jre/lib/i386/classic -L/usr/java/jre/lib/i386/native_threads
-L/usr/java/jre/lib/i386 -L/usr/mysql/lib/mysql -L/usr/pgsql/lib
-L/usr/snmp/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4  -lpam -lc-client  -ldl -lz -lcrypto -lssl -lsnmp -lpspell
-lpq -lmysqlclient -lgmp -lz -lpng -lgd -ljpeg -lFdfTk -lz -lxml -ldb
-lgdbm -lbz2 -laspell -lcrypto -lssl -lresolv -lm -ldl -lcrypt -lnsl
-lresolv -L/usr/local/lib -lz -L/usr/local/lib -ljpeg    -lm -lcrypt
-lndbm -rdynamic  -L/usr/local/lib
/usr/lib/perl5/5.6.0/i386-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.6.0/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt

    Okay, so now what?  If I compile withOUT aspell, everything works
like a charm, no problems what so ever.  Help anyone?

    AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |____________________________________________________________________
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  SysAdmin / Websmith                           .     800.441.3873 x130
  Photo Craft Laboratories, Inc.             .        eFax 248.671.0909
  http://www.pcraft.com                  .         3550 Arapahoe Ave #6
  .................. .  .  .     .               Boulder, CO 80303, USA



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to