ccn-lite icon indicating copy to clipboard operation
ccn-lite copied to clipboard

Problems building on MacOS Mojave

Open CasparLindvall opened this issue 6 years ago • 4 comments

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?

CasparLindvall avatar Feb 18 '19 13:02 CasparLindvall

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.

blacksheeep avatar Feb 18 '19 15:02 blacksheeep

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.

CasparLindvall avatar Feb 18 '19 15:02 CasparLindvall

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?

mfrey avatar Feb 27 '19 11:02 mfrey

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

blacksheeep avatar Feb 27 '19 14:02 blacksheeep