From: <emp...@gm...> - 2005-03-23 23:23:42
|
----- Original Message ----- From: "Neal Richter" <ne...@ri...> To: <emp...@gm...> Cc: <htd...@li...> Sent: Wednesday, March 23, 2005 12:26 PM Subject: Re: [htdig-dev] configure in libhtdigphp looking for libhtdig_api.h > > > Then when I run htdig.php I get this error: > > > > Warning: dl(): Unable to load dynamic library '/usr/lib/php4/htdigphp.so' - > > /usr/lib/php4/htdigphp.so: undefined symbol: htsearch_get_nth_match in > > /home/elsalvadorsearch/public_html/htdigphp/htdig.php on line 3 > > > > Can somebody help me with this? If anyone wants more server specs I'm > > willing to give all that you need. > > Thank you in advance > > > Please try the htdig_search.php file. > > At the top of this file (and htdig.php) there is a bit of code which will > spit out what functions are availiable from PHP in the library. Should > look like this: > > Functions available in the test extension:<br> > htsearch_open<br> > htsearch_query<br> > htsearch_get_nth_match<br> > htsearch_close<br> > htsearch_get_error<br> > htdig_index_test_url<br> > > > What do you see? [root@server libhtdigphp-2]# php htdig_search.php Content-type: text/html X-Powered-By: PHP/4.3.8 <br /> <b>Warning</b>: dl(): Unable to load dynamic library '/usr/lib/php4/htdigphp.so' - /usr/lib/php4/htdigphp.so: undefined symbol: htsearch_get_nth_match in <b>/root/libhtdig/b5/libhtdigphp-2/htdig_search.php</b> on line <b>6</b><br /> Functions available in the test extension:<br> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/root/libhtdig/b5/libhtdigphp-2/htdig_search.php</b> on line <b>11</b><br /> <br> <HR> htsearch_parms array: key[configFile] => value[/home/httpd/cgi-bin/nealr.db/archive/archive.conf] key[logFile] => value[ ] key[debug] => value[0] <br /> <b>Fatal error</b>: Call to undefined function: htsearch_open() in <b>/root/libhtdig/b5/libhtdigphp-2/htdig_search.php</b> on line <b>28</b><br /> > > Also do this command from a unix shell and report back: > > [nealr@yellowstone nealr.cfg]$ nm htdigphp.so |\grep htsearch_get_nth_match > 0019bba8 T htsearch_get_nth_match > 000ace08 T zif_htsearch_get_nth_match [root@elsalvadorsearch modules]# nm htdigphp.so |\grep htsearch_get_nth_match U htsearch_get_nth_match 0000241c T zif_htsearch_get_nth_match [root@elsalvadorsearch modules]# nm htdigphp.so |grep htsearch_get_nth_match U htsearch_get_nth_match 0000241c T zif_htsearch_get_nth_match > > The htsearch_get_nth_match symbol is the C function itself. The > zif_htsearch_get_nth_match function is the PHP wrapper that calls the C > function. > > Thanks > > -- > Neal Richter > Knowledgebase Developer > RightNow Technologies, Inc. > Customer Service for Every Web Site > Office: 406-522-1485 > > Thanks in advance! |