Re: [PHP] SNMP with 4.1.0

2001-12-25 Thread Brian Clark

* Peter Hicks ([EMAIL PROTECTED]) [Dec 24. 2001 17:39]:

   gcc: /usr/local/snmp/lib/.libs/libsnmp.so: No such file or directory

  Does libsnmp.so actually exist in /usr/local/snmp/lib?

 Yes (a symlink to another file, which exists), and SNMP is detected fine
 through 'configure'.

OK, another try. You say the file exists, but does it exist in
/usr/local/snmp/lib/.libs? If not, you could always try a symlink to get
them acquainted. Chances are, you've already tried that, correct?

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
UNIX: measuring in inconvenient units since 57,974,400!


-- 
PHP General 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]




[PHP] SNMP with 4.1.0

2001-12-24 Thread Peter Hicks

All,

I am having terrible difficulty trying to build 4.1.0 as an Apache shared
module. Without SNMP support, all is well. However, as soon as I add
--with-snmp=..., I get the following at compile time:

gcc: /usr/local/snmp/lib/.libs/libsnmp.so: No such file or directory
make[3]: *** [snmp.la] Error 1
make[3]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext/snmp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext/snmp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext'
make: *** [all-recursive] Error 1


This only happens when PHP is being compiled as a shared module, and only
happens when SNMP support is compiled in.

Anyone got any ideas?

Festive wishes,


Peter.


-- 
PHP General 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]




Re: [PHP] SNMP with 4.1.0

2001-12-24 Thread Brian Clark

* Peter Hicks ([EMAIL PROTECTED]) [Dec 24. 2001 15:26]:

 I am having terrible difficulty trying to build 4.1.0 as an Apache shared
 module. Without SNMP support, all is well. However, as soon as I add
 --with-snmp=..., I get the following at compile time:

 gcc: /usr/local/snmp/lib/.libs/libsnmp.so: No such file or directory

Does libsnmp.so actually exist in /usr/local/snmp/lib?

 make[3]: *** [snmp.la] Error 1
 make[3]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext/snmp'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext/snmp'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/local/src/web/ssl2/php-4.1.0/ext'

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Enter any 11 digit prime number to continue.


-- 
PHP General 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]




Re: [PHP] SNMP with 4.1.0

2001-12-24 Thread Peter Hicks

Hi Brian

On Mon, 24 Dec 2001, Brian Clark wrote:

  gcc: /usr/local/snmp/lib/.libs/libsnmp.so: No such file or directory

 Does libsnmp.so actually exist in /usr/local/snmp/lib?

Yes (a symlink to another file, which exists), and SNMP is detected fine
through 'configure'.

I have two theories. The first is that libsnmp.so is the name of the Apache
module that is being compiled and it is being referenced incorrectly; the
second is that a spurious .libs/ has appeared from somewhere.

As I said in the first e-mail, it works fine when PHP is to be statically
compiled in to Apache, which leads me to believe my first theory more than the
second



Peter.


-- 
PHP General 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]




Re: [PHP] SNMP with 4.1.0

2001-12-24 Thread Brian Clark

* Peter Hicks ([EMAIL PROTECTED]) [Dec 24. 2001 17:39]:

  Does libsnmp.so actually exist in /usr/local/snmp/lib?

 Yes (a symlink to another file, which exists), and SNMP is detected fine
 through 'configure'.

 I have two theories. The first is that libsnmp.so is the name of the Apache
 module that is being compiled and it is being referenced incorrectly; the
 second is that a spurious .libs/ has appeared from somewhere.

OK, how about building the DSO via apxs manually and see if you get any
errors? IIRC, you can then place it in the correct directory in the
apache source and use --enable-shared=snmp in apache's configure 
*I think*. Why, let me ask Santa.. 

Yes, Santa says he believes that should work.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Sure FAT32 corrupts your files, but look how fast it is.


-- 
PHP General 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]




Re: [PHP] SNMP with 4.1.0

2001-12-24 Thread Brian Clark

* Brian Clark ([EMAIL PROTECTED]) [Dec 24. 2001 22:26]:

 OK, how about building the DSO via apxs manually and see if you get any
 errors? IIRC, you can then place it in the correct directory in the
 apache source and use --enable-shared=snmp in apache's configure 
 *I think*. Why, let me ask Santa.. 

 Yes, Santa says he believes that should work.

Nevermind, I need to quit smoking the mistletoe. You're trying to build
PHP with that configure option, which is *DUH* the point of this list.
Just ignore everything I said.. 

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Why doesn't DOS ever say Excellent command or filename?


-- 
PHP General 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]