Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - u_int32_t error when compiling network device driver in QNX6.5.0: (4 Items)
   
u_int32_t error when compiling network device driver in QNX6.5.0  
Hi,
Hi,

I am trying to build the sam.c example with io-pkt in QNX 6.5.0. I am using prodroot_pkt.mk along with my common.mk to 
build the driver.

But when I compile, I saw the errors like below:
C:/QNX650/target/qnx6/usr/include/altq/if_altq.h:102: error: expected specifier-
qualifier-list before 'u_int32_t'

What is my problem? In 6.5.0, I found that all the header files are in my $(QNX_TARGET) already, do I still to build the
 network source in order to get the io-pkt support? (I have the network stack source code, but I didn't build it. I read
 the network source guide. But it looks like it is mainly for QNX 6.4.x.  )

Thanks

Yurong
Re: u_int32_t error when compiling network device driver in QNX6.5.0  
#include <io-pkt/sys/types_bsd.h>

-seanb

On Mon, Dec 12, 2011 at 04:26:59PM -0500, Yurong Sun wrote:
> Hi,
> Hi,
> 
> I am trying to build the sam.c example with io-pkt in QNX 6.5.0. I am using prodroot_pkt.mk along with my common.mk to
 build the driver.
> 
> But when I compile, I saw the errors like below:
> C:/QNX650/target/qnx6/usr/include/altq/if_altq.h:102: error: expected specifier-
> qualifier-list before 'u_int32_t'
> 
> What is my problem? In 6.5.0, I found that all the header files are in my $(QNX_TARGET) already, do I still to build 
the network source in order to get the io-pkt support? (I have the network stack source code, but I didn't build it. I 
read the network source guide. But it looks like it is mainly for QNX 6.4.x.  )
> 
> Thanks
> 
> Yurong
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post90552
> 
RE: u_int32_t error when compiling network device driver in QNX6.5.0  
Hi Sean,

Great! It fixes the issue. But after this passed, I got a different compiling error:

C:/QNX650/target/qnx6/usr/include/io-pkt/lib/libkern/libkern.h:83: error: static
 declaration of 'abs' follows non-static declaration

Sorry for the newbie question. I feel I may miss some compiling flag. I didn't enable the flag __QNXNTO__, could this be
 a problem?

Thanks

Yurong

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: Monday, December 12, 2011 4:31 PM
To: drivers-networking
Subject: Re: u_int32_t error when compiling network device driver in QNX6.5.0


#include <io-pkt/sys/types_bsd.h>

-seanb

On Mon, Dec 12, 2011 at 04:26:59PM -0500, Yurong Sun wrote:
> Hi,
> Hi,
> 
> I am trying to build the sam.c example with io-pkt in QNX 6.5.0. I am using prodroot_pkt.mk along with my common.mk to
 build the driver.
> 
> But when I compile, I saw the errors like below:
> C:/QNX650/target/qnx6/usr/include/altq/if_altq.h:102: error: expected specifier-
> qualifier-list before 'u_int32_t'
> 
> What is my problem? In 6.5.0, I found that all the header files are in my $(QNX_TARGET) already, do I still to build 
the network source in order to get the io-pkt support? (I have the network stack source code, but I didn't build it. I 
read the network source guide. But it looks like it is mainly for QNX 6.4.x.  )
> 
> Thanks
> 
> Yurong
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post90552
> 



_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post90553
RE: u_int32_t error when compiling network device driver in QNX6.5.0  
I figured out the reason of compiling issue. Have some conflict in terms of abs with my other code. 

Thanks for helpling. 

-----Original Message-----
From: Yurong Sun 
Sent: Monday, December 12, 2011 4:40 PM
To: drivers-networking
Subject: RE: u_int32_t error when compiling network device driver in QNX6.5.0

Hi Sean,

Great! It fixes the issue. But after this passed, I got a different compiling error:

C:/QNX650/target/qnx6/usr/include/io-pkt/lib/libkern/libkern.h:83: error: static
 declaration of 'abs' follows non-static declaration

Sorry for the newbie question. I feel I may miss some compiling flag. I didn't enable the flag __QNXNTO__, could this be
 a problem?

Thanks

Yurong

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: Monday, December 12, 2011 4:31 PM
To: drivers-networking
Subject: Re: u_int32_t error when compiling network device driver in QNX6.5.0


#include <io-pkt/sys/types_bsd.h>

-seanb

On Mon, Dec 12, 2011 at 04:26:59PM -0500, Yurong Sun wrote:
> Hi,
> Hi,
> 
> I am trying to build the sam.c example with io-pkt in QNX 6.5.0. I am using prodroot_pkt.mk along with my common.mk to
 build the driver.
> 
> But when I compile, I saw the errors like below:
> C:/QNX650/target/qnx6/usr/include/altq/if_altq.h:102: error: expected specifier-
> qualifier-list before 'u_int32_t'
> 
> What is my problem? In 6.5.0, I found that all the header files are in my $(QNX_TARGET) already, do I still to build 
the network source in order to get the io-pkt support? (I have the network stack source code, but I didn't build it. I 
read the network source guide. But it looks like it is mainly for QNX 6.4.x.  )
> 
> Thanks
> 
> Yurong
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post90552
> 



_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post90553