Hmm any ideas?
[root@localhost flashrom]# make make: Warning: File `Makefile' has modification time 1.3e+09 s in the future
Checking for pciutils and zlib... not found.
Please install pciutils-devel and zlib-devel. See README for more information.
make: *** [pciutils] Error 1
[root@localhost flashrom]# make pciutils make: Warning: File `Makefile' has modification time 1.3e+09 s in the future
Checking for pciutils and zlib... not found.
Please install pciutils-devel and zlib-devel. See README for more information.
make: *** [pciutils] Error 1
[root@localhost flashrom]# yum info pciutils pciutils-devel zlib zlib-devel Loaded plugins: refresh-packagekit Installed Packages Name : pciutils Arch : i386 Version : 3.0.2 Release : 3.fc10 Size : 143 k Repo : installed Summary : PCI bus related utilities URL : http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml License : GPLv2+ Description: The pciutils package contains various utilities for inspecting and : setting devices connected to the PCI bus. The utilities provided : require kernel version 2.1.82 or newer (which support the : /proc/bus/pci interface).
Name : pciutils-devel Arch : i386 Version : 3.0.2 Release : 3.fc10 Size : 126 k Repo : installed Summary : Linux PCI development library URL : http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml License : GPLv2+ Description: This package contains a library for inspecting and setting : devices connected to the PCI bus.
Name : zlib Arch : i386 Version : 1.2.3 Release : 18.fc9 Size : 138 k Repo : installed Summary : The zlib compression and decompression library URL : http://www.gzip.org/zlib/ License : zlib Description: Zlib is a general-purpose, patent-free, lossless data compression : library which is used by many different programs.
Name : zlib-devel Arch : i386 Version : 1.2.3 Release : 18.fc9 Size : 115 k Repo : installed Summary : Header files and libraries for Zlib development URL : http://www.gzip.org/zlib/ License : zlib Description: The zlib-devel package contains the header files and libraries : needed to develop programs that use the zlib compression and : decompression library.
On 13.06.2009 21:04, Joseph Smith wrote:
[root@localhost flashrom]# make make: Warning: File `Makefile' has modification time 1.3e+09 s in the future
Checking for pciutils and zlib... not found.
Please install pciutils-devel and zlib-devel. See README for more information.
make: *** [pciutils] Error 1
Turns out gcc was not installed.
No idea whether we really should check for a working gcc. Anyway, here's a patch.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: flashrom-makefile_check_gcc/Makefile =================================================================== --- flashrom-makefile_check_gcc/Makefile (Revision 595) +++ flashrom-makefile_check_gcc/Makefile (Arbeitskopie) @@ -80,7 +80,16 @@ strip: $(PROGRAM) $(STRIP) $(STRIP_ARGS) $(PROGRAM)
-pciutils: +compiler: + @echo; printf "Checking for a C compiler... " + @$(shell ( echo "int main(int argc, char **argv)"; \ + echo "{ return 0; }"; ) > .test.c ) + @$(CC) $(CFLAGS) $(LDFLAGS) .test.c -o .test >/dev/null && \ + echo "found." || ( echo "not found."; \ + rm -f .test.c .test; exit 1) + @rm -f .test.c .test + +pciutils: compiler @echo; printf "Checking for pciutils and zlib... " @$(shell ( echo "#include <pci/pci.h>"; \ echo "struct pci_access *pacc;"; \ @@ -110,6 +119,6 @@ @rm -rf $(EXPORTDIR)/flashrom-$(VERSION) @echo Created $(EXPORTDIR)/flashrom-$(VERSION).tar.gz
-.PHONY: all clean distclean dep pciutils export tarball +.PHONY: all clean distclean dep compiler pciutils export tarball
-include .dependencies
On Tue, 16 Jun 2009 01:37:40 +0200, Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
On 13.06.2009 21:04, Joseph Smith wrote:
[root@localhost flashrom]# make make: Warning: File `Makefile' has modification time 1.3e+09 s in the future
Checking for pciutils and zlib... not found.
Please install pciutils-devel and zlib-devel. See README for more information.
make: *** [pciutils] Error 1
Turns out gcc was not installed.
No idea whether we really should check for a working gcc. Anyway, here's a patch.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: flashrom-makefile_check_gcc/Makefile
--- flashrom-makefile_check_gcc/Makefile (Revision 595) +++ flashrom-makefile_check_gcc/Makefile (Arbeitskopie) @@ -80,7 +80,16 @@ strip: $(PROGRAM) $(STRIP) $(STRIP_ARGS) $(PROGRAM)
-pciutils: +compiler:
- @echo; printf "Checking for a C compiler... "
- @$(shell ( echo "int main(int argc, char **argv)"; \
echo "{ return 0; }"; ) > .test.c )
- @$(CC) $(CFLAGS) $(LDFLAGS) .test.c -o .test >/dev/null && \
echo "found." || ( echo "not found."; \
rm -f .test.c .test; exit 1)
- @rm -f .test.c .test
+pciutils: compiler @echo; printf "Checking for pciutils and zlib... " @$(shell ( echo "#include <pci/pci.h>"; \ echo "struct pci_access *pacc;"; \ @@ -110,6 +119,6 @@ @rm -rf $(EXPORTDIR)/flashrom-$(VERSION) @echo Created $(EXPORTDIR)/flashrom-$(VERSION).tar.gz
-.PHONY: all clean distclean dep pciutils export tarball +.PHONY: all clean distclean dep compiler pciutils export tarball
-include .dependencies
Thanks for the idiot proof patch for people like me that do a fresh Linux install and just assume gcc comes installed :-)
Acked-by: Joseph Smith joe@settoplinux.org
On 16.06.2009 02:15, Joseph Smith wrote:
On Tue, 16 Jun 2009 01:37:40 +0200, Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
No idea whether we really should check for a working gcc. Anyway, here's a patch.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Thanks for the idiot proof patch for people like me that do a fresh Linux install and just assume gcc comes installed :-)
Acked-by: Joseph Smith joe@settoplinux.org
Thanks, committed in r597.
Regards, Carl-Daniel