Thank for your help.

I resolve my problem, although I don't know that is the true resolution.

the resoloved flow is as following:

1. use 64-bits linux os (centos)

2. unpacking the source tarball

3. use default parameter to configure (# ./configure)

4. make it, and it's no error message. (# make)

5. copy the directory, "perl", to cover my "net-snmp-5.4" directory

6. use my "configure" file to execute "configure"

7. make it, and it finish the job with no error.

I guess that it maybe need to use the 64-bits environment, and/or my
"configure" parameters were error.
Why do you think about it?

Bluce

2010/8/6 AC. <[email protected]>

> The attached file, "make-debug.log", is the result of the "make" command.
> (# make 2>&1 >make-debug.log)
>
> ================================ console print
> ==========================================
>
> r...@bluce-desktop:~/work/net-snmp-5.4.3# make 2>&1 >make-debug.log
>
> snmpUDPDomain.c: In function '_sock_buffer_maximize':
> snmpUDPDomain.c:325: warning: passing argument 5 of 'getsockopt' from
> incompatible pointer type
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190:
> note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
> snmpUDPDomain.c:362: warning: passing argument 5 of 'getsockopt' from
> incompatible pointer type
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190:
> note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
> snmpUDPDomain.c: In function 'netsnmp_sock_buffer_set':
> snmpUDPDomain.c:507: warning: passing argument 5 of 'getsockopt' from
> incompatible pointer type
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190:
> note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
> snmpUDPDomain.c:542: warning: passing argument 5 of 'getsockopt' from
> incompatible pointer type
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190:
> note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
> util_funcs.c: In function 'get_exec_output':
> util_funcs.c:291: warning: passing argument 4 of 'run_exec_command' from
> incompatible pointer type
> utilities/execute.h:9: note: expected 'int *' but argument is of type
> 'ssize_t *'
> util_funcs.c: In function 'restart_doit':
> util_funcs.c:719: warning: 'sigsetmask' is deprecated (declared at
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/signal.h:199)
> if-mib/data_access/interface.c: In function '_free_interface_config':
> if-mib/data_access/interface.c:784: warning: passing argument 1 of 'free'
> discards qualifiers from pointer target type
> /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/stdlib.h:488:
> note: expected 'void *' but argument is of type 'const char *'
> udp-mib/data_access/udp_endpoint_linux.c: In function
> '_process_line_udp_ep':
> udp-mib/data_access/udp_endpoint_linux.c:225: warning: cast from pointer to
> integer of different size
> udp-mib/data_access/udp_endpoint_linux.c:226: warning: cast from pointer to
> integer of different size
> udp-mib/data_access/udp_endpoint_linux.c:226: warning: cast to pointer from
> integer of different size
> snmpd.c: In function 'main':
> snmpd.c:963: warning: assignment discards qualifiers from pointer target
> type
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/default_store/../../snmplib/.libs
>
> Warning: -L../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/default_store/../../snmplib/
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/ASN/../../snmplib/.libs
> Warning: -L../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/ASN/../../snmplib/
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/OID/../../snmplib/.libs
> Warning: -L../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/OID/../../snmplib/
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../snmplib/.libs
> Warning: -L../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../snmplib/
> Warning: -L../../agent/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/.libs
>
> Warning: -L../../agent/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/
> Warning: -L../../agent/helpers/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/helpers/.libs
>
> Warning: -L../../agent/helpers/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/helpers/
> Warning: -L../../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/default_store/../../../snmplib/.libs
> Warning: -L../../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/agent/default_store/../../../snmplib/
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/SNMP/../../snmplib/.libs
> Warning: -L../../snmplib/ changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/SNMP/../../snmplib/
> Warning: -L../../apps changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../apps
> Warning: -L../../agent/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent/.libs
>
> Warning: -L../../agent changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent
> Warning: -L../../agent/helpers/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent/helpers/.libs
>
>
> Warning: -L../../agent/helpers changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent/helpers
> Warning: -L../../snmplib/.libs changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../snmplib/.libs
> Warning: -L../../snmplib changed to
> -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../snmplib
> /usr/bin/ld: skipping incompatible
> /home/bluce/work/net-snmp-5.4.3/perl/default_store/../../snmplib/.libs/libnetsnmp.so
> when searching for -lnetsnmp
> /usr/bin/ld: skipping incompatible
> /home/bluce/work/net-snmp-5.4.3/perl/default_store/../../snmplib/.libs/libnetsnmp.a
> when searching for -lnetsnmp
> /usr/bin/ld: cannot find -lnetsnmp
> collect2: ld returned 1 exit status
> make[2]: *** [../blib/arch/auto/NetSNMP/default_store/default_store.so]
> Error 1
> make[1]: *** [subdirs] Error 2
> make: *** [perlmodules] Error 1
>
> ======================================================================================
>
>
>  2010/8/5 Dave Shield <[email protected]>
>
>> On 5 August 2010 12:37, AC. <[email protected]> wrote:
>>
>> > I downloaded "net-snmp-5.4.3.tar.gz" again, unpacked it, and then
>> executed
>> > "./configure".
>>
>>    [snip]
>>
>> > Then, I executed the "make" command. (# make -j3 -s 1>make-out.log
>> > 2>make-err.log)
>>
>> Can you try *without* the -j3 option.
>> It looks suspiciously as if one of the compilation jobs is trying to
>> use the target of one of the others, before that job has finished.
>>
>> It would also be useful to redirect stdout and stderr to the same
>> file  (2>&1), so that we can coordinate error messages with the
>> file that's being compiled at the time.
>>
>> Dave
>>
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to