Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17864

Summary: libwww failes to upgrade properly when attempting to upgrade from 5.4.0 to 5.4.0-r1
Product: Gentoo Linux Reporter: Matt Tonks <draxon>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Tonks 2003-03-20 05:28:08 UTC
I was attempting to upgrade to PHP-4.3.1 during which, emerge attempts to 
upgrade libwww to meet PHP's dependencies and libwww fails to emerge 
properly.  Ending with :

!!! ERROR: net-libs/libwww-5.4.0-r1 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! (no error message)

Please note: AFAIK this is not a result of the mysql >= 4 problem with 
libwww..  I've tried setting -mysql in my use flags with the same result, not 
to mention I don't even have mysql4 installed..


Reproducible: Always
Steps to Reproduce:
1.emerge -u libwww or emerge -u php
2.
3.

Actual Results:  
In file included from HTDigest.h:42,
                 from HTDigest.c:24:
/usr/local/include/md5.h:27: parse error before `UINT4'
/usr/local/include/md5.h:27: warning: no semicolon at end of struct or union
/usr/local/include/md5.h:28: warning: data definition has no type or storage 
class
/usr/local/include/md5.h:30: parse error before `}'
/usr/local/include/md5.h:30: warning: data definition has no type or storage 
class
/usr/local/include/md5.h:32: parse error before `PROTO_LIST'
/usr/local/include/md5.h:33: parse error before `PROTO_LIST'
/usr/local/include/md5.h:35: parse error before `PROTO_LIST'
/usr/local/include/md5.h:37: parse error before `PROTO_LIST'
In file included from HTDigest.c:24:
HTDigest.h:63: parse error before `MD5_CTX'
HTDigest.h:63: warning: no semicolon at end of struct or union
HTDigest.h:63: warning: no semicolon at end of struct or union
HTDigest.h:64: warning: type defaults to `int' in declaration of `context'
HTDigest.h:64: warning: data definition has no type or storage class
HTDigest.h:65: parse error before `}'
HTDigest.h:65: warning: type defaults to `int' in declaration of 
`HTDigestContext'
HTDigest.h:65: warning: data definition has no type or storage class
HTDigest.h:72: parse error before `*'
HTDigest.h:73: parse error before `*'
HTDigest.h:74: parse error before `HTDigestContext'
HTDigest.c:26: parse error before `*'
HTDigest.c: In function `HTDigest_init':
HTDigest.c:28: invalid type argument of `->'
HTDigest.c:28: `digesttype' undeclared (first use in this function)
HTDigest.c:28: (Each undeclared identifier is reported only once
HTDigest.c:28: for each function it appears in.)
HTDigest.c:32: warning: implicit declaration of function `MD5Init'
HTDigest.c:32: invalid type argument of `->'
HTDigest.c:32: warning: unreachable code at beginning of switch statement
HTDigest.c: At top level:
HTDigest.c:41: parse error before `*'
HTDigest.c: In function `HTDigest_update':
HTDigest.c:44: invalid type argument of `->'
HTDigest.c:46: warning: implicit declaration of function `MD5Update'
HTDigest.c:46: invalid type argument of `->'
HTDigest.c:46: `input' undeclared (first use in this function)
HTDigest.c:47: `inputLen' undeclared (first use in this function)
HTDigest.c:46: warning: unreachable code at beginning of switch statement
HTDigest.c: At top level:
HTDigest.c:58: parse error before `HTDigestContext'
HTDigest.c: In function `HTDigest_final':
HTDigest.c:61: invalid type argument of `->'
HTDigest.c:63: warning: implicit declaration of function `MD5Final'
HTDigest.c:63: `digest' undeclared (first use in this function)
HTDigest.c:63: invalid type argument of `->'
HTDigest.c:63: warning: unreachable code at beginning of switch statement
make[4]: *** [HTDigest.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r1/work/w3c-libwww-
5.4.0/Library/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r1/work/w3c-libwww-
5.4.0/Library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r1/work/w3c-libwww-
5.4.0'
make: *** [all-recursive-am] Error 2
 
!!! ERROR: net-libs/libwww-5.4.0-r1 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! (no error message)


Expected Results:  
no error.. 

Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7)
=================================================================
System uname: 2.4.18-xfs i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/conf
ig /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode imlib jpeg libg++ mikmod mmx 
motif mpeg ncurses oggvorbis pdflib quicktime sdl spell svga truetype xml2 
xmms xv berkdb gdbm gif gpm java libwww mysql nls opengl pam perl png python 
qt readline slang ssl tcpd tiff -X -kde -gtk -gnome -alsa"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-20 05:39:49 UTC
it seems to me, that you have installed something which is blocking this package's compilation.  and that something which you have installed did not come from portage.

notice that the point of failure is /usr/local/lib/md5.h

the key is the local -- portage does not touch /usr/local at all.
Comment 2 Matt Tonks 2003-03-20 17:33:57 UTC
I can't think of anything I've installed which would have put /usr/local/include/md5.h onto my system, but I moved md5.h from that directory, and libwww successfully compiled.  Thanks for the help, and sorry for the false alarm.