Issue 74691 - Incorrect SOLARLIB configured for simple gcc builds.
Summary: Incorrect SOLARLIB configured for simple gcc builds.
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 74682
  Show dependency tree
 
Reported: 2007-02-20 09:28 UTC by sparcmoz
Modified: 2013-02-07 22:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2007-02-20 09:28:03 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.
Comment 1 pavel 2007-02-20 18:56:49 UTC
Martin can't solve this - you have to find the solution yourself :-)