Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219289 - >sys-apps/hal-0.5.7.1-r5 emerge always fails with create_cache.c error
Summary: >sys-apps/hal-0.5.7.1-r5 emerge always fails with create_cache.c error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 18:46 UTC by Marios Andreopoulos
Modified: 2008-05-20 04:59 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,86.45 KB, text/plain)
2008-04-25 18:47 UTC, Marios Andreopoulos
Details
environment (environment,143.14 KB, text/plain)
2008-04-25 18:48 UTC, Marios Andreopoulos
Details
emerge --info (emerge.info,4.81 KB, text/plain)
2008-04-25 18:48 UTC, Marios Andreopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marios Andreopoulos 2008-04-25 18:46:44 UTC
On my x86 Gentoo system I can't emerge any version of HAL newer than 0.5.7.1-r5.
I have tried all the versions available in portage (stable and testing ones) with different USE flags (or none) and yet the problem exists.

I also tried many, many different things like emerge -e world, rebuilding xml related packages, reverting to default portage temp path etc.

I have this problem for months now at my x86 machine. I also own an amd64 machine running Gentoo with a very close setup but it hasn΄t this problem.

Reproducible: Always

Steps to Reproduce:
1. USE="whatever combination" emerge =system-apps/hal-whatever-version>0.5.7.1-r5
2.
3.

Actual Results:  
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LOCALSTATEDIR=\""/var/lib"\" -DPACKAGE_SCRIPT_DIR=\""/usr/lib/hal/scripts"\" -DHALD_SOCKET_DIR=\""/var/run/hald"\" -DHALD_PID_FILE=\""/var/run/hald.pid"\" -DPCI_IDS_DIR=\""/usr/share/misc"\" -DUSB_IDS_DIR=\""/usr/share/misc"\" -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include      -march=pentium4 -O2 -rdynamic -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT hald_marshal.o -MD -MP -MF .deps/hald_marshal.Tpo -c -o hald_marshal.o hald_marshal.c
create_cache.c: In function ‘start’:
create_cache.c:330: warning: implicit declaration of function ‘XML_StopParser’
create_cache.c:330: warning: nested extern declaration of ‘XML_StopParser’
create_cache.c: In function ‘rules_add_fdi_file’:
create_cache.c:467: error: ‘XML_ERROR_ABORTED’ undeclared (first use in this function)
create_cache.c:467: error: (Each undeclared identifier is reported only once
create_cache.c:467: error: for each function it appears in.)
make[4]: *** [create_cache.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/hald_marshal.Tpo .deps/hald_marshal.Po
make[4]: Leaving directory `/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/work/hal-0.5.9.1/hald'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/work/hal-0.5.9.1/hald'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/work/hal-0.5.9.1/hald'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/work/hal-0.5.9.1'
make: *** [all] Error 2
 *
 * ERROR: sys-apps/hal-0.5.9.1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3655:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/Mariospure/emergeTemp/portage/sys-apps/hal-0.5.9.1-r3/temp/environment'.


Expected Results:  
>>> Original instance of package unmerged safely.
>>> sys-apps/hal-0.5.9.1-r3 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * GNU info directory index is up-to-date.
Comment 1 Marios Andreopoulos 2008-04-25 18:47:38 UTC
Created attachment 150965 [details]
build.log
Comment 2 Marios Andreopoulos 2008-04-25 18:48:21 UTC
Created attachment 150966 [details]
environment
Comment 3 Marios Andreopoulos 2008-04-25 18:48:49 UTC
Created attachment 150968 [details]
emerge --info
Comment 4 Saleem Abdulrasool (RETIRED) gentoo-dev 2008-04-27 20:21:27 UTC
Can you try rebuilidng expat and then building hal?
Comment 5 Marios Andreopoulos 2008-04-27 21:12:46 UTC
(In reply to comment #4)
> Can you try rebuilidng expat and then building hal?
> 

Of course! Here is what I just did:
emerge -1 expat
revdep-rebuild -X --library libexpat.so.0
emerge hal

Unfortunately the problem remains. I had tried the same thing before with both expat 2.0.0 and 1.95.8.

I also made a thread some time ago at Gentoo forums. Perhaps it will help:
http://forums.gentoo.org/viewtopic-t-571108-start-0-postdays-0-postorder-asc-highlight-.html
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-04-27 23:56:03 UTC
I answered a similar issue to this one on the HAL mailing list a few months back. Basically you've got an old old expat that's getting linked in. I believe it was expat 1.95.6 that added XML_StopParser along with XML_ERROR_ABORTED. Find it.. and remove it.
Comment 7 Marios Andreopoulos 2008-04-28 06:56:42 UTC
(In reply to comment #6)
> I answered a similar issue to this one on the HAL mailing list a few months
> back. Basically you've got an old old expat that's getting linked in. I believe
> it was expat 1.95.6 that added XML_StopParser along with XML_ERROR_ABORTED.
> Find it.. and remove it.
> 

Bingo! Problem solved! Thanx so much!
I did a:
locate expat|grep -E "/usr|/opt"

Among the list of results were these entries which seemed interesting:
/usr/local/include/expat.h
/usr/local/lib/libexpat.so.0
/usr/local/lib/libexpat.a
/usr/local/lib/libexpat.so.0.5.0
/usr/local/lib/libexpat.la

An "equery b" didn't find the package they belong to, so I deleted them and hal got merged without problem!

Thanx again!

Saleem Abdulrasool you can mark this bug as solved! Thanks for your time and effort on Gentoo Linux!