On Fri, Aug 19, 2011 at 02:24:17PM +0200, Jan Weitzel wrote:
> Hello,
> with ptxdist-2011.08.0 alsa-utils are not compiling.
> 
> target: alsa-utils.prepare
> says
> ...
> configure: error: panel library not found

There are some issues with ncurses in this release. I'm currently working
on a patch to _really_ fix things.

> make: ***
> [/tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/state/alsa-utils.prepare]
>  Error 1
> 
> 
> platform-phyCORE-OMAP4/build-target/alsa-utils-1.0.22/config.log
> ..
> configure:8324: arm-cortexa9-linux-gnueabi-gcc -o conftest -g -O2
> -isystem 
> /tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/include
>  -isystem 
> /tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/usr/include
>  
> -L/tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/lib
>  
> -L/tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/usr/lib
>  -Wl,-rpath-link 
> -Wl,/tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/lib
>  -Wl,-rpath-link 
> -Wl,/tmp/weitzel/OSELAS.BSP-Phytec-phyCORE-OMAP4/platform-phyCORE-OMAP4/sysroot-target/usr/lib
>  -L/usr/lib conftest.c -lncurses -lasound -lm -ldl -lpthread >&5
> /usr/lib/libm.so: file not recognized: File format not recognized
> collect2: ld returned 1 exit status
> ...
> 
> libm.so is located in platform-phyCORE-OMAP4/root/usr/lib/libm.so
> But the hoste one is used. (according to strace)
> 
> How can I fix the rule to find the library?
> Should the libearys from the toolchain be copyed to sysroot-target?

This is just caused by configure getting ncurses from the host system. As a
result "-L/usr/lib" is added which breaks things.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to