[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcjwebplugin-user] building the CVS code: compilation puzzles
From: |
Joseph E. Sacco, Ph.D. |
Subject: |
[Gcjwebplugin-user] building the CVS code: compilation puzzles |
Date: |
Fri, 25 Feb 2005 20:35:27 -0500 |
I have two versions of gcc on my system:
* gcc-3.3.3 [installed under /usr]
* gcc-3.4.3 [installed under /usr/local/gcc/3.4.3]
This is always a dangerous situation because you can get easily get into
mischief.
case I:
--------
export gccpath=/usr/local/gcc/3.4.3
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc \
--with-java=$gccpath/bin/gij \
--with-javac="$gccpath/bin/gcj -C" \
--with-javah=$gccpath/bin/gcjh \
--with-jar=$gccpath/bin/jar
configure complains that it cannot find libgcj.pc, but that does not
appear to be a problem:
- The C++ code compiles using the gcc-3.3.3 compiler.
- The java code compiles using the gcc-3.4.3 compiler.
- all tests pass.
case II:
--------
export PATH=/usr/local/gcc-3.4.3/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/gcc-3.4.3/lib
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc
configure again complains that it cannot find libgcj.pc, but that does
not appear to be a problem:
- Everything now compiles using the gcc-3.4.3 compilers.
- All tests pass.
case III:
---------
Starting with either case I or case II, specify the package config path:
export PKG_CONFIG_PATH=/usr/local/gcc-3.4.3/lib/pkgconf:/usr/lib/pkgconfig
- configure no longer complains about not being able to find libgcj.pc
- Everything builds
- All tests fail.
Thoughts???
-Joseph
--
joseph_sacco[at]comcast[dot]net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gcjwebplugin-user] building the CVS code: compilation puzzles,
Joseph E. Sacco, Ph.D. <=