Bug 523 - pciutiles can't find libz
Summary: pciutiles can't find libz
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: Thomas Petazzoni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 17:28 UTC by Daniele Salvatore Albano
Modified: 2009-08-04 14:39 UTC (History)
1 user (show)

See Also:
Host: i686
Target: i686
Build: i686


Attachments
My buildroot config (15.65 KB, text/plain)
2009-08-01 17:30 UTC, Daniele Salvatore Albano
Details
Patch to fix the issue (1.57 KB, patch)
2009-08-01 22:39 UTC, Thomas Petazzoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Salvatore Albano 2009-08-01 17:28:41 UTC
Hi,

i was trying to compile pciutiles having zlib but it fails because can't find lz!

Probably a path mismatch, but i've done some tests without success. Zlib are there and works correctly, openssl compiles successfully!

Here there is the output
make[2]: Leaving directory `/home/daniele/Development/OPBXA/buildroot-git/build_i686/pciutils-3.0.1/lib'
/home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc -O3 -pipe -O3  --sysroot /home/daniele/Development/OPBXA/buildroot-git/build_i686/staging_dir/ -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o lspci.o lspci.c
/home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc -O3 -pipe -O3  --sysroot /home/daniele/Development/OPBXA/buildroot-git/build_i686/staging_dir/ -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o common.o common.c
/home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc   lspci.o common.o lib/libpci.a  -lz -lresolv -o lspci
/home/daniele/Development/OPBXA/targets/i686-opbxa-linux-gnu/bin/../lib/gcc/i686-opbxa-linux-gnu/4.3.3/../../../../i686-opbxa-linux-gnu/bin/ld: cannot find -lz
Comment 1 Daniele Salvatore Albano 2009-08-01 17:30:50 UTC
Created attachment 539 [details]
My buildroot config
Comment 2 Bernhard Reutner-Fischer 2009-08-01 17:41:27 UTC
(In reply to comment #0)
> Hi,
> 
> i was trying to compile pciutiles having zlib but it fails because can't find
> lz!
> 
> Probably a path mismatch, but i've done some tests without success. Zlib are
> there and works correctly, openssl compiles successfully!
> 
> Here there is the output
> make[2]: Leaving directory
> `/home/daniele/Development/OPBXA/buildroot-git/build_i686/pciutils-3.0.1/lib'
> /home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc
> -O3 -pipe -O3  --sysroot
> /home/daniele/Development/OPBXA/buildroot-git/build_i686/staging_dir/ -Wall -W
> -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o lspci.o
> lspci.c
> /home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc
> -O3 -pipe -O3  --sysroot
> /home/daniele/Development/OPBXA/buildroot-git/build_i686/staging_dir/ -Wall -W
> -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o common.o
> common.c
> /home/daniele/Development/OPBXA/buildroot-git/../targets/i686-opbxa-linux-gnu//bin/i686-opbxa-linux-gnu-gcc
>   lspci.o common.o lib/libpci.a  -lz -lresolv -o lspci
> /home/daniele/Development/OPBXA/targets/i686-opbxa-linux-gnu/bin/../lib/gcc/i686-opbxa-linux-gnu/4.3.3/../../../../i686-opbxa-linux-gnu/bin/ld:
> cannot find -lz
> 

broken toolchain and/or toolchain setup.
What does
$ grep TOOLCHAIN .config
say?
Comment 3 Bernhard Reutner-Fischer 2009-08-01 17:42:54 UTC
(In reply to comment #2)

> broken toolchain and/or toolchain setup.
> What does
> $ grep TOOLCHAIN .config
> say?
> 
nm, you attached it, sorry.
BR2_TOOLCHAIN_EXTERNAL=y

Just use the internal toolchain.
Comment 4 Thomas Petazzoni 2009-08-01 22:00:09 UTC
Why do you say « Just use internal toolchain » ? External toolchains are now supposed to be supported. It's not because you don't personaly care about external toolchain support that other don't. And I do care, for example.

Daniele, thanks for the report, I'll have a look at it.
Comment 5 Thomas Petazzoni 2009-08-01 22:39:26 UTC
Created attachment 541 [details]
Patch to fix the issue

The patch that fixes the issue. I've just sent a pull request for it.