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

Linking Errors on linux #1

Closed
GeorgeNs opened this issue Sep 7, 2018 · 3 comments
Closed

Linking Errors on linux #1

GeorgeNs opened this issue Sep 7, 2018 · 3 comments

Comments

@GeorgeNs
Copy link
Contributor

GeorgeNs commented Sep 7, 2018

Hi. It's very interesting to see the mammut resurrected;)!

The first building step gives this error:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
__open_missing_mode ();

Then on line 392 of linux_threads cpp file i add one more argument in the end:
internal = (void*) open (temp.getFullPathName().toUTF8(), 'a', 0600); (is this correct?)
After that the first make is ok.

Then the last step fails so:
/usr/bin/x86_64-linux-gnu-ld: ../juce_1_44/juce/bin/libjuce.a(juce_linux_Threads.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile.linux:151: recipe for target 'mammut' failed
make: *** [mammut] Error 1

I checked for -ldl in makefile,exists or something else i am missing?
Thanks~

@GeorgeNs
Copy link
Contributor Author

GeorgeNs commented Sep 8, 2018

Okay. I figured out that after adding 0600 as a third argument,
then I had to configure the makefile.linux and change the -ljuce position to the beginning of the list and after that i had to add also -ldl, I hope i did correct.
Now old time classics mammut has been built and run without errors!

@kmatheussen
Copy link
Owner

kmatheussen commented Sep 8, 2018 via email

@GeorgeNs
Copy link
Contributor Author

GeorgeNs commented Sep 8, 2018

I made a pull request. Hope it will be helpful. This is my first pull request so if you notice anything wrong please let me know.thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants