<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I remember coming across this this and from memory it is an ipv6
    issue.  From what I remember the solution is to either disable IPv6
    in the libwebsockets compilation or enable IPv6 on the raspberry pi.<br>
    I have libwebsockets running on my rpi and it works great.<br>
    Regards <br>
    Graham<br>
    <div class="moz-cite-prefix">On 25/06/14 21:39, Trac wrote:<br>
    </div>
    <blockquote
      cite="mid:045.18e311f868f5aa647d13ce5448b0139c@libwebsockets.org"
      type="cite">
      <pre wrap="">#74: ERROR opening socket on raspberry pi
------------------------------------+-----------------
 Reporter:  DonWasabi               |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:                          |
------------------------------------+-----------------
 hi :),
 the libwebsockets-test-server keeps telling me this

 pi@raspberrypi ~/libwebsockets/build/bin $ ./libwebsockets-test-server
 lwsts[3235]: libwebsockets test server - (C) Copyright 2010-2013 Andy
 Green <a class="moz-txt-link-rfc2396E" href="mailto:andy@warmcat.com"><andy@warmcat.com></a> - licensed under LGPL2.1
 lwsts[3235]: Initial logging level 7
 lwsts[3235]: Library version: 1.3 dfca3ab
 lwsts[3235]: IPV6 compiled in and enabled
 lwsts[3235]: libev support not compiled in
 lwsts[3235]:  static allocation: 4468 + (12 x 1024 fds) = 16756 bytes
 lwsts[3235]:  canonical_hostname = raspberrypi
 lwsts[3235]:  per-conn mem: 128 + 1554 headers + protocol rx buf
 lwsts[3235]:  Compiled with OpenSSL support
 lwsts[3235]:  Using non-SSL mode
 lwsts[3235]: ERROR opening socket
 lwsts[3235]: libwebsocket_context_destroy
 lwsts[3235]: mirror protocol cleaning up
 lwsts[3235]: libwebsocket init failed

 even after a fresh install with 2014-01-07-wheezy-raspbian.

 Here is the list of comands i did directly after the install:

 sudo apt-get update
 sudo apt-get upgrade
 sudo reboot
 sudo apt-get install cmake git libssl-dev
 sudo git clone git://git.warmcat.com/libwebsockets
 cd libwebsockets
 mkdir build
 cd build
 sudo cmake ..
 sudo make
 sudo make install

 sudo ln -s /usr/local/lib/libwebsockets.so /usr/lib/libwebsockets.so
 sudo ln -s /usr/local/lib/libwebsockets.so.4.0.0
 /usr/lib/libwebsockets.so.4.0.0


 Did i do anything wrong or is it a bug? I would really enjoy using your
 lib but i can't get it working.

 greetings

--
Ticket URL: <a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org/trac/libwebsockets/ticket/74"><http://libwebsockets.org/trac/libwebsockets/ticket/74></a>
libwebsockets <a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org"><http://libwebsockets.org></a>
libwebsockets C library
_______________________________________________
Libwebsockets mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libwebsockets@ml.libwebsockets.org">Libwebsockets@ml.libwebsockets.org</a>
<a class="moz-txt-link-freetext" href="http://ml.libwebsockets.org/mailman/listinfo/libwebsockets">http://ml.libwebsockets.org/mailman/listinfo/libwebsockets</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <!-- Begin Peavey Digital Research e-mail signature - last modified 04/10/2012 by Stephen Joy -->
      <table cellpadding="0" cellspacing="0" width="90%">
        <tbody>
          <tr>
            <td
style="font-size:12.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Graham
              Newton</td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Senior
              Software Engineer</td>
          </tr>
          <tr>
            <td>
              <hr color="#0000A0"></td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Peavey
              Digital Research</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">A
              Division of Peavey Electronics Corporation</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"
              width="50">Phone</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Direct</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Email</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a class="moz-txt-link-abbreviated" href="mailto:gnewton@peavey-eu.com">gnewton@peavey-eu.com</a></td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Web</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a
                href="http://www.peaveycommercialaudio.com">www.peaveycommercialaudio.com</a>
              -
              <a href="http://mm.peavey.com">mm.peavey.com</a> -
              <a href="http://www.crestaudio.com">www.crestaudio.com</a>
              -
              <a href="http://aa.peavey.com">aa.peavey.com</a> -
              <a href="http://www.peaveyoxford.com">www.peaveyoxford.com</a>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                COMMERCIAL AUDIO</b> - Great Folds Road, Corby,
              Northamptonshire, NN18 9ET UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                DIGITAL RESEARCH</b> - 6 Elm Place, Eynsham, Oxfordshire
              OX29 4BD UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ITALIA</b> - Via P.La Torre 21, Zona Ind.le Cerretano,
              60022 Castelfidardo An, Italy</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                CHINA</b> - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou,
              Shenzhen China 518067</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ELECTRONICS CORPORATION</b> - 5022 Hartley Peavey Drive,
              Meridian, MS 39305 USA</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:7.0pt;font-weight:normal;font-family:Arial,sans-serif;color:#929292">Peavey
              Electronics Limited is a registered company in England
              & Wales, Company Registration No.: 01249126
              <br>
              Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY
              NORTHAMPTONSHIRE. NN18 9ET</td>
          </tr>
        </tbody>
      </table>
      <!-- End Peavey Digital Research e-mail signature -->
    </div>
  </body>
</html>