-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux complie problem. #2
Comments
The library has depending on glibc libraries, and does this is your original intention? root@ubuntu:~/libraries# ./build.sh |
for (uint64_t i = 0; i < n; ++ i) { |
@zh794390558 Thanks for your issue report. |
@core1011 非常感谢您的建议。 |
@gozfree liblock librpc libskt must use -std=gnu99 to compile, do you known the diffrence of the two options. |
@zh794390558 Thanks for your fix, and I have fix the compile error instead of using '-std=gnu99' |
root@ubuntu:
/libraries# gcc -v14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuUsing built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
root@ubuntu:~/libraries# ./build.sh
==== clean linux libmacro done.
==== clean linux libatomic done.
==== clean linux libtime done.
==== clean linux liblog done.
==== clean linux libgevent done.
==== clean linux libworkq done.
==== clean linux libdict done.
==== clean linux libsort done.
==== clean linux librbtree done.
==== clean linux libringbuffer done.
==== clean linux liblock done.
==== clean linux libthread done.
==== clean linux libconfig done.
==== clean linux libosal done.
==== clean linux libvector done.
==== clean linux libdebug done.
==== clean linux libfile done.
==== clean linux libskt done.
==== clean linux libstun done.
==== clean linux libptcp done.
==== clean linux librpc done.
==== clean linux libp2p done.
==== clean linux libipc done.
==== build linux libmacro done.
==== build linux libatomic done.
==== build linux libtime done.
==== build linux liblog done.
==== build linux libgevent done.
==== build linux libworkq done.
==== build linux libdict done.
==== build linux libsort done.
==== build linux librbtree done.
==== build linux libringbuffer done.
test_liblock.c: In function ‘print_mutex_lock’:
test_liblock.c:45:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint64_t i = 0; i < n; ++ i) {
^
test_liblock.c:45:5: note: use option -std=c99 or -std=gnu99 to compile your code
test_liblock.c: In function ‘print_spin_lock’:
test_liblock.c:72:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint64_t i = 0; i < n; ++ i) {
^
make: *** [test_liblock.o] Error 1
==== build linux liblock failed
In file included from libthread.c:13:0:
libthread.h:14:21: fatal error: liblock.h: No such file or directory
#include <liblock.h>
^
compilation terminated.
make: *** [libthread.o] Error 1
==== build linux libthread failed
Package lua5.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing
lua5.2.pc' to the PKG_CONFIG_PATH environment variable No package 'lua5.2' found Package lua5.2 was not found in the pkg-config search path. Perhaps you should add the directory containing
lua5.2.pc'to the PKG_CONFIG_PATH environment variable
No package 'lua5.2' found
Package lua5.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing
lua5.2.pc' to the PKG_CONFIG_PATH environment variable No package 'lua5.2' found Package lua5.2 was not found in the pkg-config search path. Perhaps you should add the directory containing
lua5.2.pc'to the PKG_CONFIG_PATH environment variable
No package 'lua5.2' found
Package lua5.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua5.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua5.2' found
json/json_config.c:8:21: fatal error: jansson.h: No such file or directory
#include <jansson.h>
^
compilation terminated.
make: *** [json/json_config.o] Error 1
==== build linux libconfig failed
==== build linux libosal done.
==== build linux libvector done.
libdebug.c: In function ‘debug_backtrace_init’:
libdebug.c:121:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint32_t i = 0; i < (sizeof(signum) / sizeof(uint32_t)); ++i) {
^
libdebug.c:121:5: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [libdebug.o] Error 1
==== build linux libdebug failed
==== build linux libfile done.
test_libskt.c:17:23: fatal error: libthread.h: No such file or directory
#include <libthread.h>
^
compilation terminated.
make: *** [test_libskt.o] Error 1
==== build linux libskt failed
==== build linux libstun done.
==== build linux libptcp done.
librpc.c:15:20: fatal error: libskt.h: No such file or directory
#include <libskt.h>
^
compilation terminated.
make: *** [librpc.o] Error 1
==== build linux librpc failed
libp2p.c:21:20: fatal error: libskt.h: No such file or directory
#include <libskt.h>
^
compilation terminated.
make: *** [libp2p.o] Error 1
==== build linux libp2p failed
netlink.c:20:23: fatal error: libthread.h: No such file or directory
#include <libthread.h>
^
compilation terminated.
make: *** [netlink.o] Error 1
==== build linux libipc failed
The text was updated successfully, but these errors were encountered: