codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

make is using the incorrect directory when looking for /usr/lib #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When cross compiling libproxy for sh4 and specifying the directory where
the library files for sh4 are located it ignores this and searches in the
default /usr/lib. How can this be corrected?

What steps will reproduce the problem?
1. Configure for cross compile
$ ./configure --host=sh4-linux --build=sh4 \
--prefix=/opt/STM/STLinux-2.3/devkit/sh4/target/usr/local

2. Once completed 
$make

3. There will be an error when it first tries to find files in the wrong
directory and then finds the incorrect files also in the wrong directory

What is the expected output? What do you see instead?
When libproxy is being compiled it should use the libraries in
/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib
which have been cross compiled for sh4 however it tries to use the libraries in
/usr/lib
It then fails because the libraries are not of the format sh4 in that directory

What version of the product are you using? On what operating system?
This happens on both libproxy-0.2.3 and libproxy-0.3.0

Please provide any additional information below.

from terminal:
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.1/../../../../sh4-linux/bi
n/ld:
skipping incompatible /usr/lib/libXmu.so when searching for -lXmu
/usr/lib/libXt.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [gnome.la] Error 1
make[3]: Leaving directory
`/root/workspace/20091117_00__milestone_mheg_internal_baseline_2.28/mcs401/flash
lite/libproxy-0.2.3/src/plugins'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/workspace/20091117_00__milestone_mheg_internal_baseline_2.28/mcs401/flash
lite/libproxy-0.2.3/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/workspace/20091117_00__milestone_mheg_internal_baseline_2.28/mcs401/flash
lite/libproxy-0.2.3/src'
make: *** [all-recursive] Error 1
[root@localhost libproxy-0.2.3]# 

Original issue reported on code.google.com by tcr...@gmail.com on 3 Dec 2009 at 1:49

GoogleCodeExporter commented 9 years ago
Trunk now uses cmake for builds.  Please test with this configuration.

Original comment by npmccallum@gmail.com on 22 Jan 2010 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by npmccallum@gmail.com on 22 Jan 2010 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by npmccallum@gmail.com on 17 Feb 2010 at 1:59