You could try installing libsnmp9-dev. The line you've given is from
the configure script test for net-snmp; I wonder if it doesn't set
-lsocket later though. Could you post the last few commands/lines
before the link error you mentioned in the first email?

On Sun, May 25, 2008 at 8:41 PM, asa <[EMAIL PROTECTED]> wrote:
> it looks like lsocket was being set correctly. The line which dies is:
>
> configure:9733: checking for main in -lnetsnmp
> configure:9757: gcc -o conftest -g -O2   -I/usr/include/mysql  -DBIG_JOINS=1
> -DHAVE_RWLOCK_T     -I. -I/usr/include    -L/usr/lib conftest.c -lnetsnmp
> -lkvm -lm -lresolv -lkstat -lsocket   >&5
> (SNIP)
> configure:9796: error: Not found NET-SNMP library
>
> Which fails out. Zabbix makes it through the configure and make steps if I
> don't add the -with-net-snmp flag.
>
> Any other ideas?
>
> Asa
>
> On May 25, 2008, at 1:44 PM, David Bartley wrote:
>
>> In linux, sockets are implemented in glibc, but in solaris they're
>> implemented in a separate library (libsocket.so). I would imagine
>> configure should detect and deal with this. You could try setting
>> LDFLAGS=-lsocket or modify the configure script or generated makefile
>> to set that. Look for other "-lfoo" type entries and add -lsocket
>> after them.
>>
>> -- David
>>
>> On Sun, May 25, 2008 at 4:39 PM, asa <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> I am using their configure script : ./configure --enable-server
>>> --enable-agent --with-mysql --with-net-snmp
>>>
>>> Pretty stock. This is what the ubuntu packages are doing when building I
>>> am
>>> pretty sure. (it has been a week since I messed with that route, getting
>>> hit
>>> with this same error)
>>>
>>> Asa
>>>
>>> On May 25, 2008, at 1:14 PM, David Bartley wrote:
>>>
>>>> Have you tried linking with -lsocket?
>>>>
>>>> -- David
>>>>
>>>> On Sun, May 25, 2008 at 3:58 PM, asa <[EMAIL PROTECTED]>
>>>> wrote:
>>>>>
>>>>> Trying to compile zabbix 1.4.5 from source on nexenta and I run into:
>>>>>
>>>>> /usr/lib/libnetsnmp.so: undefined reference to [EMAIL PROTECTED]'
>>>>> /usr/lib/libnetsnmp.so: undefined reference to [EMAIL PROTECTED]'
>>>>> /usr/lib/libnetsnmp.so: undefined reference to [EMAIL PROTECTED]'
>>>>> /usr/lib/libnetsnmp.so: undefined reference to [EMAIL PROTECTED]'
>>>>>
>>>>> Any ideas on what this is and how go get around it in nexenta?
>>>>>
>>>>> Thank you.
>>>>> Asa
>>>>> _______________________________________________
>>>>> gnusol-devel mailing list
>>>>> [email protected]
>>>>> http://lists.sonic.net/mailman/listinfo/gnusol-devel
>>>>>
>>>>>
>>>
>>>
>
>
_______________________________________________
gnusol-devel mailing list
[email protected]
http://lists.sonic.net/mailman/listinfo/gnusol-devel

Reply via email to