[Libwebsockets] error for autogen.sh

Andy Green andy at warmcat.com
Sun Apr 7 00:10:27 CEST 2013


Hi -

1) It means I personally tested that tagged version with those browsers.  It's reported on the list we work with other recent browsers like the Apple one, etc.

2) The docs are of course useful but the key to understanding how to use the library is look at how the test apps work.

3) I update that every release, we are just before the next release now.  However when you configure libwebsockets with cmake on your machine, in generates those api docs that match your library version in ./build/doc

4) The callback for the protocol is where every event you might need to act on appears.  By providing code for the possible events you create your protocol's behaviour for the remote peer.  Protocol 0, used for http serving, has some additional callback reasons like extpoll and filtering as well.  By studying the test apps you can see how to get things done there.

-Andy

Dinesh Guleria <din.gulu.er at gmail.com> wrote:

>I have to study a lot to understand this libary. Please answer these
>few
>questions ?
>
>1> Does your library work with only these Internet explorer only ?
>Chrome 26 and Firefox 18
>
>
>2> Are these link right to understand your full library or i should
>refer
>code also :-----
>http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/changelog
>http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/README.coding
>http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/README
>http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/README.test-apps
>
>
>3> This does not contains all the details of your api :---
>http://libwebsockets.org/libwebsockets-api-doc.html
>
>
>4> Also what is the role of a call-back function. Is there role is that
>whenever there is an request from some client to server on a particular
>protocol. Server will call these call back functions. And inside these
>call
>back functions we have to implement the logic related to server
>request. Am
>i right ?
>
>Please try to reply them it will help me to get started to it.
>
>//Din
>
>On Sat, Apr 6, 2013 at 7:38 PM, "Andy Green (林安廸)" <andy at warmcat.com>
>wrote:
>
>> On 06/04/13 21:20, the mail apparently from Dinesh Guleria included:
>>
>>> Thanks for replying Andy, i have already made these changes as per
>your
>>> previous mail & error is removed :---
>>> libwebsockets_broadcast() - use
>>> libwebsocket_callback_on_**writable[_all_protocol]()
>>>
>>> But my new error now is in call back function of --
>>> *callback_dumb_increment*, *callback_lws_mirror, callback_lws_vscp*
>>>
>>>
>>> Here as per previous version we use to check for enum
>>> libwebsocket_callback_reasons reason,  ---> *LWS_CALLBACK_BROADCAST
>*in
>>> our call back functions.
>>> *
>>> *
>>> *
>>> 1> *For dumb increment i will change it to
>>>
>>> LWS_CALLBACK_SERVER_WRITEABLE  ---> as per test-server.c example.
>>> 2> What should i do for other two callback fucntion ? Should i
>remove
>>> them from switch case ?
>>>
>>
>> Presumably they want to do something inside the case.
>>
>> Now broadcast will never get called.
>>
>> You probably want to change the code in the broadcast case to be in
>> LWS_CALLBACK_SERVER_WRITEABLE, but you'll have to understand what the
>code
>> is doing a bit better to make sure that's workable.
>>
>>  3> Also when we register callback for some protocol, then what i got
>is
>>> server call that function & we have to serve ---->   values in
>following
>>> parameter *enum libwebsocket_callback_reasons* is it right ?
>>> *
>>> *What**enum should i use here to make it working ?
>>>
>>
>> It seems your code was based on older test apps, your best bet is to
>study
>> how the new test apps work.
>>
>> -Andy
>>
>>
>>> ==================== Error in following functions  code
>>> ====================
>>> *1>
>>> callback_dumb_increment* call back uses:----
>>>
>>>
>>>      /*
>>>       * in this protocol, we just use the broadcast action as the
>chance
>>> to
>>>       * send our own connection-specific data and ignore the
>broadcast
>>> info
>>>       * that is available in the 'in' parameter
>>>       */
>>>
>>> *   case LWS_CALLBACK_BROADCAST: *
>>>
>>>
>>>          n = sprintf( (char *)p, "%d", pss->number++ );
>>>          n = libwebsocket_write( wsi, p, n, LWS_WRITE_TEXT );
>>>
>>>          if ( n < 0 ) {
>>>              fprintf(stderr, "ERROR writing to socket");
>>>              return 1;
>>>          }
>>>
>>>          if ( gbClose && pss->number == 50 ) {
>>>              fprintf(stderr, "close testing limit, closing\n");
>>>              /*libwebsocket_close_and_free_**session( context,
>>>                                                      wsi,
>>>
>>> LWS_CLOSE_STATUS_NORMAL);*/
>>>              return -1;
>>>          }
>>>          break;
>>>
>>>
>>>
>>> *2>*
>>> *callback_lws_mirror  function* callback uses :----
>>>
>>>      case *LWS_CALLBACK_BROADCAST*:
>>>
>>>
>>>          n = libwebsocket_write( wsi, (unsigned char *)in, len,
>>> LWS_WRITE_TEXT );
>>>          if ( n < 0 )
>>>              fprintf(stderr, "mirror write failed\n");
>>>          break;
>>>
>>>
>>> *3>*
>>> *callback_lws_vscp* function callback uses :------
>>>
>>>
>>>      // signal to send to client (you would use
>>>      // libwebsocket_write() taking care about the
>>>      // special buffer requirements
>>>      case*LWS_CALLBACK_BROADCAST: *
>>>
>>>          libwebsocket_callback_on_**writable( context, wsi );
>>>          break;
>>>
>>> ==============================**========
>>>
>>> Regards,
>>> //Din
>>>
>>> On Sat, Apr 6, 2013 at 4:54 PM, "Andy Green (林安廸)" <andy at warmcat.com
>>> <mailto:andy at warmcat.com>> wrote:
>>>
>>>     On 06/04/13 19:18, the mail apparently from Dinesh Guleria
>included:
>>>
>>>         Hi,
>>>
>>>         I made changes as per Andy & Edwin suggestion :--
>>>        
>http://git.libwebsockets.org/_**_cgi-bin/cgit/libwebsockets/__**
>>>
>tree/changelog<http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__tree/changelog>
>>>
>>>        
><http://git.libwebsockets.org/**cgi-bin/cgit/libwebsockets/**
>>>
>tree/changelog<http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/changelog>
>>> >
>>>
>>>         Also i removed error due to
>>>         *libwebsocket_close_and_free__**_session* by
>>>
>>>
>>>         changing it to return -1 as per change log.
>>>         libwebsocket_close_and_free___**session    ----> changed to
>>> ----->
>>>
>>>         return -1;
>>>
>>>         But the above changelog does not tell about ---
>>>         *LWS_CALLBACK_BROADCAST*  i am getting following error in my
>code.
>>>
>>>         I have attached my modified code.
>>>
>>>
>>>     Edwin already explained it
>>>
>>>     ''broadcast support was removed. (2013-01-29)
>>>
>>>     see this patch
>>>     http://git.libwebsockets.org/_**_cgi-bin/cgit/libwebsockets/__**
>>> commit/test-server/test-__**server.c?id=__**
>>>
>6f520a5195defcb7fc69c669218a81**__31a5f35efb<http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__commit/test-server/test-__server.c?id=__6f520a5195defcb7fc69c669218a81__31a5f35efb>
>>>
>>>     <http://git.libwebsockets.org/**cgi-bin/cgit/libwebsockets/**
>>>
>commit/test-server/test-**server.c?id=**6f520a5195defcb7fc69c669218a81**
>>>
>31a5f35efb<http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/test-server/test-server.c?id=6f520a5195defcb7fc69c669218a8131a5f35efb>
>>> >
>>>
>>>     check out the later version on how to solve the broadcast to all
>>>     connected clients.
>>>     Good luck,
>>>     Edwin van den Oetelaar''
>>>
>>>     In the changelog
>>>
>>>
>>>     user api removals
>>>     -----------------
>>>
>>>       - libwebsockets_broadcast() - use
>>>     libwebsocket_callback_on___**writable[_all_protocol]()
>>>
>>>              instead from same process context as the service loop. 
>See
>>>     the test apps
>>>              for examples.
>>>
>>>     -Andy
>>>
>>>         ===================== Error i am getting ==================
>>>         ../../common/controlobject.__**cpp: In static member
>function
>>>         'static int
>>>        
>CControlObject::callback_dumb_**__increment(libwebsocket___**
>>> context*,
>>>
>>>         libwebsocket*, libwebsocket_callback_reasons, void*, void*,
>>>         size_t)':
>>>         ../../common/controlobject.__**cpp:2247:7: error:
>>>
>>>         'LWS_CALLBACK_BROADCAST'
>>>         was not declared in this scope
>>>         ../../common/controlobject.__**cpp: In static member
>function
>>>         'static int
>>>        
>CControlObject::callback_lws__**_mirror(libwebsocket_context*,
>>>
>>>         libwebsocket*, libwebsocket_callback_reasons, void*, void*,
>>>         size_t)':
>>>         ../../common/controlobject.__**cpp:2344:7: error:
>>>
>>>         'LWS_CALLBACK_BROADCAST'
>>>         was not declared in this scope
>>>         ../../common/controlobject.__**cpp: In static member
>function
>>>         'static int
>>>         CControlObject::callback_lws__**_vscp(libwebsocket_context*,
>>>
>>>         libwebsocket*,
>>>         libwebsocket_callback_reasons, void*, void*, size_t)':
>>>         ../../common/controlobject.__**cpp:2474:7: error:
>>>
>>>         'LWS_CALLBACK_BROADCAST'
>>>         was not declared in this scope
>>>         ../../common/controlobject.__**cpp: In member function 'void
>>>         CControlObject::__**handleWebSocketCommand(__**
>>> libwebsocket_context*,
>>>         libwebsocket*, per_session_data__lws_vscp*, const char*)':
>>>
>>>         ==============================**__===================
>>>
>>>
>>>         Please suggest how to get rid of it.
>>>
>>>         Regards,
>>>         //Din
>>>
>>>
>>>         ==============================**__========================
>>>
>>>
>>>         On Mon, Apr 1, 2013 at 11:18 AM, Dinesh Guleria
>>>         <din.gulu.er at gmail.com <mailto:din.gulu.er at gmail.com>
>>>         <mailto:din.gulu.er at gmail.com
><mailto:din.gulu.er at gmail.com>**
>>> >__>
>>>
>>>         wrote:
>>>
>>>              Thanks.. I will first go through documentation of
>>> libwebsocket.
>>>
>>>              Regards,
>>>              //Din
>>>
>>>
>>>              On Sun, Mar 31, 2013 at 5:30 AM, Andy Green
>>>         <andy at warmcat.com <mailto:andy at warmcat.com>
>>>              <mailto:andy at warmcat.com <mailto:andy at warmcat.com>>>
>wrote:
>>>
>>>
>>>
>>>                  On Sun, 31 Mar, 2013 at 1:38 AM, Edwin van den
>Oetelaar
>>>                 
><oetelaar.automatisering at __gma**il.com<http://gmail.com>
>>>        
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>
>>> >
>>>                 
><mailto:oetelaar.__**automatisering at gmail.com<oetelaar.__automatisering at gmail.com>
>>>
>>>        
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>>>>
>>> wrote:
>>>
>>>                      broadcast support was removed. (2013-01-29) see
>>>             this patch
>>>             http://git.libwebsockets.org/_**
>>> _cgi-bin/cgit/libwebsockets/__**commit/test-server/test-__**
>>>
>server.c?id=__**6f520a5195defcb7fc69c669218a81**__31a5f35efb<http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__commit/test-server/test-__server.c?id=__6f520a5195defcb7fc69c669218a81__31a5f35efb>
>>>
>>>            
><http://git.libwebsockets.org/**cgi-bin/cgit/libwebsockets/**
>>>
>commit/test-server/test-**server.c?id=**6f520a5195defcb7fc69c669218a81**
>>>
>31a5f35efb<http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/test-server/test-server.c?id=6f520a5195defcb7fc69c669218a8131a5f35efb>
>>> >
>>>                      check out the later version on how to solve the
>>>             broadcast to
>>>                      all connected clients.
>>>
>>>
>>>                  Right... you should review the changelog to
>understand
>>>         what has
>>>                  happened between versions.
>>>
>>>        
>http://git.libwebsockets.org/_**_cgi-bin/cgit/libwebsockets/__**
>>>
>tree/changelog<http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__tree/changelog>
>>>
>>>        
><http://git.libwebsockets.org/**cgi-bin/cgit/libwebsockets/**
>>>
>tree/changelog<http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/changelog>
>>> >
>>>
>>>                  In there it mentions
>>>
>>>                  ''user api removals
>>>                  -----------------
>>>
>>>                    - libwebsockets_broadcast() - use
>>>                 
>libwebsocket_callback_on___**writable[_all_protocol]()
>>>
>>>                    instead from same process context as the service
>>>         loop. See the
>>>                  test apps
>>>                    for examples.''
>>>
>>>                  Because the bundled test apps are always kept up to
>>>         date with
>>>                  latest library APIs, that is the best place to go
>to
>>>         see how to
>>>                  do things.
>>>
>>>                          ../../common/controlobject.__**cpp:618:16:
>err
>>>
>>>             or: invalid
>>>                          conversion from 'uint16_t {aka short
>unsigned
>>>             int}' to
>>>                          'lws_context_creation_info*' [-fpermissive]
>>>
>>>
>>>                  ''User api changes
>>>                  ----------------
>>>
>>>                    - libwebsocket_create_context() has changed from
>>>         taking a ton
>>>                  of parameters
>>>                    to just taking a pointer to a struct containing
>the
>>>                  parameters. The
>>>                    struct lws_context_creation_info is in
>>>         libwebsockets.h, the
>>>                  members
>>>                    are in the same order as when they were
>parameters to
>>>         the call
>>>                    previously. The test apps are all updated
>accordingly
>>>         so you can
>>>                    see example code there.''
>>>
>>>                          ../../common/controlobject.__**cpp:618:16:
>>> error:
>>>
>>>             too many
>>>                          arguments to function
>'libwebsocket_context*
>>>
>>>            
>libwebsocket_create_context(__**lws_context_creation_info*)'
>>>                         
>/usr/local/include/__**libwebsockets.h:806:1:
>>>             note: declared
>>>                          here
>../../common/controlobject.__**cpp:668:13:
>>>
>>>             error:
>>>                          'libwebsockets_broadcast' was not declared
>in
>>>             this scope
>>>                          ../../common/controlobject.__**cpp: In
>static
>>>             member function
>>>                          'static int
>>>
>>>             CControlObject::callback_http(**__libwebsocket_context*,
>>>
>>>                          libwebsocket*,
>libwebsocket_callback_reasons,
>>>             void*,
>>>                          void*, size_t)':
>>>             ../../common/controlobject.__**cpp:2098:28:
>>>
>>>                          error: cannot convert 'libwebsocket*' to
>>>                          'libwebsocket_context*' for argument '1' to
>'int
>>>
>>>             libwebsockets_serve_http_file(**__libwebsocket_context*,
>>>
>>>                          libwebsocket*, const char*, const char*)'
>>>
>>>
>>>                  ''user api changes
>>>                  ----------------
>>>
>>>                    - libwebsockets_serve_http_file(**__) now takes a
>>>         context as first
>>>                  argument''
>>>
>>>                          ../../common/controlobject.__**cpp:2120:32:
>>>
>>>             error: invalid
>>>                          conversion from 'int' to
>'libwebsocket_context*'
>>>                          [-fpermissive]
>>>             ../../common/controlobject.__**cpp:2120:32:
>>>
>>>                          error: cannot convert 'char*' to
>>>             'libwebsocket*' for
>>>                          argument '2' to 'void
>>>
>>>             libwebsockets_get_peer___**addresses(libwebsocket___**
>>> context*,
>>>
>>>                          libwebsocket*, int, char*, int, char*,
>int)'
>>>
>>>
>>>                  ''user api changes
>>>                  ----------------
>>>
>>>                    - libwebsockets_get_peer___**addresses() now
>takes a
>>>
>>>         context and
>>>                  wsi as first
>>>                    two arguments''
>>>
>>>                  -Andy
>>>
>>>                          ../../common/controlobject.__**cpp: In
>static
>>>             member function
>>>                          'static int
>>>
>>>            
>CControlObject::callback_dumb_**__increment(libwebsocket___**
>>> context*,
>>>
>>>                          libwebsocket*,
>libwebsocket_callback_reasons,
>>>             void*,
>>>                          void*, size_t)':
>>>             ../../common/controlobject.__**cpp:2221:7:
>>>
>>>                          error: 'LWS_CALLBACK_BROADCAST' was not
>>>             declared in this
>>>                          scope ../../common/controlobject.__**
>>> cpp:2235:37:
>>>             error:
>>>                          'libwebsocket_close_and_free__**_session'
>was
>>> not
>>>             declared in
>>>                          this scope
>../../common/controlobject.__**cpp:
>>> In
>>>
>>>             static
>>>                          member function 'static int
>>>
>>>             CControlObject::callback_lws__**
>>> _mirror(libwebsocket_context*,
>>>
>>>                          libwebsocket*,
>libwebsocket_callback_reasons,
>>>             void*,
>>>                          void*, size_t)':
>>>             ../../common/controlobject.__**cpp:2317:7:
>>>
>>>                          error: 'LWS_CALLBACK_BROADCAST' was not
>>>             declared in this
>>>                          scope ../../common/controlobject.__**cpp:
>In
>>>
>>>             static member
>>>                          function 'static int
>>>
>>>            
>CControlObject::callback_lws__**_vscp(libwebsocket_context*,
>>>
>>>                          libwebsocket*,
>libwebsocket_callback_reasons,
>>>             void*,
>>>                          void*, size_t)':
>>>             ../../common/controlobject.__**cpp:2447:7:
>>>
>>>                          error: 'LWS_CALLBACK_BROADCAST' was not
>>>             declared in this
>>>                          scope ../../common/controlobject.__**cpp:
>In
>>>             member function
>>>                          'void
>>>
>>>             CControlObject::__**handleWebSocketCommand(__**
>>> libwebsocket_context*,
>>>                          libwebsocket*, per_session_data__lws_vscp*,
>>>             const char*)':
>>>                          ../../common/controlobject.__**cpp:2863:8:
>>>
>>>             warning: unused
>>>                          variable 'val' [-Wunused-variable] make:
>***
>>>                          [../../common/controlobject.o] Error 1
>>>
>>>             ==============================**
>>> __============================**==__===
>>>
>>>                          Regards, //Din On Sat, Mar 30, 2013 at 8:02
>AM,
>>>             "Andy
>>>                          Green (林安廸)" <andy at warmcat.com
>>>             <mailto:andy at warmcat.com>
>>>                          <mailto:andy at warmcat.com
>>>
>>>             <mailto:andy at warmcat.com>>> wrote:
>>>
>>>                              On 30/03/13 03:10, the mail apparently
>from
>>>             Dinesh
>>>                              Guleria included:
>>>
>>>                                  Thanks for your reply Edwin. >> I
>thought
>>>                                  everything is cmake now instead of
>>>             autotools. I
>>>                                  just clone gitt hub. Should i
>follow
>>>             this :---
>>>                                  README.build in this folder ?
>>>
>>>                              Yes... I just added an example working
>>>             "toolchain
>>>                              file", and improved the documentation a
>bit
>>>             http://git.libwebsockets.org/_**
>>> _cgi-bin/cgit/libwebsockets/__**commit/?id=__**
>>>
>5b479ac2f1cb7d8a9ded478b99c825**__7852317ab2<http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__commit/?id=__5b479ac2f1cb7d8a9ded478b99c825__7852317ab2>
>>>
>>>            
><http://git.libwebsockets.org/**cgi-bin/cgit/libwebsockets/**
>>>
>commit/?id=**5b479ac2f1cb7d8a9ded478b99c825**7852317ab2<http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=5b479ac2f1cb7d8a9ded478b99c8257852317ab2>
>>> >
>>>                              it works fine but make sure you nuke
>your
>>> build
>>>                              directory when switching between cross
>and
>>>             host build
>>>                              cmake configure... cmake just ignores
>your
>>>             change
>>>                              otherwise. -Andy
>>>
>>>                                  Regards, //Din On Sat, Mar 30, 2013
>at
>>>             12:33 AM,
>>>                                  Edwin van den Oetelaar
>>>                                 
><oetelaar.automatisering at __gma**il.com<http://gmail.com>
>>>            
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>
>>> >
>>>
>>>            
><mailto:oetelaar.__**automatisering at gmail.com<oetelaar.__automatisering at gmail.com>
>>>            
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>
>>> >>
>>>
>>>            
><mailto:oetelaar.__**automatisering at gmail.com<oetelaar.__automatisering at gmail.com>
>>>            
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>
>>> >
>>>
>>>
>>>            
><mailto:oetelaar.__**automatisering at gmail.com<oetelaar.__automatisering at gmail.com>
>>>
>>>            
><mailto:oetelaar.**automatisering at gmail.com<oetelaar.automatisering at gmail.com>
>>> >>>>
>>>                                  wrote: I thought everything is
>cmake
>>>             now instead
>>>                                  of autotools. That happened some
>time
>>>             ago (couple
>>>                                  of months) Are you using the latest
>>>             version, as
>>>                                  far as I know all autotools stuff
>has
>>> been
>>>                                  removed. Good luck with your work,
>>>             Edwin On Fri,
>>>                                  Mar 29, 2013 at 6:56 PM, Dinesh
>Guleria
>>>                                  <din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>__>> wrote: > anyone
>>>
>>>                                  who can suggest on this ? > > On
>Fri,
>>>             Mar 29, 2013
>>>                                  at 7:58 PM, Dinesh Guleria
>>>             <din.gulu.er at gmail.com <mailto:din.gulu.er at gmail.com>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>__>> > wrote: >> >> So
>>>
>>>                                  i thoght to change to libtool 2.4.2
>&
>>>             installed it
>>>                                  , Now i am stuck >> here :----- >>
>>>
>>>            
>http://stackoverflow.com/__**questions/15704808/installing-**
>>>
>__new-version-of-libtool-for-_**_libwebsocket-warmcat<http://stackoverflow.com/__questions/15704808/installing-__new-version-of-libtool-for-__libwebsocket-warmcat>
>>>
>>>            
><http://stackoverflow.com/**questions/15704808/installing-**
>>>
>new-version-of-libtool-for-**libwebsocket-warmcat<http://stackoverflow.com/questions/15704808/installing-new-version-of-libtool-for-libwebsocket-warmcat>
>>> >
>>>                                  >> >> How to get it working ? >> >>
>>>             Please suggest
>>>                                  >> >> //Din >> >> >> >> On Fri, Mar
>29,
>>>             2013 at
>>>                                  7:53 PM, Dinesh Guleria
>>>             <din.gulu.er at gmail.com <mailto:din.gulu.er at gmail.com>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>__>> >> wrote: >>> >>>
>>>                                  As per andy suggestion i used patch
>in
>>>             this post
>>>                                  :-- >>> >>>
>>>             http://ml.libwebsockets.org/__**
>>>
>pipermail/libwebsockets/2013-_**_January/000027.html<http://ml.libwebsockets.org/__pipermail/libwebsockets/2013-__January/000027.html>
>>>
>>>            
><http://ml.libwebsockets.org/**pipermail/libwebsockets/2013-*
>>>
>*January/000027.html<http://ml.libwebsockets.org/pipermail/libwebsockets/2013-January/000027.html>
>>> >
>>>                                  >>> >>> Its getting configured but
>>>             getting error
>>>                                  at make :----- >>> >>>
>>>                                  ============================== >>>
>>>>
>>>                                  ./autogen.sh >>> Preparing the
>>>             libwebsockets build
>>>                                  system...please wait >>> >>> Found
>GNU
>>>             Autoconf
>>>                                  version 2.69 >>> perl: warning:
>Setting
>>>             locale
>>>                                  failed. >>> perl: warning: Please
>check
>>>             that your
>>>                                  locale settings: >>> LANGUAGE =
>>>             "en_US:", >>>
>>>                                  LC_ALL = (unset), >>> LANG =
>>>             "en_US.UTF-8" >>> are
>>>                                  supported and installed on your
>system.
>>>              >>> perl:
>>>                                  warning: Falling back to the
>standard
>>>             locale
>>>                                  ("C"). >>> perl: warning: Setting
>>>             locale failed.
>>>                                  >>> perl: warning: Please check
>that
>>>             your locale
>>>                                  settings: >>> LANGUAGE = "en_US:",
>>>>
>>>             LC_ALL =
>>>                                  (unset), >>> LANG = "en_US.UTF-8"
>>>> are
>>>                                  supported and installed on your
>system.
>>>              >>> perl:
>>>                                  warning: Falling back to the
>standard
>>>             locale
>>>                                  ("C"). >>> Found GNU Automake
>version
>>>             1.13 >>>
>>>                                  Found GNU Libtool version 1.5.26
>>>> >>>
>>>                                  Automatically preparing build ...
>done
>>>              >>> >>> The
>>>                                  libwebsockets build system is now
>>>             prepared. To
>>>                                  build here, run: >>> ./configure
>>>>
>>>             make >>> >>>
>>>                                  ===================== >>> >>> >>>
>but i
>>>             am getting
>>>                                  following error at make :-- >>> >>>
>>>
>>>             ==============================**__========= >>> >>>
>>>
>>>                                  make all-recursive >>> make[1]:
>>>             Entering directory
>>>                                  >>>
>>>
>>>             `/home/ignite/sbox2/rootfs/__**rfs-raspbian/home/pi/__**
>>> libwebsockets-__**fa17ca722544c9cdb14b87ca8a09fb**__cdc49d8cb5'
>>>
>>>                                  >>> Making all in lib >>> make[2]:
>>> Entering
>>>                                  directory >>>
>>>
>>>             `/home/ignite/sbox2/rootfs/__**rfs-raspbian/home/pi/__**
>>> libwebsockets-__**fa17ca722544c9cdb14b87ca8a09fb**__cdc49d8cb5/lib'
>>>
>>>                                  >>> /bin/bash ../libtool --tag=CC
>>>             --mode=compile
>>>                                  gcc -DHAVE_CONFIG_H -I. >>> -I..
>-Wall
>>>             -std=gnu99
>>>                                  -pedantic -rdynamic -fPIC -Werror
>-c >>>
>>>
>>>             -DINSTALL_DATADIR=\"/usr/__**local/share\" >>>
>>>
>>>             -DLWS_OPENSSL_CLIENT_CERTS=\"/**__etc/pki/tls/certs/\"
>>>                                  -g -O2 -D_DEBUG -MT >>>
>>>                                 
>libwebsockets_la-__**libwebsockets.lo
>>> -MD
>>>             -MP -MF >>>
>>>
>>>             .deps/libwebsockets_la-__**libwebsockets.Tpo -c -o >>>
>>>                                 
>libwebsockets_la-__**libwebsockets.lo
>>>
>>>             `test -f
>>>                                  'libwebsockets.c' || echo >>>
>>>             './'`libwebsockets.c
>>>                                  >>> ../libtool: line 865:
>X--tag=CC:
>>>             command not
>>>                                  found >>> ../libtool: line 898:
>>>             libtool: ignoring
>>>                                  unknown tag : command not found >>>
>>>             ../libtool:
>>>                                  line 865: X--mode=compile: command
>not
>>>             found >>>
>>>                                  ../libtool: line 1032: *** Warning:
>>>             inferring the
>>>                                  mode of operation is >>>
>deprecated.:
>>>             command not
>>>                                  found >>> ../libtool: line 1033:
>***
>>> Future
>>>                                  versions of Libtool will require
>>>>
>>>             --mode=MODE
>>>                                  be specified.: command not found
>>>>
>>>             ../libtool:
>>>                                  line 1176: Xgcc: command not found
>>>>
>>>             ../libtool:
>>>                                  line 1176: X-DHAVE_CONFIG_H:
>command
>>>             not found >>>
>>>                                  ../libtool: line 1176: X-I.:
>command
>>>             not found >>>
>>>                                  ../libtool: line 1176: X-I..:
>command
>>>             not found
>>>                                  >>> ../libtool: line 1176: X-Wall:
>>>             command not
>>>                                  found >>> ../libtool: line 1176:
>>>             X-std=gnu99:
>>>                                  command not found >>> ../libtool:
>line
>>>             1176:
>>>                                  X-pedantic: command not found >>>
>>>             ../libtool: line
>>>                                  1176: X-rdynamic: command not found
>>>>
>>>                                  ../libtool: line 1176: X-fPIC:
>command
>>>             not found
>>>                                  >>> ../libtool: line 1176:
>X-Werror:
>>>             command not
>>>                                  found >>> ../libtool: line 1176:
>X-c:
>>>             command not
>>>                                  found >>> ../libtool: line 1176:
>>>
>>>             X-DINSTALL_DATADIR="/usr/__**local/share": No such >>>
>>>
>>>                                  file or directory >>> ../libtool:
>line
>>>             1176:
>>>
>>>             X-DLWS_OPENSSL_CLIENT_CERTS="/**__etc/pki/tls/certs/":
>>>
>>>                                  >>> No such file or directory >>>
>>>             ../libtool: line
>>>                                  1176: X-g: command not found >>>
>>>             ../libtool: line
>>>                                  1176: X-O2: command not found >>>
>>>             ../libtool: line
>>>                                  1176: X-D_DEBUG: command not found
>>>>
>>>             ../libtool:
>>>                                  line 1176: X-MT: command not found
>>>>
>>>             ../libtool:
>>>                                  line 1176:
>>>             Xlibwebsockets_la-__**libwebsockets.lo:
>>>
>>>                                  command not >>> found >>>
>../libtool:
>>>             line 1176:
>>>                                  X-MD: command not found >>>
>../libtool:
>>>             line 1176:
>>>                                  X-MP: command not found >>>
>../libtool:
>>>             line 1176:
>>>                                  X-MF: command not found >>>
>../libtool:
>>>             line 1176:
>>>
>>>             X.deps/libwebsockets_la-__**libwebsockets.Tpo: No such
>>>
>>>                                  >>> file or directory >>>
>../libtool:
>>>             line 1176:
>>>                                  X-c: command not found >>>
>../libtool:
>>>             line 1229:
>>>                                 
>Xlibwebsockets_la-__**libwebsockets.lo:
>>>
>>>             command not
>>>                                  >>> found >>> ../libtool: line
>1234:
>>>             libtool:
>>>                                  compile: cannot determine name of
>>>             library >>>
>>>                                  object from `': command not found
>>>>
>>>             make[2]: ***
>>>                                 
>[libwebsockets_la-__**libwebsockets.lo]
>>>
>>>             Error 1 >>>
>>>                                  make[2]: Leaving directory >>>
>>>
>>>             `/home/ignite/sbox2/rootfs/__**rfs-raspbian/home/pi/__**
>>> libwebsockets-__**fa17ca722544c9cdb14b87ca8a09fb**__cdc49d8cb5/lib'
>>>
>>>                                  >>> make[1]: *** [all-recursive]
>Error
>>>             1 >>>
>>>                                  make[1]: Leaving directory >>>
>>>
>>>             `/home/ignite/sbox2/rootfs/__**rfs-raspbian/home/pi/__**
>>> libwebsockets-__**fa17ca722544c9cdb14b87ca8a09fb**__cdc49d8cb5'
>>>
>>>                                  >>> make: *** [all] Error 2 >>> >>>
>>>
>>>             ==============================**__========== >>> >>>
>>>
>>>                                  Please suggest how to resolve it ?
>>>>
>>>              >>> >>> >>>
>>>                                  On Fri, Mar 29, 2013 at 7:41 PM,
>Dinesh
>>>             Guleria
>>>                                  <din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>
>>>
>>>                                  <mailto:din.gulu.er at gmail.com
>>>             <mailto:din.gulu.er at gmail.com>**>__>> >>> wrote: >>>>
>>>                                  >>>> Hi, >>>> >>>> I am getting
>>>             following error
>>>                                  :---- >>>> >>>>
>>>
>>>             ==============================**__======== error
>>>                                  ==================== >>>> >>>>
>>>
>>>             /pi/libwebsockets-1.0-__**chrome25-firefox17$ sb2 -t
>>>
>>>                                  rfs-raspbian -eR >>>> ./autogen.sh
>>>>>
>>>             Preparing
>>>                                  the libwebsockets build
>system...please
>>>             wait >>>>
>>>                                  >>>> Found GNU Autoconf version
>2.69
>>>              >>>> perl:
>>>                                  warning: Setting locale failed.
>>>>>
>>> perl:
>>>                                  warning: Please check that your
>locale
>>>             settings:
>>>                                  >>>> LANGUAGE = "en_US:", >>>>
>LC_ALL =
>>>             (unset),
>>>                                  >>>> LANG = "en_US.UTF-8" >>>> are
>>>             supported and
>>>                                  installed on your system. >>>>
>perl:
>>>             warning:
>>>                                  Falling back to the standard locale
>>>             ("C"). >>>>
>>>                                  perl: warning: Setting locale
>failed.
>>>              >>>> perl:
>>>                                  warning: Please check that your
>locale
>>>             settings:
>>>                                  >>>> LANGUAGE = "en_US:", >>>>
>LC_ALL =
>>>             (unset),
>>>                                  >>>> LANG = "en_US.UTF-8" >>>> are
>>>             supported and
>>>                                  installed on your system. >>>>
>perl:
>>>             warning:
>>>                                  Falling back to the standard locale
>>>             ("C"). >>>>
>>>                                  Found GNU Automake version 1.13
>>>>>
>>>             Found GNU
>>>                                  Libtool version 1.5.26 >>>> >>>>
>>>             Automatically
>>>                                  preparing build ... Warning:
>autoreconf
>>>             failed
>>>                                  >>>> Attempting to run the
>preparation
>>>             steps
>>>                                  individually >>>> >>>> Preparing
>build
>>>             ... ERROR:
>>>                                  aclocal failed >>>> >>>> >>>>
>>>
>>>             ==============================**
>>> __============================**==__====
>>>
>>>                                  >>>> >>>> Please suggest, how to
>>>             resolve it. >>>>
>>>                                  >>>> //Din >>> >>> >> > > >
>>>
>>>             ______________________________**___________________ >
>>>                                  Libwebsockets mailing list >
>>>            
>Libwebsockets at ml.__libwebsocke**ts.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>
>>> >
>>>
>>>            
><mailto:Libwebsockets at ml.__lib**websockets.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>
>>> >>
>>>
>>>            
><mailto:Libwebsockets at ml.__lib**websockets.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>
>>> >
>>>
>>>
>>>            
><mailto:Libwebsockets at ml.__lib**websockets.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>>>>
>>> >
>>>             http://ml.libwebsockets.org/__**
>>>
>mailman/listinfo/libwebsockets<http://ml.libwebsockets.org/__mailman/listinfo/libwebsockets>
>>>            
><http://ml.libwebsockets.org/**mailman/listinfo/libwebsockets<http://ml.libwebsockets.org/mailman/listinfo/libwebsockets>
>>> **>
>>>                                  >
>>>             ______________________________**___________________
>>>                                  Libwebsockets mailing list
>>>            
>Libwebsockets at ml.__libwebsocke**ts.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>
>>> >
>>>
>>>            
><mailto:Libwebsockets at ml.__lib**websockets.org<http://libwebsockets.org>
>>>            
><mailto:Libwebsockets at ml.**libwebsockets.org<Libwebsockets at ml.libwebsockets.org>
>>> >>
>>>             http://ml.libwebsockets.org/__**
>>>
>mailman/listinfo/libwebsockets<http://ml.libwebsockets.org/__mailman/listinfo/libwebsockets>
>>>            
><http://ml.libwebsockets.org/**mailman/listinfo/libwebsockets<http://ml.libwebsockets.org/mailman/listinfo/libwebsockets>
>>> **>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20130407/0def384d/attachment-0001.html>


More information about the Libwebsockets mailing list