On 4 February 2010 11:39, astal vista <astal.vista...@gmail.com> wrote:
> i have install net-snmp package on RHEL5.3.

How?  Did you compile from source, or install a pre-compiled binary.


> #make snmp-demo
>
> gcc -I. `net-snmp-config --cflags`   -c -o snmp-demo.o snmp-demo.c
> gcc: -lcrypto: linker input file unused because linking not done
> gcc -I. `net-snmp-config --cflags`   -c -o cap001a.o cap001a.c
> gcc: -lcrypto: linker input file unused because linking not done
> gcc -I. `net-snmp-config --cflags`   -c -o cap001b.o cap001b.c
> gcc: -lcrypto: linker input file unused because linking not done
> gcc -o snmp-demo snmp-demo.o cap001a.o cap001b.o  `net-snmp-config
> --agent-libs`
>
> what might be the problem.


What is the output of
    net-snmp-config --cflags
    net-snmp-config --ldflags
?

It looks suspiciously as if the original configuration was wrong.
I get "-lcrypto" as part of the output of "net-snmp-config --ldflags",
but not in "net-snmp-config --cflags"

  (Rakesh - it *is* appropriate to use "net-snmp-config --cflags"
when compiling code, since this provides a list of definitions
and header file locations.  There's a separate invocation for
linkage-time settings)

Dave

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to