Issue 63095

Summary: GCJ build issue: build broken when gcc is configured to use external iconv
Product: porting Reporter: maho.nakata
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, pavel
Version: 680m156   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
A workaround ; just illustralte this problem; not for integration none

Description maho.nakata 2006-03-13 00:20:30 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.
Comment 1 maho.nakata 2006-03-13 00:24:50 UTC
Created attachment 34801 [details]
A workaround ; just illustralte this problem; not for integration
Comment 2 maho.nakata 2006-03-13 00:28:26 UTC
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?
Comment 3 Martin Hollmichel 2006-08-22 02:18:37 UTC
reassign to maho
Comment 4 Marcus 2017-05-20 11:29:18 UTC
Reset assigne to the default "issues@openoffice.apache.org".