public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ralf Gerbig <rge-ihuhiKcgPLSELgA04lAiVw@public.gmane.org>
To: Carl-Daniel Hailfinger
	<c-d.hailfinger.devel.2005-hi6Y0CQ0nG0@public.gmane.org>
Cc: acpi-devel
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: Radeon M7 and resuming from suspend-to-ram
Date: Thu, 03 Feb 2005 23:53:25 +0100	[thread overview]
Message-ID: <87oef1gsre.fsf@gerlin1.hsp-law.de> (raw)
In-Reply-To: <42029281.3070207-hi6Y0CQ0nG0@public.gmane.org> (Carl-Daniel Hailfinger's message of "Thu, 03 Feb 2005 22:07:13 +0100")

Moins,

* Carl-Daniel Hailfinger:
> Ralf Gerbig schrieb:
>> 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
> <pci/pci.h> from the beginning to directly before #include <sys/kd.h>

>> 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.

> This is a bug in Makefile.am. Pseudo-diff:

> -AM_LDFLAGS = -lpci
> +LIBS = -lpci

> Then run aclocal, autoconf and automake again.


yup, works with this diff:

--- ../vbetool-0.2-orig/Makefile.am     2004-12-30 16:27:07.000000000 +0100
+++ Makefile.am 2005-02-03 23:38:08.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

--- ../vbetool-0.2-orig/vbetool.c       2004-12-31 16:11:19.000000000 +0100
+++ vbetool.c   2005-02-03 23:38:40.000000000 +0100
@@ -8,7 +8,6 @@
 version 2
 */
 
-#include <pci/pci.h>
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -17,6 +16,7 @@
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/io.h>
+#include <pci/pci.h>
 #include <sys/kd.h>
 #include <sys/stat.h>
 #include <errno.h>

Ralf


-------------------------------------------------------
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

  parent reply	other threads:[~2005-02-03 22:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-14 14:12 Radeon M7 and resuming from suspend-to-ram Tomi Kallio
     [not found] ` <41E7D334.6060003-y4dnIKzCb/d9YMlOZIriJw@public.gmane.org>
2005-01-14 15:26   ` Jeremy Moles
2005-01-14 20:06     ` Tomi Kallio
2005-01-14 16:24   ` Karol Kozimor
     [not found]     ` <20050114162359.GA22184-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2005-01-14 19:53       ` Tomi Kallio
2005-01-14 17:31   ` Matthew Garrett
     [not found]     ` <1105723866.28126.10.camel-Xmbc1Sz64/5pghhO6/9/sx2eb7JE58TQ@public.gmane.org>
2005-01-18 22:11       ` Ralf Gerbig
     [not found]         ` <87k6qal75i.fsf-news-ihuhiKcgPLSELgA04lAiVw@public.gmane.org>
2005-01-19  0:46           ` Matthew Garrett
2005-01-19 20:07             ` Ralf Gerbig
     [not found]               ` <87ekghkwt0.fsf-news-ihuhiKcgPLSELgA04lAiVw@public.gmane.org>
2005-02-03 21:07                 ` Carl-Daniel Hailfinger
     [not found]                   ` <42029281.3070207-hi6Y0CQ0nG0@public.gmane.org>
2005-02-03 22:53                     ` Ralf Gerbig [this message]
2005-02-03 22:59                     ` Carl-Daniel Hailfinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oef1gsre.fsf@gerlin1.hsp-law.de \
    --to=rge-ihuhikcgplselga04laivw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=c-d.hailfinger.devel.2005-hi6Y0CQ0nG0@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox