Re: amaya for fedora 8?

On 2008-01-08, 16:33 GMT, Regis Boudin wrote:
> --------
> + make -j3 all
> --------
> I would avoid that. Someone at Debian tried to rebuild the whole archive
> with -j2, it appears that Amaya doesn't cope well with it. :(

That's Fedora/Red Hat default -- we just seem to trust in the 
quality of our upstream authors too much ;-). Could fix, but 
I was able to build amaya with it, so I will keep it present for 
now.

> You might want to install the raptor development stuff. Though 
> it should
> have disabled annotations support, so I believe your problem right now is
> not related.

Yes, I have found that later myself. Stupid mistake.

> See the private mail I sent you earlier for details, but you 
> got it pretty
> much right.

As a former Debian user, I can still read debian/rules pretty 
well ;-).

> No idea about it, doesn't append for me.

Somehow, the problem evaporated by itself. No idea.

>> 2) When bin/amaya_bin is being linked (line 2919 and its
>>    surroundings) linking crashes (version of system libwww is
>>    5.4.1):
>>
>>    query.o: In function `AHTProfile_newAmaya':
>>    /home/matej/redhat/BUILD/Amaya/WX/amaya/../../amaya/query.c:2430:
>>    undefi ned reference to `HTTransportInit()'
>>    /home/matej/redhat/BUILD/Amaya/WX/amaya/../../amaya/query.c:2469:
>>    undefined reference to `HTTransferEncoderInit(_HTList*)'
>>    /home/matej/redhat/BUILD/Amaya/WX/amaya/../../amaya/query.c:2487:
>>    undefined reference to `HTMIMEInit()'
>>    collect2: ld returned 1 exit status
>>
>>    Apparently problem may be related to the fact that query.c
>>    (which is C++ source file, not plain C one as would extension
>>    suggest) somehow mangles need for C-library v. C++-library.
>>
>> Any ideas, what's going on, please?
>
> Not sure. These symbols are supposed to be in libwwwapp, which is
> correctly listed. For the record, I use a shared 5.4.0. Also, which
> version of gcc/g++ do you use ?

gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-36)
Copyright (C) 2006 Free Software Foundation, Inc.

I was trying to understand query.c and I have to admit that 
although I am not a programmer, I didn't like what I saw. Note, 
that it doesn't ask for HTTransportInit, which is really in 
libwwwapp, but for the C++ object HTTransportInit() (and later 
HTTransportInit(_HTList*) -- when you saw last asterisk in 
C symbol?). It seems to me that the author of query.c (and 
related files) got somehow really confused in dealing with 
C symbols inside of C++ files and the result is mess -- it seems 
to me that the particular symbols are generated twice inline and 
the system one in libwwwapp is never used anyway. After all this 
struggle I have created this brutal patch which made Amaya to 
compile:

diff -up Amaya/amaya/query.c.MC-build Amaya/amaya/query.c
diff -up Amaya/amaya/AHTInit.c.MC-build Amaya/amaya/AHTInit.c
--- Amaya/amaya/AHTInit.c.MC-build 2008-01-08 19:34:12.000000000 +0100
+++ Amaya/amaya/AHTInit.c 2008-01-08 19:34:25.000000000 +0100
@@ -16,7 +16,7 @@
 #include "WWWUtil.h"
 #include "WWWCore.h"
 
-#include "HTInit.h"             /* Implemented here */
+#include "AHTInit.h"             /* Implemented here */
 
 /* ------------------------------------------------------------------------- */
 
But I am afraid that means that the internal libwww is used after 
all, right? I was able to compile Amaya with it -- whoever 
wanted for the Fedora Amaya, it is on 
http://mcepl.fedorapeople.org/rpms/amaya-9.55.2-1.fc8.i386.rpm 
but it doesn't work wek well -- the problems with display of the 
webpages is constant.

>> Now, to be exact about answering your questions:

Irene, I swear, we haven't talked about that before and only
after I wrote my previous message I found that Regis had some
flamewars with you about this already ;-). It seems to me that
just Amaya is really not nice towards Linux distribution
packagers.

>>    and (I guess)
>>    one of the reasons why many distros (aside from the ones
>>    managed by maniacs like Debian Developers -- that's meant as
>>    a praise)
>
> I'll take that as a compliment, then. :)

Yes, s/praise/compliment/ -- my English betrayed me ;-).

Best,

Matěj

Received on Wednesday, 9 January 2008 08:46:53 UTC