Bug 28548 - wvstreams-3.70-r2 fails to compile under gcc 3.3.1, openssl 0.9.7b
Bug#: 28548 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: vapier@gentoo.org Reported By: mario_vazq@hotmail.com
Component: Library
URL: 
Summary: wvstreams-3.70-r2 fails to compile under gcc 3.3.1, openssl 0.9.7b
Keywords:  
Status Whiteboard: 
Opened: 2003-09-12 13:30 0000
Description:   Opened: 2003-09-12 13:30 0000
When I try to emerge wvstreams-3.70-r2 under my system (gcc 3.3.1, openssl
0.9.7b) got this error. 

wvcrypto.cc:173: error: invalid conversion from `unsigned char**' to `const
   unsigned char**'
make[2]: *** [wvcrypto.o] Error 1
make[1]: *** [crypto] Error 2
make: *** [src] Error 2
 
!!! ERROR: net-libs/wvstreams-3.70-r2 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)


Check the current RawHide libwvstreams source rpm and found those two patches,
that when applied, allow this program to be compiled.  
But warning, they cannot be applied if the gentoo patch is applied first. 
Apparently is already included on them.



Reproducible: Always
Steps to Reproduce:
1. Undear a gcc 3.3.1 (problably gcc 3.3 also) emerge wvstreams

Actual Results:  
The mentioned error

Expected Results:  
the package should merge without problem

Linux dhampir 2.4.22-ac1 #4 Sun Sep 7 08:08:10 Local time zone must be set--see
zic manua i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux

 gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: /var/tmp/portage/gcc-3.3.1-r1/work/gcc-3.3.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix
--enable-long-long --disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib
--with-x --disable-multilib
Thread model: posix
gcc version 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)

USE="acpi autofs breakme dga dvd ethereal fbcon flash gtk2 gtkhtml ipv6 \
     pcmcia pnp radeon sse tiff type1 usb videos wmf -apm -arts \
     -foomaticdb -kde -libg++ -libwww -qt -gdbm -berkdb -readline"

CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe
-fomit-frame-pointer

I will post the two patches from redhat source rpms that fix this issue in the
next post

------- Comment #1 From Mario Vazquez 2003-09-12 13:31:53 0000 -------
Created an attachment (id=17591) [details]
gcc 3.x compile fix

------- Comment #2 From Mario Vazquez 2003-09-12 15:06:24 0000 -------
Created an attachment (id=17597) [details]
openssl 0.9.7 patch

from rawhide srpms

------- Comment #3 From Mr. Bones. 2003-09-12 15:06:41 0000 -------
*** Bug 28549 has been marked as a duplicate of this bug. ***

------- Comment #4 From Mr. Bones. 2003-09-12 15:07:09 0000 -------
*** Bug 28556 has been marked as a duplicate of this bug. ***

------- Comment #5 From Mario Vazquez 2003-09-12 15:20:09 0000 -------
Sorry for dups, but the page do not show me that I post the patches, do a
refresh and then it resend the info as new bug entry

------- Comment #6 From SpanKY 2003-09-25 20:40:08 0000 -------
added to cvs, thanks for the patches :)