----- Original Message ----- 
From: "Neal Richter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <htdig-dev@lists.sourceforge.net>
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?



[EMAIL PROTECTED] 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:
>
> [EMAIL PROTECTED] nealr.cfg]$ nm htdigphp.so |\grep
htsearch_get_nth_match
> 0019bba8 T htsearch_get_nth_match
> 000ace08 T zif_htsearch_get_nth_match

[EMAIL PROTECTED] modules]# nm htdigphp.so |\grep
htsearch_get_nth_match
         U htsearch_get_nth_match
0000241c T zif_htsearch_get_nth_match
[EMAIL PROTECTED] 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!



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
ht://Dig Developer mailing list:
htdig-dev@lists.sourceforge.net
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to