Error compiling during install SNMP++V3
D. R. Evans
N7DR____arrl.net
Sun Nov 3 02:19:18 CET 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ah! The error message is actually slightly different once one does the -D
thing, and I hadn't noticed the change.
unistd.h declares:
char* crypt(const char* const char*) throw()
not just
char* crypt(const char*, const char*)
which is why g++ still complains.
One can just add "throw()" to the declaration in des.h as a temporary
workaround. The authors will probably do something more clever (and
general) :-)
Doc
- -----
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.
> 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/AwUBPcR5lmnXrLw2KRK4EQJiUACfTPE2pIozs6Si3eWX4TOtGcCDDVMAoNIj
nNCRzkxk1jCc1wdwyxwzqSyr
=HleN
-----END PGP SIGNATURE-----
More information about the AGENTPP
mailing list