Error compiling during install SNMP++V3

D. R. Evans N7DR____arrl.net
Sun Nov 3 02:00:55 CET 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21 Oct 2002 at 18:45, Frank Fock wrote:

> Marc,
> 
> obviously something went wrong when you applied
> the path to the Makefile because it is not
> active! So please check it again.

Hmmmm....

I just installed Mandrake 9.0 on a system and had the same happen 
(presumably it's something to do with g++ 3.2). Anyway, oddly, I can also 
report that adding -DHEADER_DES_LOCL_H to COPTIONS in the makefile does 
_not_ change anything. I haven't had time to look into what's happening, 
but I just wanted to report that the "obvious" fix really does not work 
(indeed, I had already tried that fix before looking in the archives to see 
if there had been any traffic on this subject), and it wasn't just operator 
error on the part of the person who originally reported that the fix didn't 
help.

  Doc






> The code of interest is located in libdes/des.h
> and looks like:
> 
> #ifdef HEADER_DES_LOCL_H
> char *crypt(const char *buf,const char *salt);
> #else
> char *crypt();
> #endif
> 
> Best regards,
> Frank
> 
> Beumer, Marc wrote:
> > Hello,
> > 
> >  
> > 
> > I have done this to the Makefile, the error remains the same.
> > 
> >  
> > 
> > I have added it to the Makefile in the COPTIONS section.
> > 
> >  
> > 
> > Thanks
> > 
> >  
> > 
> > -----Original Message-----
> > *From:* Frank Fock [mailto:Frank.Fock____t-online.de]
> > *Sent:* Thursday, October 10, 2002 7:02 PM
> > *To:* mbeumer____euronet.nl
> > *Cc:* agentpp-dl____agentpp.com
> > *Subject:* Re: Error compiling during install SNMP++V3
> > 
> >  
> > 
> > Hello,
> > 
> > Please add -DHEADER_DES_LOCL_H to your Makefile options
> > of SNMP++ (and AGENT++).
> > 
> > Best regards,
> > Frank
> > 
> >  
> > 
> > mbeumer____euronet.nl wrote:
> >>  Hello,
> >>
> >>  I have this error when trying to compile under RedHat 8.0
> >>  Anybody, know a quick fix ?
> >>
> >>  Thanks
> >>
> >>  [root at localhost src]# make
> >>  g++ -D_XPG4_EXTENDED -Dsun -D__unix -Wall  -I../include -I./ 
> > -I../../libdes -g -
> >>  o auth_priv.o -c auth_priv.cpp
> >>  In file included from ../include/address.h:83,
> >>                  from ../include/target.h:72,
> >>                  from ../include/usm_v3.h:40,
> >>                  from ../include/auth_priv.h:39,
> >>                  from auth_priv.cpp:46:
> >>  /usr/include/unistd.h:946: declaration of C function `char* 
> > crypt(const char*,
> >>    const char*)' conflicts with
> >>  ../../libdes/des.h:192: previous declaration `char* crypt()' here
> >>  make: *** [auth_priv.o] Error 1
> >>  [root at localhost src]#
> >>  [root at localhost src]#
> >>
> >>
> >>
> > 
> > 
> > 
> > 
> 
> 
> 
> 



-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: Key obtainable from servers: ID 0x362912B8

iQA/AwUBPcR1SWnXrLw2KRK4EQI0NQCfTpEa6lk41KYly+j92ErgAlWrl6EAn1OX
bxpTRmpBgAiJ/P7hRvZyLA3t
=+zAb
-----END PGP SIGNATURE-----



More information about the AGENTPP mailing list