lanmap2 icon indicating copy to clipboard operation
lanmap2 copied to clipboard

env.h:31:3: error: #error fix endianness detection

Open g1ra opened this issue 11 years ago • 2 comments

make[1]: Leaving directory `/home/g1ra/telem/lanmap2/db'                                                          
make -C tools                                                                                                     
make[1]: Entering directory `/home/g1ra/telem/lanmap2/tools'                                                      
cc -W -Wall -Wno-unused -pedantic -I../src -ggdb -Wno-unused-parameter  -ggdb  oui2insert.c   -o oui2insert       
cc -W -Wall -Wno-unused -pedantic -I../src -ggdb -Wno-unused-parameter   -c -o os-graph.o os-graph.c              
cc -W -Wall -Wno-unused -pedantic -I../src -ggdb -Wno-unused-parameter   -c -o nary.o nary.c                      
cc -W -Wall -Wno-unused -pedantic -I../src -ggdb -Wno-unused-parameter   -c -o ../src/csvread.o ../src/csvread.c  
cc -W -Wall -Wno-unused -pedantic -I../src -ggdb -Wno-unused-parameter   -c -o ../src/util.o ../src/util.c        
cc -ggdb  os-graph.o nary.o ../src/csvread.o ../src/util.o   -o os-graph                                          
make[1]: Leaving directory `/home/g1ra/telem/lanmap2/tools'                                                       
make -C src                                                                                                       
make[1]: Entering directory `/home/g1ra/telem/lanmap2/src'                                                        
cc -W -Wall -std=gnu99 -Wno-unused -ggdb -O0 -DDEBUG -Wno-unused-parameter   -c -o cap.o cap.c                    
In file included from cap.c:20:0:                                                                                 
env.h:31:3: error: #error fix endianness detection!                                                               
make[1]: *** [cap.o] Error 1                                                                                      
make[1]: Leaving directory `/home/g1ra/telem/lanmap2/src'                                                         
make: *** [all] Error 2                                                                                           

g1ra avatar Sep 09 '13 19:09 g1ra

Yeap Me too.

[blah@localhost src]$ lscpu | grep -i byte Byte Order: Little Endian [blah@localhost src]$ make cc -W -Wall -std=gnu99 -Wno-unused -ggdb -O0 -DDEBUG -Wno-unused-parameter -c -o cap.o cap.c En el fichero incluído de cap.c:20: env.h:31:3: error: #error fix endianness detection! make: *** [cap.o] Error 1

I follow instruction patch from http://www.itsecuritypros.org/mapping-your-network-with-lanmap2/ (in comments) but no success

vim env.h

24 #if defined(LITTLE_ENDIAN) 25 # define IS_BIG_ENDIAN 0 26 # define IS_LITTLE_ENDIAN 1 27 #elif defined(BIG_ENDIAN) 28 # define IS_BIG_ENDIAN 1 29 # define IS_LITTLE_ENDIAN 0 30 #else 31 # error fix endianness detection! 32 #define IS_BIG_ENDIAN 0 33 #define IS_LITTLE_ENDIAN 1 34 #endif

changeme avatar Sep 15 '13 15:09 changeme

thanks for the heads up guys; try pulling and building again; 4f8afed39948756ea8628ab3209b73432adac6fe might work

rflynn avatar Sep 15 '13 16:09 rflynn