public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Compiling vbetool
@ 2005-02-07 14:45 Rich Townsend
       [not found] ` <42077F0D.5020206-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Rich Townsend @ 2005-02-07 14:45 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I'm sure this isn't the correct place to post such a question, but I 
could find no other appropriate forum. Has anyone run into a problem 
trying to compile Matthew Garret's vbetool? Specifically:

if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKA                    GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE=\"vbetool\" -DVERSION=\"0.2\"                      -I. -I. 
-g -Wall -Werror -pedantic -g -O2 -MT vbetool.o -MD -MP -MF ".deps/v 
                 betool.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:24: error: previous declaration of 'dev_t' 
was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:30: error: previous declaration of 'mode_t' 
was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:33: error: previous declaration of 'nlink_t' 
was here
In file included from /usr/include/sys/types.h:216,
                  from /usr/include/stdlib.h:416,
                  from vbetool.c:14:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:21: error: previous declaration of 'fd_set' 
was here
make: *** [vbetool.o] Error 1

It looks like my headers are somehow borked, but I'm not sure how to go 
about fixing this. BTW, this is on a Gentoo-based system, running 2.6.10 
with glibc 2.3.4.

cheers,

Rich


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compiling vbetool
       [not found] ` <42077F0D.5020206-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
@ 2005-02-07 14:53   ` Carl-Daniel Hailfinger
  0 siblings, 0 replies; 2+ messages in thread
From: Carl-Daniel Hailfinger @ 2005-02-07 14:53 UTC (permalink / raw)
  To: Rich Townsend; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Rich Townsend schrieb:
> I'm sure this isn't the correct place to post such a question, but I
> could find no other appropriate forum. Has anyone run into a problem
> trying to compile Matthew Garret's vbetool? Specifically:
> 
> 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:24: error: previous declaration of 'dev_t'
> was here

Yes, I posted a patch for that four days ago. Attached again.

Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/

[-- Attachment #2: vbetool-fix.diff --]
[-- Type: text/x-patch, Size: 848 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-07 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-07 14:45 Compiling vbetool Rich Townsend
     [not found] ` <42077F0D.5020206-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-02-07 14:53   ` Carl-Daniel Hailfinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox