Open
Conversation
|
Hello. I'm trying to install RDSEED in Ubuntu 24.04.2 LTS using the last changes in Makefile in lines 36, 38 and 45 as follow: Line 36: and installed additional libraries that you commit in the thread but it fails. sudo apt install make g++ libnsl-dev libntirpc-devThe error that appeared is this: /usr/bin/ld: Parsers/parse_key.o:/home/inversionesw/src/rdseed/Parsers/../Include/ddl.h:160: definiciones múltiples de `key'; Decoders/decode_ddl.o:/home/inversionesw/src/rdseed/Decoders/../Include/ddl.h:160: primero se definió aquí
/usr/bin/ld: Printers/print_key.o:/home/inversionesw/src/rdseed/Printers/../Include/ddl.h:160: definiciones múltiples de `key'; Decoders/decode_ddl.o:/home/inversionesw/src/rdseed/Decoders/../Include/ddl.h:160: primero se definió aquí
collect2: error: ld returned 1 exit status
make: *** [Makefile:88: rdseed] Error 1Thanks in advance. |
Author
This error comes from |
|
Thank you very much. This solution works for me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I saw that there was a missing include folder, so I added the following path :
-I/usr/include/ntirpc/.Then there was a missing library link too, so I added the following (only for Linux) :
LDFLAGS = -lm -lc -ltirpc.Furthermore, there was some warnings that newer C compilers (gcc 14 in my case) don't really like, so I ignored the following :
-Wno-incompatible-pointer-types -Wno-implicit-int -Wno-implicit-function-declaration.Finally, there was a variable named :
That was defined inside a header... Which I don't know when was this possible. Nevertheless, seeing that no reference of this variable was given anywhere in the C files, i just deleted this line (I tried to use an
externat first but because it was not used.).