Apache OpenOffice (AOO) Bugzilla – Issue 74691
Incorrect SOLARLIB configured for simple gcc builds.
Last modified: 2013-02-07 22:04:35 UTC
I build my own gcc4.3 using sources from gcc.gnu.org and ecj.jar and --prefix=/usr/local/4.3 After configuring OOo the SOLARLIB paths have "jre" directories that do not exist in the installed gcc. MY_CONFIGURE_FLAGS="\ --with-java=gij \ --with-jdk-home=/usr/local/4.3 \ --with-ant-home=/usr/local/apache-ant-1.7.0RC1 \ --with-package-format=rpm \ --with-alloc=system \ --enable-crashdump=STATIC \ --enable-symbols=SMALL \ --with-stlport4=/home/jim/stlhome" ccache /usr/local/4.3/bin/g++ -m32 -z combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared -L../../unxlngs.pro/lib -L../lib -L/home/jim/vanilla/solenv/unxlngs/lib -L/home/jim/vanilla/solver/680/unxlngs.pro/lib -L/home/jim/vanilla/solenv/unxlngs/lib -L/usr/local/4.3/lib -L/usr/local/4.3/jre/lib/sparc -L/usr/local/4.3/jre/lib/sparc/client -L/usr/local/4.3/jre/lib/sparc/native_threads -L/usr/lib ../../unxlngs.pro/slo/officebean_version.o -o ../../unxlngs.pro/lib/libofficebean.so ../../unxlngs.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../unxlngs.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -lstdc++ -ldl -lpthread -lm/usr/bin/ld: cannot find -ljawt collect2: ld returned 1 exit status dmake: Error code 1, while making '../../unxlngs.pro/lib/libofficebean.so' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /home/jim/vanilla/bean/native/unix jim@sun:~/vanilla/bean$ find /usr/local/4.3 -name libjawt* /usr/local/4.3/lib/gcj-4.3.0/libjawt.so /usr/local/4.3/lib/gcj-4.3.0/libjawt.la jim@sun:~/vanilla/bean$ ls /usr/local/4.3 bin include info lib libexec man share If I add the path /usr/local/4.3/lib/gcj-4.3.0 on to SOLARLIB then the build proceeds.
Martin can't solve this - you have to find the solution yourself :-)