<font size="2">Hi Carl<br clear="all"></font><div><div align="left" style="text-align: -webkit-auto;"><font size="2"><br></font></div><div align="left" style="text-align: -webkit-auto;"><font size="2">Thanks for the reply. Stefans suggestion worked for me. Do you still think I should recompile the flashrom utility with the hack that you suggested? </font></div>

<div align="left" style="text-align: -webkit-auto;"><font size="2"><br></font></div><div align="left" style="text-align: -webkit-auto;"><font size="2">With regards</font></div><div align="left"><font size="2" face="Arial"><br>

</font></div><div align="left"><font size="2" face="Arial">Rohit Vijapure</font></div>
<div align="left"><font size="2" face="Arial">Motorola Mobility.</font></div>
<div align="left"><font size="2" face="Arial">2450 Walsh Ave</font></div>
<div align="left"><font size="2" face="Arial">Santa Clara, CA 95051</font></div>
<div align="left"><font size="2" face="Arial">Ph: - 408 235 5720</font></div><br>
<br><br><div class="gmail_quote">On Sun, Sep 11, 2011 at 5:06 PM, Carl-Daniel Hailfinger <span dir="ltr"><<a href="mailto:c-d.hailfinger.devel.2006@gmx.net">c-d.hailfinger.devel.2006@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
thanks for your report. I'll focus on the compilation issues you found.<br>
Stefan Tauner already answered the erase related question.<br>
<br>
Am 09.09.2011 22:10 schrieb Rohit Vijapure:<br>
<div class="im">> I am trying to mass update the BIOS on MB899 Intel ® CoreTM 2 Duo/CoreTM<br>
> Duo/ Solo 945GM Mini-ITX Motherboard. I did compile the flashrom by<br>
> following two modifications as I was getting errors for the global<br>
> declaration .<br>
><br>
> *Compilation errors*<br>
> programmer.h:567: warning: declaration of 'programmer' shadows a global<br>
> declaration<br>
<br>
</div>gcc bug. It complains about the parameter name in a function declaration<br>
in programmer.h:<br>
void register_spi_programmer(const struct spi_programmer *programmer);<br>
Will add a workaround (rename programmer to pgm here).<br>
<div class="im"><br>
<br>
> board_enable.c: In function 'nvidia_mcp_gpio_set':<br>
> board_enable.c:892: error: too few arguments to function 'pci_get_dev'<br>
><br>
</div>> *2. board_enable.c*<br>
<div class="im">>     dev = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, 1);<br>
> /*    dev = pci_get_dev(pacc, dev->bus, dev->dev, 1);*/<br>
<br>
</div>We explicitly check if we need to use the variant with or without the<br>
domain parameter. This check for PCI_LIB_VERSION >= 0x020200 should work<br>
fine.<br>
<div class="im"><br>
<br>
> [root@ME2000 /tmp]$ flashrom -w he76.052008<br>
> flashrom v0.9.4-r1395 on Linux 2.6.18.6-2g2g (i686), built with libpci<br>
> 2.1.99-test8, GCC 4.0.2 20051125 (Red Hat 4.0.2-8), little endian<br>
<br>
</div>And here's the source of the compilation problem: Your distribution<br>
ships a beta version of libpci/pciutils which uses the interface of<br>
libpci 2.2 but without the matching version definition. We could hack<br>
around that with an additional check #if defined(PCI_CAP_ID_HT), but<br>
that matches only 2.1.99-test6 and above which would fix your case but<br>
leave 2.1.99-test3 to 2.1.99-test5 unfixed. It's the best possible<br>
solution, though.<br>
<br>
Apparently Red Hat had forgotten the gcc 2.96 disaster and tried to<br>
repeat it with a beta libpci. Oh well.<br>
<br>
Regards,<br>
Carl-Daniel<br>
<font color="#888888"><br>
--<br>
<a href="http://www.hailfinger.org/" target="_blank">http://www.hailfinger.org/</a><br>
<br>
</font></blockquote></div><br></div>