Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5198 - libxml2 not buildable
Summary: libxml2 not buildable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-18 14:12 UTC by Alan Krause
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Krause 2002-07-18 14:12:04 UTC
Well, after setting up the base system yesterday, I decided to put my PC to good
use while I was gone and install kde. So, at then end of the day I entered
"emerge kde/kde-base" which then began to install X and all the other wonderful
stuff KDE needs.

I arrive at work today, and note that the installation process has stopped due
to an error encountered while trying to emerge libxml2 ( v 2.4.23 ). I tried to
emerge libxml2-2.4.22, but get the same results.

The error appears to occur when the python bindings are being generated, with
the specific error message of:

mv -f libs/libxml.lo libxml.lo
mv: cannot stat `libs/libxml.lo': no such file or directory
make[3]: *** [libxml.lo] Error 1

Which then causes the make process to cascade out and exit.
Comment 1 Alan Krause 2002-07-18 16:36:27 UTC
 After installing cups, and gimp-print-cups ( which depends upon libxml2 ), it
finally compiled correctly. Perhaps this will help to shed a little light on the
matter?

 Unfortunately, now libxslt is doing the same thing.

mv -f libs/libxslt.lo libxslt.lo
mv: cannot stat `libs/libxslt.lo': no such file or directory
make[3]: *** [libxslt.lo] Error 1

 Something I did notice is that this above move command is executed TWICE, which
would explain the error.
Comment 2 Rigo 2002-09-06 02:28:30 UTC
Whatever I try, I keep getting this:
chmod 644
/var/tmp/portage/libxml2-2.4.24/image//usr/lib/python2.2/site-packages/libxml2mod.a
libtool: install: warning: remember to run `libtool --finish
/usr/lib/python2.2/site-packages'
/bin/sh ../mkinstalldirs /usr/lib/python2.2/site-packages
/bin/install -c -m 0644 libxml2.py /usr/lib/python2.2/site-packages
/bin/install: cannot remove `/usr/lib/python2.2/site-packages/libxml2.py':
Permission denied
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24/python'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24/python'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24/python'
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 9, Exitcode 2
!!! (no error message)

lappy libxml2 # libtool --finish /usr/lib/python2.2/site-packages
PATH="$PATH:/sbin" ldconfig -n /usr/lib/python2.2/site-packages
Comment 3 Andreas Renner 2002-10-04 16:40:23 UTC
i got exactly the same problem with 2.4.24, so i looked a bit closer. the 
problems are in nanohttp.c:807 and nanoftp:1247 where a variable is declared as 
SOCKLEN_T which should be an unsigned int, but obviously isn't.

my workaround:
emerge libxml2
stop build (after the configure script) with ctrl+z, look for the nanohttp.c 
file (file | grep nanohttp.c), open it with you favourite editor, find line 807 
and change "SOCKLEN_T" to "unsigned int", save and exit. do the same in 
nanoftp.c and resume the build (fg). this worked fine for me.
Comment 4 Markus Bertheau (RETIRED) gentoo-dev 2002-10-23 14:37:45 UTC
Please test version 2.4.25 and report success and failure, whatever you experience.
Comment 5 foser (RETIRED) gentoo-dev 2002-11-02 11:19:07 UTC
No more traffic. closing.
Comment 6 Martin Bergtholdt 2003-01-21 10:58:26 UTC
tried to install the latest version of (2.4.28-r1) with the same problem. After 
"emerge libxml2" I waited for configure to finish and stopped with ctrl-z, like
Andreas Renner described. I found that in config.h SOCKETLEN_T was defined (but
without a value), should be unsigned int. I changed config.h and then
compilation was successfull.