logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: SNMP Agent Development. Help & Error in SNMP 5.1 Pre: msg#00260

Subject: Re: SNMP Agent Development. Help & Error in SNMP 5.1 Pre
> When i remove the files for tcpdomain.c, unixdomain.c files from the compile
> option in Makefile
> it gave linking errors for agent compile and apps compile.

Yes - that doesn't surprise me.
There will be various places in the code that assume the presence
of various transports, (hopefully) protected by suitable #ifdefs.

If you omit the transports cleanly, using configure, then the relevant
definitions will be defined (or not) accordingly.    If you configure
to include a transport, and then simply don't compile the file,
then this is bound to result in linking errors.

Try
        configure .... -with-out-transports="TCP,Unix"

I've just tried this, and it works as expected.
The relevant transport files are not listed in the Makefile,
and things compile and link successfully.

Dave



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54


<Prev in Thread] Current Thread [Next in Thread>