2010/2/27 Michael Karcher <span dir="ltr"><<a href="mailto:flashrom@mkarcher.dialup.fu-berlin.de" target="_blank">flashrom@mkarcher.dialup.fu-berlin.de</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Am Freitag, den 26.02.2010, 15:01 +0100 schrieb Carl-Daniel Hailfinger:<br>
<div>> Idwer reported problems with the current libpci check on<br>
><br>
> FreeBSD 8.0-RELEASE i386<br>
</div>As I don't really know what the problem ist, I have to guess here. As I<br>
understand it, linking against -lpci without linking -lz at the same<br>
time yields a linker error on FreeBSD.<br></blockquote><div><br>Correct. I worked around that by adding "-c" to line 258 of Makefile ( <a href="http://www.flashrom.org/trac/flashrom/browser/trunk/Makefile#L258" target="_blank">http://www.flashrom.org/trac/flashrom/browser/trunk/Makefile#L258</a> ); instructions are at <a href="http://flashrom.org/Downloads" target="_blank">http://flashrom.org/Downloads</a> too.<br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
> -     @printf "Checking for libpci... "<br>
> +     @printf "Checking for libpci (method 1)... "<br>
>       @$(shell ( echo "#include <pci/pci.h>";            \<br>
>                  echo "int main(int argc, char **argv)"; \<br>
>                  echo "{ return 0; }"; ) > .test1.c )<br>
> -     @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) .test1.c -o .test1 -lpci $(LIBS) >/dev/null 2>&1 &&     \<br>
> -             echo "found." || ( echo "not found."; echo;                             \<br>
> -             echo "Please install libpci (package pciutils).";                       \<br>
> -             echo "See README for more information."; echo;                          \<br>
> -             rm -f .test1.c .test1; exit 1)<br>
> +     @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) .test1.c -o .test1 $(LIBS) >/dev/null 2>&1 &&   \<br>
> +             echo "found." || ( echo "not found.";           \<br>
</div>This does not include "-lpci" anymore. It should succeed on every system<br>
where the include file pci/pci.h can be found. But that has already been<br>
checked on the previous check. The "--print-file-name" calls thus never<br>
seem to get executed.<br>
<br>
Regards,<br>
<font color="#888888">  Michael Karcher<br>
</font><div><div></div><div><br>
<br>
_______________________________________________<br>
flashrom mailing list<br>
<a href="mailto:flashrom@flashrom.org" target="_blank">flashrom@flashrom.org</a><br>
<a href="http://www.flashrom.org/mailman/listinfo/flashrom" target="_blank">http://www.flashrom.org/mailman/listinfo/flashrom</a><br>
</div></div></blockquote></div><br>