Mark,

#include <linux/config.h>
#include <linux/version.h>
#ifdef CONFIG_MODVERSIONS
#include <linux/modversions.h>
#endif
#include <linux/module.h>

#include <sys/stream.h>
#include <sys/stropts.h>

gcc -D_KERNEL_ -DMODULE -DLINUX -I /usr/src/linux-2.4/include -I /usr/src/LiS/include

--brian

On Thu, 01 Apr 2004, Mark Chang wrote:

> Yeah, I done that and got tons of errors about
> redefinitions of sigaction, timespec
> from /usr/include/linux/sched.h:25,
> from /usr/src/LiS/include/sys/LiS/linux-mdep.h:116,
> from /usr/src/LiS/include/sys/strport.h:50,
> from /usr/src/LiS/include/sys/stream.h:73,
> from wp.c:38:
> /usr/include/asm/signal.h:102: error: redefinition of
> `struct sigaction'
> /usr/include/asm/signal.h:116: error: redefinition of
> `struct sigaltstack'
> 
> So I took that out thinking it was only related to
> driver builds and not application builds.
> Ok, I will struggle and try to find what is wrong with
> this.
> Gosh, I only want allocb, linkb and msgb APIs.  
> I think I will try to see which object files they are
> in and link only those in.
> 
> --- "Brian F. G. Bidulock" <[EMAIL PROTECTED]>
> wrote:
> > Mark,
> > 
> > #include <sys/stream.h>
> > 
> > --brian
> > 
> > On Thu, 01 Apr 2004, Mark Chang wrote:
> > 
> > > I'm trying to compile an application that uses
> > > Streams message block but not the queue structure
> > > since I created my own queue structure.  I just
> > have
> > > to port the message block code over so I don't
> > rewrite
> > > a lot (50) of lines.
> > > 
> > > I included
> > > #include <sys/stropts.h>  and
> > > <sys/osif.h>
> > > 
> > > My GCC option
> > > -I/usr/src/LiS/include 
> > > 
> > > And my link option
> > > -lLiS
> > > 
> > > I'm missing something as 
> > > allocb is still undefined doing linking.
> > > 
> > > Can someone shed some light on this?
> > > Should I follow the Stream Driver page too?
> > > Thanks,
> > > Mark
> > > 
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Small Business $15K Web Design Giveaway 
> > > http://promotions.yahoo.com/design_giveaway/
> > > _______________________________________________
> > > Linux-streams mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
> > 
> > -- 
> > Brian F. G. Bidulock    � The reasonable man adapts
> > himself to the �
> > [EMAIL PROTECTED]    � world; the unreasonable
> > one persists in  �
> > http://www.openss7.org/ � trying  to adapt the 
> > world  to himself. �
> >                         � Therefore  all  progress 
> > depends on the �
> >                         � unreasonable man. --
> > George Bernard Shaw �
> > _______________________________________________
> > Linux-streams mailing list
> > [EMAIL PROTECTED]
> >
> http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> _______________________________________________
> Linux-streams mailing list
> [EMAIL PROTECTED]
> http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

-- 
Brian F. G. Bidulock    � The reasonable man adapts himself to the �
[EMAIL PROTECTED]    � world; the unreasonable one persists in  �
http://www.openss7.org/ � trying  to adapt the  world  to himself. �
                        � Therefore  all  progress  depends on the �
                        � unreasonable man. -- George Bernard Shaw �
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to