Apache OpenOffice (AOO) Bugzilla – Issue 63095
GCJ build issue: build broken when gcc is configured to use external iconv
Last modified: 2017-05-20 11:29:18 UTC
SRC680_m159+GCC 4.1 build fails at Building project testtools: register component 'cppobj.uno.so' in registry 'uno_services.rdb' succesful! register component 'uriproc.uno.so' in registry 'uno_services.rdb' succesful! register component 'constructors.uno.so' in registry 'uno_services.rdb' succesful! regcomp -register -br ../../unxfbsd.pro/lib/uno_types.rdb -r ../../unxfbsd.pro/lib/uno_services.rdb \ -c javaloader.uno.so -c javavm.uno.so register component 'javaloader.uno.so' in registry '../../unxfbsd.pro/lib/uno_services.rdb' succesful! register component 'javavm.uno.so' in registry '../../unxfbsd.pro/lib/uno_services.rdb' succesful! regcomp -register -br ../../unxfbsd.pro/misc/bridgetest/bootstrap.rdb -r ../../unxfbsd.pro/lib/uno_services.rdb -c \ file:///work/ports/ooo/openoffice.org-2.0-devel/work/testtools/source/bridgetest/../../unxfbsd.pro/class/testComponent.jar \ -env:URE_INTERNAL_JAVA_DIR=file:///work/ports/ooo/openoffice.org-2.0-devel/work/solver/680/unxfbsd.pro/bin /libexec/ld-elf.so.1: /usr/local/lib/libgcj.so.7: Undefined symbol "libiconv_open" dmake: Error code 1, while making '../../unxfbsd.pro/lib/uno_services.rdb' dmake: '../../unxfbsd.pro/lib/uno_services.rdb' removed. '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /work/ports/ooo/openoffice.org-2.0-devel/work/testtools/source/bridgetest dmake: Error code 1, while making 'build_instsetoo_native' '---* *---' *** Error code 255 this is due to gcc 4.1 is configured to use external iconv (/usr/local/lib/libiconv), so libgcj.so.7 contains symbols of libiconv. however libgcj.so.7 doesn't contain the information of iconv, ldd /usr/local/lib/libgcj.so.7 /usr/local/lib/libgcj.so.7: libz.so.3 => /lib/libz.so.3 (0x295f9000) libgcc_s.so.1 => /usr/local/lib/gcc/i386-portbld-freebsd6.0/4.1.1/libgcc_s.so.1 (0x29609000) libc.so.6 => /lib/libc.so.6 (0x28083000) build fails.
Created attachment 34801 [details] A workaround ; just illustralte this problem; not for integration
libgcj.spec /usr/local/lib/gcc/i386-portbld-freebsd6.0/4.1.1/*libgcj*spec # # This spec file is read by gcj when linking. # It is used to specify the standard libraries we need in order # to link with libgcj. # %rename lib liborig *lib: -lgcj -lm -L/usr/local/lib -liconv -R/usr/local/lib -lpthread -lz %(libgcc) %(liborig) *jc1: -fhash-synchronization -fuse-divide-subroutine -fcheck-references -fuse-boehm-gc -fkeep-inline-functions so there are another problem : this should be fixed in GCJ or in OOo?
reassign to maho
Reset assigne to the default "issues@openoffice.apache.org".