View previous topic :: View next topic |
Author |
Message |
Zoltan Guru
Joined: 27 Aug 2003 Posts: 394 Location: Moscow, Russia
|
Posted: Tue Nov 04, 2003 5:48 pm Post subject: (Solved) quanta-3.2.0_beta1 fails, bug in libxml2-2.6.1? |
|
|
I cannot build quanta-3.2.0_beta1 with the following compilation error:
Code: | /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/libxml2 -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -DKOMMANDER -DDESIGNER -DQT_NO_SQL -DHAVE_KDE -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -fomit-frame-pointer -march=pentium3 -mcpu=pentium3 -mmmx -mfpmath=sse,387 -msse -ffast-math -fno-strength-reduce -fprefetch-loop-arrays -fforce-addr -falign-functions=4 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o dtdparser.lo `test -f 'dtdparser.cpp' || echo './'`dtdparser.cpp
In file included from /usr/include/libxml2/libxml/hash.h:22,
from dtdparser.cpp:35:
/usr/include/libxml2/libxml/parser.h:263: error: 'xmlHashTablePtr' is used as a
type, but is not defined as a type.
/usr/include/libxml2/libxml/parser.h:264: error: 'xmlHashTablePtr' is used as a
type, but is not defined as a type.
make: *** [dtdparser.lo] Error 1
|
It looks like an error in libxml2 include files because hash.h includes parser.h and only later it defines xmlHashTablePtr. File parser.h tries to include hash.h but it doesn't work because of protection against double inclusion in hash.h.
The problem seems to be solved by modifying /var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/quanta/parser/dtdparser.cpp file and commenting out line 35 "#include <libxml/hash.h>". _________________ Light travels faster than sound. That's why some people appear bright before you hear them speak. |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
|
Back to top |
|
|
Zoltan Guru
Joined: 27 Aug 2003 Posts: 394 Location: Moscow, Russia
|
Posted: Tue Nov 04, 2003 6:48 pm Post subject: |
|
|
Confirmed, I have quanta 3.2.0_beta1 working. I've noticed at least one minor bug right at startup but so far didn't find any other. _________________ Light travels faster than sound. That's why some people appear bright before you hear them speak. |
|
Back to top |
|
|
houtworm Guru
Joined: 08 Mar 2003 Posts: 391 Location: Den Haag, Netherlands
|
Posted: Tue Nov 04, 2003 10:03 pm Post subject: Re: (Solved) quanta-3.2.0_beta1 fails, bug in libxml2-2.6.1? |
|
|
Zoltan wrote: | The problem seems to be solved by modifying /var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/quanta/parser/dtdparser.cpp file and commenting out line 35 "#include <libxml/hash.h>". |
but how do I emerge then?
Emerge unpacks the archive and overwrites this dtdparser.cpp so my changes are lost. _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees |
|
Back to top |
|
|
Zoltan Guru
Joined: 27 Aug 2003 Posts: 394 Location: Moscow, Russia
|
Posted: Wed Nov 05, 2003 9:57 am Post subject: |
|
|
You do it manually with ebuild command.
- ebuild /usr/portage/app-editors/quanta/quanta-3.2.0_beta1.ebuild unpack
- Edit file /var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/quanta/parser/dtdparser.cpp
- ebuild /usr/portage/app-editors/quanta/quanta-3.2.0_beta1.ebuild merge
- ebuild /usr/portage/app-editors/quanta/quanta-3.2.0_beta1.ebuild clean
- etcat -v quanta
- emerge -C =app-editors/quanta-<your old version of quanta installed>
_________________ Light travels faster than sound. That's why some people appear bright before you hear them speak. |
|
Back to top |
|
|
boris64 Veteran
Joined: 04 Oct 2003 Posts: 1770 Location: Vechelde/Peine
|
Posted: Wed Nov 05, 2003 5:51 pm Post subject: |
|
|
another possibility:
1.)
2.) after emerge has unpacked sources
-> press [CTRL]+[Z] -> emerge will pause / break
3.) edit file and save changes
4.) get back to your emerge-console
5. enter
6.) voila -> emerge continues using cour changed file _________________ boris64.net 200x / visit my desktop / try these tiny kernel patches |
|
Back to top |
|
|
houtworm Guru
Joined: 08 Mar 2003 Posts: 391 Location: Den Haag, Netherlands
|
Posted: Wed Nov 05, 2003 8:03 pm Post subject: |
|
|
borisdigital wrote: | another possibility:
-> press [CTRL]+[Z] -> emerge will pause / break
3.) edit file and save changes
4.) get back to your emerge-console
5. enter
6.) voila -> emerge continues using cour changed file |
Yeah!! It works! Thank you very much! _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees |
|
Back to top |
|
|
boris64 Veteran
Joined: 04 Oct 2003 Posts: 1770 Location: Vechelde/Peine
|
|
Back to top |
|
|
paul138 Guru
Joined: 09 Aug 2002 Posts: 370 Location: Ottawa, ON
|
Posted: Fri Nov 07, 2003 1:02 am Post subject: |
|
|
That's odd. I do that here and I get this:
Code: | Good - your configure finished. Start make now
make all-recursive
make[1]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
Making all in .
make[3]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
Making all in quanta
make[3]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc/quanta'
/usr/kde/3.1/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
introduction.docbook:1: parser error : Missing encoding in text declaration
<?xml version="1.0" ?>
^
index.docbook:160: error: Failure to process entity introduction
&introduction;
^
index.docbook:160: parser error : Entity 'introduction' not defined
&introduction;
^
make[3]: *** [index.cache.bz2] Error 1
make[3]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc/quanta'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93'
make: *** [all] Error 2
!!! ERROR: app-editors/quanta-3.2.0_beta1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make |
So many it's not solved after all? _________________ Talk is cheap because supply always exceeds demand. |
|
Back to top |
|
|
friday n00b
Joined: 07 Feb 2003 Posts: 28 Location: Germany
|
Posted: Sat Nov 08, 2003 3:49 pm Post subject: |
|
|
I get exactly the same error as paul183.
But I think it is not related to the error mentioned above.
However does somebody know how to solve this one?
TIA |
|
Back to top |
|
|
paul138 Guru
Joined: 09 Aug 2002 Posts: 370 Location: Ottawa, ON
|
Posted: Mon Nov 10, 2003 3:41 pm Post subject: |
|
|
I think it may be something to do with docbook xml. I'm going to play around with it tonight when I get home. Maybe there's a missing dep.
[edit]
Seems like someone is on it
https://bugs.gentoo.org/show_bug.cgi?id=33013 _________________ Talk is cheap because supply always exceeds demand. |
|
Back to top |
|
|
Dark_Hunter Apprentice
Joined: 28 Mar 2003 Posts: 230 Location: Germany
|
Posted: Tue Nov 11, 2003 11:04 pm Post subject: |
|
|
paul138 wrote: | That's odd. I do that here and I get this:
Code: | Good - your configure finished. Start make now
make all-recursive
make[1]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
Making all in .
make[3]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
Making all in quanta
make[3]: Entering directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc/quanta'
/usr/kde/3.1/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
introduction.docbook:1: parser error : Missing encoding in text declaration
<?xml version="1.0" ?>
^
index.docbook:160: error: Failure to process entity introduction
&introduction;
^
index.docbook:160: parser error : Entity 'introduction' not defined
&introduction;
^
make[3]: *** [index.cache.bz2] Error 1
make[3]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc/quanta'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93'
make: *** [all] Error 2
!!! ERROR: app-editors/quanta-3.2.0_beta1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make |
So many it's not solved after all? |
i've solved it thought a had the world-solution but than i found its also in the current cvs.
you just have to pickup all docbook files in your doc directory in the quanta-source-dir
and change the first line to:
Code: | <?xml version="1.0" encoding="UTF-8"?> |
this solves the problem. |
|
Back to top |
|
|
merkaba n00b
Joined: 10 Jul 2003 Posts: 56
|
Posted: Wed Nov 12, 2003 1:10 am Post subject: |
|
|
excellent!
i've been stuck on this one for nearly a week.
the easiest thing to do for now is to first make sure you have a text replace tool:
see: http://www.laffeycomputer.com/rpl.html for more about rpl.
then continue with:
and after the ">>> Source unpacked." line do:
Code: |
ctrl-z
cd /var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/doc/
rpl -R -x'.docbook' '<?xml version="1.0" ?>' '<?xml version="1.0" encoding="UTF-8"?>' *
cd /var/tmp/portage/quanta-3.2.0_beta1/work/quanta-3.1.93/quanta/parser/
nano -w dtdparser.cpp
cd
fg
|
in dtdparser.cpp you'll need to add '//' to line 35: //#include <libxml/hash.h> as mentioned above.
and you should be compiling in no time.
it's still compiling for me so i don't know if this is the last quanta error i'll have to deal with, but this fix got me past the docbook problem.
plus i learned a new tool (rpl) in the process. |
|
Back to top |
|
|
|