tag 316951 + pending thanks Hi, Brian May wrote: > When compiling on a Ubuntu system with gcc-4.0 4.0_4.0.0ds1-11 ported > >from Debian, I noticed some compile errors. I think some of these are > applicable to Debian, so I am reporting my solutions here in case they > can help others. Please do TEST whether it is applicable to Debian. This is the Debian BTS, not the Ubuntu one. i If it doesn't fail in Debian it's not really a problem for the Debian BTS (I do accept patches of course...). [ Well, in this case the first two are, the third is builder error... See below ] > #1. configure script reported error that it can't find jni.h. I found > this was because jni.h is located under the gcc 4.0 include directory: > > brian@dbase1:/var/cache/pbuilder/result$ dpkg -c libgcj6-dev_4.0.0-11.ivt.1_i386.deb | grep jni.h > -rw-r--r-- root/root 62692 2005-07-04 17:22:24 ./usr/lib/gcc/i486-linux-gnu/4.0.1/include/jni.h > > Meaning it can only be found by gcc-4.0.1. However, debian/rules > was still using 3.4. It uses java-gcj-compats jni.h symlink. It should work on Debian but I did not test it anymnore with m108 since I already am at 114. And you need java-gcj-compat-dev in Build-Depends instead of only java-gcj-compat since java-gcj-compat was split. > #2. Error that libjawt doesn't exist. This is because it was renamed to > libgcjawt in version gcc-4.0 4.0.0ds1-9ubuntu1, which is in the Debian > version. > > Solution: [ snip ] I am not stupid. I know what causes this, especially since I added that patch myself at the time gcc still has libjawt. I even got doko to backport the change. And newer versions have a configure check for this. > #3. Compile error: [ snip ] That's because you use 4.0. I know why I used 3.4 because binfilter didn't get patches to work with 4.0 at that time yet. This is NO FTBFS bug in the official package since you decided to build with a compiler known to not work with 1.9.108-1. > ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Image.cxx, > but no declaration of the class. You need forward declarations. Also already fixed. Regards, Rene
Attachment:
signature.asc
Description: Digital signature