Skip to contentSkip to conversation

smscoreapi.c:689: error: 'uintptr_t' undeclared

DISCUSSION Peter Schlaf 2 participants 3 messages Jul 12, 2008 – Jul 13, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw

Peter,

Quoted 8 lines · Peter Schlaf

to workaround this i edited v4l/Makefile.media and commented out

sms1xxx-objs := smscoreapi.o smsusb.o smsdvb.o sms-cards.o

  obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o

after that, compiling all the other modules ended successfully.

Thank you for posting this error. Here is a fix:

linux/drivers/media/dvb/siano/smscoreapi.h +1 -0
diff -r f6b65eef0c94 linux/drivers/media/dvb/siano/smscoreapi.h
@@ -27,6 +27,7 @@
 #include <linux/list.h>
 #include <linux/mm.h>
 #include <linux/scatterlist.h>
+#include <linux/types.h>
 #include <asm/page.h>
 
 #include "dmxdev.h"

I'll push this in now.

Regards,

Mike Krufky

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw

hi,
thank you for your reply.

unfortunately there is no 'uintptr_t' in linux/types.h of my system (openSuSE 10.3, kernel 2.6.22.18-0.2-bigsmp) or in other files it includes.

a search for 'uintptr_t' under /usr/src/linux resulted in this:
drivers/net/sk98lin/h/skdrv1st.h:142:#define uintptr_t unsigned long

i put this define into smscoreapi.h and it worked.

cu

Quoted 28 lines · Michael Krufky

Peter,

Quoted 8 lines · Peter Schlaf

to workaround this i edited v4l/Makefile.media and commented out

sms1xxx-objs := smscoreapi.o smsusb.o smsdvb.o sms-cards.o

  obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o

after that, compiling all the other modules ended successfully.

Thank you for posting this error. Here is a fix:

diff -r f6b65eef0c94 linux/drivers/media/dvb/siano/smscoreapi.h

linux/drivers/media/dvb/siano/smscoreapi.h +1 -0
@@ -27,6 +27,7 @@
 #include <linux/list.h>
 #include <linux/mm.h>
 #include <linux/scatterlist.h>
+#include <linux/types.h>
 #include <asm/page.h>
 
 #include "dmxdev.h"
Quoted 7 lines

I'll push this in now.

Regards,

Mike Krufky

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list