satish | 25 Jan 18:42
Picon
Favicon

compilation error with lowpan-tools-0.2.2

Hello,

I was trying to build from the lowpan tools sources v0.2.2 on my arch 
linux box. I end up with the following compilation error :

serial.c: In function ‘main’:
serial.c:45:15: error: variable ‘s’ set but not used 
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[2]: *** [serial.o] Error 1
make[2]: Leaving directory 
`/home/satish/code/zigbee/setup_env/lowpan_tools/lowpan-tools-0.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/satish/code/zigbee/setup_env/lowpan_tools/lowpan-tools-0.2.2'
make: *** [all] Error 2

Is this a known issue or am I missing something trivial here ?

Thanks
Satish

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
(Continue reading)

Luca BRUNO | 25 Jan 18:52
Picon
Favicon
Gravatar

Re: compilation error with lowpan-tools-0.2.2

satish scrisse:

> serial.c: In function ‘main’:
> serial.c:45:15: error: variable ‘s’ set but not used 
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors

You are compiling with -Werror. If you omit that, the message will be
treated again as a warning and the build won't fail.
Otherwise, you may just apply this patch [0], which I'm carrying in
debian but haven't yet forwarded to git (sorry, it's a busy period of the
year).

Cheers, Luca

[0] http://patch-tracker.debian.org/patch/series/view/lowpan-tools/0.2.2-2.1/ftbfs-unused-var.patch

--

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
(Continue reading)

satish | 25 Jan 19:24
Picon
Favicon

Re: compilation error with lowpan-tools-0.2.2

Thanks a lot for the quick reply, I looked at the code and commented out the required lines just as you have done in the patch. I just wanted to confirm anyways.

I just had another doubt, though the wiki mentions something called the zigbee-kernel, the sources do not have either that or the liblowpan-dev or the wireshark with zigbee packages, is this because these are now included upstream ?


Thanks again,
Satish
satish scrisse:
serial.c: In function ‘main’: serial.c:45:15: error: variable ‘s’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
You are compiling with -Werror. If you omit that, the message will be treated again as a warning and the build won't fail. Otherwise, you may just apply this patch [0], which I'm carrying in debian but haven't yet forwarded to git (sorry, it's a busy period of the year). Cheers, Luca [0] http://patch-tracker.debian.org/patch/series/view/lowpan-tools/0.2.2-2.1/ftbfs-unused-var.patch

------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d

_______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@...
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
Alexander Smirnov | 28 Jan 13:53
Picon

Re: compilation error with lowpan-tools-0.2.2

Hello Satish,

First of all thanks to Luca for the reply ;-)

2012/1/25 satish <seerpini@...>:
> Thanks a lot for the quick reply, I looked at the code and commented out the
> required lines just as you have done in the patch. I just wanted to confirm
> anyways.
>
> I just had another doubt, though the wiki mentions something called the
> zigbee-kernel, the sources do not have either that or the liblowpan-dev or
> the wireshark with zigbee packages, is this because these are now included

zigbee-kernel is a kernel merged from the upstream with project's patches.
Currently only 2.6.33 branch contains all the stack parts. And now I'm
working on a patch set for the latest net-dev kernel. Drafts are
available on mail list.

Regarding 6lowpan: support added to kernel (also available in
mainline) and no extra-libs are required. IIRC I created a branch in
zigbee-kernel git with patches from upstream.

Regarding wireshark: unfortunately it wasn't me who added 802.15.4 for
wireshark, so I don't know  the details, but I'm absolutely sure that
the version from OpenEmbedded works perfect.

Feel free to ask any question!

With best regards,
Alexander

> upstream ?
>
>
> Thanks again,
> Satish
>
> satish scrisse:
>
> serial.c: In function ‘main’:
> serial.c:45:15: error: variable ‘s’ set but not used
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> You are compiling with -Werror. If you omit that, the message will be
> treated again as a warning and the build won't fail.
> Otherwise, you may just apply this patch [0], which I'm carrying in
> debian but haven't yet forwarded to git (sorry, it's a busy period of the
> year).
>
> Cheers, Luca
>
> [0]
> http://patch-tracker.debian.org/patch/series/view/lowpan-tools/0.2.2-2.1/ftbfs-unused-var.patch
>
>
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
>
>
> _______________________________________________
> Linux-zigbee-devel mailing list
> Linux-zigbee-devel@...
> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Linux-zigbee-devel mailing list
> Linux-zigbee-devel@...
> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Gmane