Skip to content
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

Compile error on Raspberry Pi. #12

Open
seniskenis opened this issue Jan 12, 2015 · 10 comments
Open

Compile error on Raspberry Pi. #12

seniskenis opened this issue Jan 12, 2015 · 10 comments

Comments

@seniskenis
Copy link

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
Copy link

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
Copy link

git pull and try compiling now, It should work.

@seniskenis
Copy link
Author

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
Copy link

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

@MissValeska
Copy link

done

@MissValeska
Copy link

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

@vannitorelli
Copy link

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
Copy link

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

@vannitorelli
Copy link

Graziegraziegraziearigatougozaimasu!

@MissValeska
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants