| Summary: | In wvstreams-3.70-r2 file wvcrypto.cc wont compile because of const char * | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jefferson Hunt <jhunt> |
| Component: | [OLD] Library | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | blocker | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
When compiling wvstreams-3.70-r2 the wvcrypto.cc file fails to compile due to a incorrect data type of const char *. Updating the 3.70-openssl.patch to read as follows fixes the issue - --- wvstreams-3.70/src/crypto/wvcrypto.cc 2003-01-03 12:51:22.000000000 -0500 +++ wvstreams-3.70/src/crypto/wvcrypto.cc 2003-01-03 12:51:51.000000000 -0500 @@ -146,7 +146,8 @@ int bufsize = ((hexbytes < 2048) ? 2048 : hexbytes) + 16; //int bufsize = hexbytes/2; - unsigned char *keybuf = new unsigned char[bufsize], *bufp; + unsigned char *keybuf = new unsigned char[bufsize]; + unsigned char *bufp; char *keystr; RSA *rp; Reproducible: Always Steps to Reproduce: 1. emerge net-libs/wvstreams 2. 3. Actual Results: Fails on compile of wvcrypto.cc file due to const char * at line 147 Expected Results: Compile without error an install. Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ck2) ================================================================= System uname: 2.4.22-ck2 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod motif mpeg ncurses nls pdflib png quicktime sdl spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga java gpm tcpd pam ssl perl python esd imlib oggvorbis opengl mozilla X gtk2 gtk gnome -alsa -kde -qt"