cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

CMake file for the first build does not compile. (multiple definition of 'mem' from ccnl-malloc.h) #387

Closed LimeCida closed 2 years ago

LimeCida commented 2 years ago

Description

Following the tutorial at "https://github.com/cn-uofbasel/ccn-lite/blob/master/doc/README-unix.md" the "make" command results in a "multiple definition of 'mem'" error. I've attempted the installation multiple times with earlier releases, and even on a different machine, only for the same result.

Steps to reproduce the issue

Following the tutorial at "https://github.com/cn-uofbasel/ccn-lite/blob/master/doc/README-unix.md"

Expected results

Make file successfully builds and installs the ccn-lite library.

Actual results

[ 68%] Linking C executable ../bin/ccn-lite-relay /usr/bin/ld: ../lib/libccnl-pkt.a(ccnl-pkt-ndntlv.c.o):/home/temp/Desktop/firmware_tutorial/ccn-lite/src/ccnl-pkt/../ccnl-core/include/ccnl-malloc.h:43: multiple definition of 'mem'; CMakeFiles/ccn-lite-relay.dir/ccn-lite-relay.c.o:/home/temp/Desktop/firmware_tutorial/ccn-lite/src/ccnl-relay/../ccnl-core/include/ccnl-malloc.h:43: first defined here

^ This error message repeats numberous times before the make file results in the following error:

collect2: error: ld returned 1 exit status make[2]: [ccnl-relay/CMakeFiles/ccn-lite-relay.dir/build.make:105: bin/ccn-lite-relay] Error 1 make[1]: [CMakefiles/Makefile2:355: ccnl-relay/CMakeFiles/ccn-lite-relay.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Versions

Operating system: Linux