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

Problems building on MacOS Mojave #346

Open
CasparLindvall opened this issue Feb 18, 2019 · 4 comments
Open

Problems building on MacOS Mojave #346

CasparLindvall opened this issue Feb 18, 2019 · 4 comments
Assignees
Labels

Comments

@CasparLindvall
Copy link

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/
#brianmario/mysql2#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
Copy link
Contributor

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

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

mfrey commented Feb 27, 2019

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

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

@mfrey mfrey removed their assignment Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants