On Thu, Apr 21, 2005, Doug Summers wrote:
Doug Summers wrote:
I'm trying to get OpenPKG running on a Solaris 7 machine and can't get past compiling GCC 3.4.3. I have GCC 3.4.3 installed from sunfreeware.com and it had no problems compiling binutils, make, and libiconv. The build process always dies here:
./xgcc -B./ -B/openpkg/sparc-sun-solaris2.7/bin/ -isystem /openpkg/sparc-sun-solaris2.7/include -isystem /openpkg/sparc-sun-solaris2.7/sys-include -L/openpkg/RPM/TMP/gcc-3.4.3/obj/gcc/../ld -dumpspecs > tmp-specs ld.so.1: ./xgcc: fatal: libiconv.so.2: open failed: No such file or directory /openpkg/lib/openpkg/bash: line 1: 2836 Killed ./xgcc -B./ -B/openpkg/sparc-sun-solaris2.7/bin/ -isystem /openpkg/sparc-sun-solaris2.7/include -isystem /openpkg/sparc-sun-solaris2.7/sys-include -L/openpkg/RPM/TMP/gcc-3.4.3/obj/gcc/../ld -dumpspecs >tmp-specs make[2]: *** [specs] Error 137 make[1]: *** [stage1_build] Error 2 make: *** [bootstrap-lean] Error 2 error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.25164 (%build)
Now - libiconv is installed under OpenPKG as well as /usr/local/lib (from sunfreeware). What am I missing?
[...]
I found that adding LD_LIBRARY_PATH=/usr/local/lib will allow xgcc to run, but this only works from the command line. Once I run the compile command it seems to forget about this setting.
Well, GCC actually doesn't require libiconv AFAIK, so I see no real reason why gcc links against this at all. Unfortunately I've no Solaris 7 available, so I cannot repeat this, but you have to find out _why_ it actually links against libiconv...
Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com
______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org
What I can't figure out is why xgcc is using -B/openpkg/sparc-sun-solaris2.7/bin/ instead of -B/usr/local/sparc-sun-solaris2.7/bin/.
Doug ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org