From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl-Daniel Hailfinger Subject: Re: Radeon M7 and resuming from suspend-to-ram Date: Thu, 03 Feb 2005 23:59:20 +0100 Message-ID: <4202ACC8.4000902@gmx.net> References: <41E7D334.6060003@sllpilots.fi> <1105723866.28126.10.camel@elrond.flymine.org> <87k6qal75i.fsf-news@hsp-law.de> <1106095573.7368.29.camel@tyrosine> <87ekghkwt0.fsf-news@hsp-law.de> <42029281.3070207@gmx.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040200060702030607020007" In-Reply-To: <42029281.3070207-hi6Y0CQ0nG0@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Matthew Garrett Cc: acpi-devel List-Id: linux-acpi@vger.kernel.org This is a multi-part message in MIME format. --------------040200060702030607020007 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Carl-Daniel Hailfinger schrieb: > Ralf Gerbig schrieb: > >>SuSE does not have a shared libpci, only static so the precompiled >>binary unsurprisingly did not work. >> >>Compiling the source I got: >> >>rge@lapdog2:/usr/src/vbetool-0.2> make >>if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" >>-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"vbetool\" >>-DVERSION=\"0.2\" -I. -I. >>-g -Wall -Werror -pedantic -g -O2 -MT vbetool.o -MD -MP -MF ".deps/vbetool.Tpo" \ >> -c -o vbetool.o `test -f 'vbetool.c' || echo './'`vbetool.c; \ >>then mv -f ".deps/vbetool.Tpo" ".deps/vbetool.Po"; \ >>else rm -f ".deps/vbetool.Tpo"; exit 1; \ >>fi >>In file included from /usr/include/stdlib.h:416, >> from vbetool.c:14: >>/usr/include/sys/types.h:62: error: conflicting types for `dev_t' >>/usr/include/linux/types.h:22: error: previous declaration of `dev_t' >>[...] > > > Yes, the pci.h shipped by SUSE has problems. Simply move the #include > from the beginning to directly before #include > >>after fuzing around with -D, I temporally commented out the >>include. Thereafter adding -lpci to the end of the link command, I got >>a working executable. Matthew, could you apply attached patch and run aclocal, autoconf and automake again? This will fix the compile problems on SUSE 9.2. Regards, Carl-Daniel -- http://www.hailfinger.org/ --------------040200060702030607020007 Content-Type: text/x-patch; name="vbetool-fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vbetool-fix.diff" diff -urN vbetool-0.2/Makefile.am vbetool-0.2-modified/Makefile.am --- vbetool-0.2/Makefile.am 2004-12-30 16:27:07.000000000 +0100 +++ vbetool-0.2-modified/Makefile.am 2005-02-03 21:58:16.000000000 +0100 @@ -12,4 +12,4 @@ $(RM) Makefile.in aclocal.m4 config.h.in stamp-h.in configure AM_CFLAGS = -g -Wall -Werror -pedantic -AM_LDFLAGS = -lpci +LIBS = -lpci diff -urN vbetool-0.2/vbetool.c vbetool-0.2-modified/vbetool.c --- vbetool-0.2/vbetool.c 2004-12-31 16:11:19.000000000 +0100 +++ vbetool-0.2-modified/vbetool.c 2005-02-03 22:02:53.000000000 +0100 @@ -8,7 +8,6 @@ version 2 */ -#include #include #include #include @@ -17,6 +16,7 @@ #include #include #include +#include #include #include #include --------------040200060702030607020007-- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl