mkschreder / orangerpcd

Websocket RPC server for OpenWRT
Other
27 stars 11 forks source link

compile failure #13

Open joyhope opened 7 years ago

joyhope commented 7 years ago

Which kind of library is missing?

In file included from orange_luaobject.c:22:0: orange_luaobject.h:22:31: fatal error: blobpack/blobpack.h: No such file or directory compilation terminated.

mkschreder commented 7 years ago

https://github.com/mkschreder/libblobpack.git

On Fri, Jan 20, 2017 at 9:12 AM, joyhope notifications@github.com wrote:

Which kind of library is missing?

In file included from orange_luaobject.c:22:0: orange_luaobject.h:22:31: fatal error: blobpack/blobpack.h: No such file or directory compilation terminated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mkschreder/orangerpcd/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AERqifIOA0eEyFC1d5qpRXC-SFGuX5hEks5rUGxpgaJpZM4LpCs8 .

mkschreder commented 7 years ago

If you build using juci-openwrt-feed then all of these libraries are automatically selected.

On Fri, Jan 20, 2017 at 9:53 AM, Martin Schroeder < mkschreder.uk@googlemail.com> wrote:

https://github.com/mkschreder/libblobpack.git

On Fri, Jan 20, 2017 at 9:12 AM, joyhope notifications@github.com wrote:

Which kind of library is missing?

In file included from orange_luaobject.c:22:0: orange_luaobject.h:22:31: fatal error: blobpack/blobpack.h: No such file or directory compilation terminated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mkschreder/orangerpcd/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AERqifIOA0eEyFC1d5qpRXC-SFGuX5hEks5rUGxpgaJpZM4LpCs8 .

jtway commented 7 years ago

For me there is a failure compiling:


blob.c:42:17: error: implicit declaration of function 'htobe32' [-Werror=implicit-function-declaration]
  attr->id_len = htobe32(len);
                 ^
blob.c:42:2: error: nested extern declaration of 'htobe32' [-Werror=nested-externs]
  attr->id_len = htobe32(len);
  ^
blob.c: In function 'blob_put_u16':
blob.c:162:8: error: implicit declaration of function 'htobe16' [-Werror=implicit-function-declaration]
  val = htobe16(val);
        ^
blob.c:162:2: error: nested extern declaration of 'htobe16' [-Werror=nested-externs]
  val = htobe16(val);
  ^
blob.c: In function 'blob_put_u64':
blob.c:172:8: error: implicit declaration of function 'htobe64' [-Werror=implicit-function-declaration]
  val = htobe64(val);
        ^
blob.c:172:2: error: nested extern declaration of 'htobe64' [-Werror=nested-externs]
  val = htobe64(val);
  ^
cc1: all warnings being treated as errors
Makefile:442: recipe for target 'libblobpack_la-blob.lo' failed```
mkschreder commented 7 years ago

my latest commit should fix that: https://github.com/mkschreder/libblobpack/commit/d0fe5175995c550f6961d2675d80a96e44242475

pushed to master juci feed as well

On Fri, Feb 17, 2017 at 11:34 PM, Josh Tway notifications@github.com wrote:

For me there is a failure compiling:

blob.c:42:17: error: implicit declaration of function 'htobe32' [-Werror=implicit-function-declaration] attr->id_len = htobe32(len); ^ blob.c:42:2: error: nested extern declaration of 'htobe32' [-Werror=nested-externs] attr->id_len = htobe32(len); ^ blob.c: In function 'blob_put_u16': blob.c:162:8: error: implicit declaration of function 'htobe16' [-Werror=implicit-function-declaration] val = htobe16(val); ^ blob.c:162:2: error: nested extern declaration of 'htobe16' [-Werror=nested-externs] val = htobe16(val); ^ blob.c: In function 'blob_put_u64': blob.c:172:8: error: implicit declaration of function 'htobe64' [-Werror=implicit-function-declaration] val = htobe64(val); ^ blob.c:172:2: error: nested extern declaration of 'htobe64' [-Werror=nested-externs] val = htobe64(val); ^ cc1: all warnings being treated as errors Makefile:442: recipe for target 'libblobpack_la-blob.lo' failed```

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mkschreder/orangerpcd/issues/13#issuecomment-280785296, or mute the thread https://github.com/notifications/unsubscribe-auth/AERqiU0k6SPJCjLI-OUyChQ9B_kulJOxks5rdiCIgaJpZM4LpCs8 .