Netsukuku / netsukuku

Revived C-code
GNU General Public License v2.0
143 stars 34 forks source link

Compile error on Raspberry Pi. #12

Open seniskenis opened 9 years ago

seniskenis commented 9 years ago

When trying to compile on Raspbian this error occurs:

In file included from src/accept.c:32:0: src/inet.h:212:48: error: unknown type name ‘off64_t’

gcc (Debian 4.6.3-14+rpi1) 4.6.3.

is where a way to enable 64 bit interfaces on ARMv6?

MissValeska commented 9 years ago

Hmmmm, I'm not sure as to if the Raspberry Pi has a 64 bit CPU, Or if there is a 64 bit version of Raspbian. However, This is an issue that I will look into, I will submit a solution soon, Thank you for your post!

MissValeska commented 9 years ago

git pull and try compiling now, It should work.

seniskenis commented 9 years ago

Thanks for fast response, no raspberry pi is 32bit armv61 and I doubt that any openwrt supported routers have 64bit cpu's (I guessed that what this project is targeted at...). Now when trying to compile I'm getting another error:

pi@raspberrypi ~/netsukuku $ scons

scons: Reading SConscript files ...

Compiling Netsukuku for linux

Configuring... Checking for C library gmp... yes Checking for C header file gmp.h... yes Checking for C header file zlib.h... yes Checking for C library pthread... yes Checking for C library crypto... yes Checking for C header file openssl/pem.h... yes Generating conf/netsukuku.conf from conf/ntk_scons.conf.in

scons: warning: Two different environments were specified for target xmalloc.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 158, in

scons: warning: Two different environments were specified for target log.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 158, in

scons: warning: Two different environments were specified for target misc.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 158, in

scons: warning: Two different environments were specified for target buffer.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 158, in

scons: warning: Two different environments were specified for target endianness.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 158, in

scons: warning: Two different environments were specified for target andns_lib.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target andns_net.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target crypto.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target snsd_cache.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target inet.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target ll_map.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target libnetlink.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target err_errno.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target xmalloc.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target log.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target misc.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target buffer.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in

scons: warning: Two different environments were specified for target endianness.o, but they appear to have the same action: $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES File "/home/pi/netsukuku/src/SConscript", line 159, in scons: done reading SConscript files. scons: Building targets ... gcc -o src/accept.o -c -g -Wall -Isrc src/accept.c In file included from src/accept.c:32:0: src/inet.h:217:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘inet_sendfile64’ scons: *\ [src/accept.o] Error 1 scons: building terminated because of errors.

MissValeska commented 9 years ago

Ah, Yeah that is interesting, I'll just comment that function for now.

MissValeska commented 9 years ago

done

MissValeska commented 9 years ago

You're welcome, and yeah, sorry for the late response.

vannitorelli commented 9 years ago

Hi, I'm trying to compile Netsukuku on a Raspberry Pi 2 (32-bit ARM Cortex-A7). As of todays codebase, I get the following error when running scons

gcc -o src/accept.o -c -g -Wall -Isrc src/accept.c In file included from src/accept.c:32:0: src/inet.h:217:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘inet_sendfile64’

Thanks in advance.

MissValeska commented 9 years ago

Sorry about that! Try git pull and compiling now, It should work now.

vannitorelli commented 9 years ago

Graziegraziegraziearigatougozaimasu!

MissValeska commented 9 years ago

Lol, You're welcome, I assume it is working now?