LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   configure error (https://www.linuxquestions.org/questions/linux-newbie-8/configure-error-4175414171/)

ripper 06-30-2012 11:16 AM

configure error
 
Code:

Building: /usr/bin/ld: /tmp/ccJn0HdJ.o: undefined reference to symbol 'EVP_aes_256_cbc'
/usr/bin/ld: note: 'EVP_aes_256_cbc' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
/lib64/libcrypto.so.10: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [all] Error 1

i am getting this error when i try to configure
how to i link it with gcc?

Slackyman 06-30-2012 11:25 AM

Try appending -L/lib64 -lcrypto.

ripper 06-30-2012 11:37 AM

thanks alot slack it worked :D

Slackyman 06-30-2012 11:42 AM

Keep it in mind: you'll face that kind of errors when the linker cannot find a reference to a symbol, but find a library containing it.
You need to add the path to the library and, eventually, the pkg-config flag.
In fact if you run pkg-config --libs libcrypto you get the flags for the libs to add! :)
To get the respective clfags, instead, you can run pkg-config --cflags libcrypto (in this case none are required)


All times are GMT -5. The time now is 03:56 PM.