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.
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.
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
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.
Please test version 2.4.25 and report success and failure, whatever you experience.
No more traffic. closing.
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.