I do have  libsnmp9-dev installed:

it goes like this:
 >./configure  --enable-server --with-mysql --with-net-snmp
....
(snip)
....
....
checking for curl-config... no
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library

and when I look through the config.log for the error at I find the  
following...

configure:8986: checking for curl-config
configure:9017: result: no
configure:9582: checking for net-snmp-config
configure:9600: found /usr/bin/net-snmp-config
configure:9613: result: /usr/bin/net-snmp-config
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
/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]'
collect2: ld returned 1 exit status
configure:9763: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zabbix"
| #define VERSION "1.4.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_TIME_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_SYSINFO_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_LOADAVG_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_SWAP_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_KSTAT_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_SYS_PROCFS_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_PROC_H 1
| #define HAVE_SYS_VAR_H 1
| #define HAVE_RESOLV_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_NLIST_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_KVM_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_REGEX_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_SEM_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_SYS_SHM_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_GRP_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBKVM 1
| #define HAVE_RES_QUERY 1
| #define HAVE_PROC 1
| #define HAVE_PROC_1_STATUS 1
| #define HAVE_PROC_0_PSINFO 1
| #define HAVE_SYS_RESOURCE_SETPRIORITY 1
| #define HAVE_UNISTD_SYSCONF 1
| #define HAVE___VA_COPY 1
| #define HAVE_SYS_SWAP_SWAPTABLE 1
| #define HAVE_FUNCTION_INITGROUPS 1
| #define HAVE_FUNCTION_SETEUID 1
| #define HAVE___VA_ARGS__ 1
| #define RETSIGTYPE void
| #define HAVE_GETLOADAVG 1
| #define HAVE_SOCKET 1
| #define HAVE_STRTOD 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_HSTRERROR 1
| #define HAVE_ATOLL 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_MYSQL 1
| /* end confdefs.h.  */
|
|
| int
| main ()
| {
| main ();
|   ;
|   return 0;
| }
configure:9788: result: no
configure:9796: error: Not found NET-SNMP library





On May 25, 2008, at 5:50 PM, David Bartley wrote:

> 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
>>>>>> gnusol-devel@lists.sonic.net
>>>>>> http://lists.sonic.net/mailman/listinfo/gnusol-devel
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>

_______________________________________________
gnusol-devel mailing list
gnusol-devel@lists.sonic.net
http://lists.sonic.net/mailman/listinfo/gnusol-devel

Reply via email to