[LinuxBIOS] Can't compile flashrom

Russell Whitaker russ at ashlandhome.net
Wed Nov 28 05:23:07 CET 2007

On Wed, 28 Nov 2007, Peter Stuge wrote:

> On Tue, Nov 27, 2007 at 05:19:01PM -0700, Shocky wrote:
>> Thanks, I knew there had to be a command that would do this. This
>> just deepens the mystery further. nm tells me that within
>> /usr/lib/libpci.a access.o defines the external symbol
>> "00000760 T pci_alloc". So if nm can see it, why can't ld see it?
> What if you link with the archive manually:
> ld -o flashrom file1.o file2.o /usr/lib/libpci.a
> (ie don't use -lpci)
I'm a little slow. It took me an hour to find the answer but now that I've
found it, the answer is simple:

It's not libpci.a, it's a missing zlib package. It contains libz and 
libz.so. In the Makefile the flags passed to the linker are " -lpci -lz"


More information about the coreboot mailing list