Skip to contentSkip to conversation

xenfb: portability issue

DISCUSSION Christoph Egger 3 participants 9 messages Nov 2, 2007

lore
Share & tools
lore
#0 lore raw

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: 'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#1 lore raw

I think John Levon's recent patch might fix this. I'm going to go through and check in most or all of it I expect.

-- Keir

Quoted 18 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: 'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

#2 lore raw

I'm testing John Levon's patch.

Quoted 20 lines · On Friday 02 November 2007 10:19:08 Keir Fraser wrote:

I think John Levon's recent patch might fix this. I'm going to go through and check in most or all of it I expect.

-- Keir

Quoted 14 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error:
'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#3 lore raw

Actually I liked your suggestion better for this particular issue, so I checked it in.

-- Keir

Quoted 27 lines · Christoph Egger

I'm testing John Levon's patch.

Quoted 20 lines · On Friday 02 November 2007 10:19:08 Keir Fraser wrote:

I think John Levon's recent patch might fix this. I'm going to go through and check in most or all of it I expect.

-- Keir

Quoted 14 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error:
'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

#4 lore raw
Quoted 2 lines · On Friday 02 November 2007 10:45:15 Keir Fraser wrote:

Actually I liked your suggestion better for this particular issue, so I checked it in.

I just tested changest 16306 and works fine with me. Thanks.

Christoph

Quoted 26 lines

-- Keir

Quoted 23 lines · Christoph Egger

I'm testing John Levon's patch.

Quoted 20 lines · On Friday 02 November 2007 10:19:08 Keir Fraser wrote:

I think John Levon's recent patch might fix this. I'm going to go through and check in most or all of it I expect.

-- Keir

Quoted 14 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error:
'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#5 lore raw
In reply to Christoph Egger
Quoted 1 line · On Friday 02 November 2007 10:28:33 Christoph Egger wrote:

I'm testing John Levon's patch.

Works for me.

Quoted 22 lines · On Friday 02 November 2007 10:19:08 Keir Fraser wrote:
Quoted 20 lines

I think John Levon's recent patch might fix this. I'm going to go through and check in most or all of it I expect.

-- Keir

Quoted 14 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error:
'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#6 lore raw
In reply to Christoph Egger
Quoted 3 lines · On Friday 02 November 2007 10:12:39 Christoph Egger wrote:

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

It's not changeset 16250. The non-portable issue is thre from the beginning. When I comment out line 19 and lines 1039,1040 then ioemu builds again for me.

Daniel: Please file a patch to get rid of the BTN_LEFT and the linux/input.h header.

Quoted 10 lines

/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:19:25: error:
linux/input.h: No such file or directory /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c: In function 'xenfb_mouse_event':
/root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: 'BTN_LEFT' undeclared (first use in this function) /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: (Each undeclared identifier is reported only once /root/xen-unstable-netbsd.hg/tools/ioemu/hw/xenfb.c:1038: error: for each function it appears in.)

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#7 lore raw
In reply to Christoph Egger
Quoted 4 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

I guess you never compiled the xenfb stuff on BSD at all in the past ? I didn't introduce any new deps that weren't already in the xenfb code. Kier's change looks reasonable to me though.

Regards,
Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#8 lore raw
Quoted 8 lines · On Friday 02 November 2007 14:38:57 Daniel P. Berrange wrote:
Quoted 3 lines · Christoph Egger

Hi!

Changeset 16250 is not portable. On BSD I get these build errors:

I guess you never compiled the xenfb stuff on BSD at all in the past ? I didn't introduce any new deps that weren't already in the xenfb code. Kier's change looks reasonable to me though.

If it was there before, then it must have been disabled (by default). Otherwise, I would have noticed earlier.

Christoph

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy