cn-uofbasel / ccn-lite

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

Problems building on MacOS Mojave #346

Open CasparLindvall opened 5 years ago

CasparLindvall commented 5 years ago

Description

Cannot build CCN-lite for MacOS version mojave. Error when executing the makefile.

Steps to reproduce the issue

Follow the unix installation instructions. With openssl version 1.0.2q

Expected results

CCN-lite builds for MacOS.

Actual results

"[ 57%] Linking C executable ../bin/ccn-lite-relay ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [bin/ccn-lite-relay] Error 1 make[1]: [ccnl-relay/CMakeFiles/ccn-lite-relay.dir/all] Error 2 make: *** [all] Error 2"-->

and then error types

Solution?

export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/

https://github.com/brianmario/mysql2/issues/795

Then manually fix ~10 type errors that occur when compiling. (%lu to %llu etc)

It will compile but haven't tested if it works. Would those chages lead to any problems?

blacksheeep commented 5 years ago

There should be not problem by changing the types.

However, I will check that to make the code in the 'master' compiling on Mohave again.

Thanks for reporting.

CasparLindvall commented 5 years ago

After you've tested - could you tell me if you're able to do the tutorial?

I'm having the following problem:

$ FACEID=$CCNL_HOME/build/bin/ccn-lite-ctrl -x /tmp/mgmt-relay-a.sock newUDPface any 127.0.0.1 9999 | $CCNL_HOME/build/bin/ccn-lite-ccnb2xml | grep FACEID | sed -e 's/^[^0-9]*\([0-9]\+\).*/\1/' sending datagram message: Invalid argument

(Also printed some values "sock: 3, data: ????ccnx, len: 4549452001")

Is the data "????ccnx" of the correct format? I had to manually create the $CCNL_HOME/test/ndntlv folder before hand. Unsure if that's should be needed or not.

mfrey commented 5 years ago

However, I will check that to make the code in the 'master' compiling on Mohave again.

Is there any update? Shall I still look investigate the issue?

blacksheeep commented 5 years ago

I did not find time to search for the number convertion problems, yet. I have the impression, clang and gcc handling this quite different. If you have some time, please, go ahead