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

compile error #3106

Closed
makaronpl opened this issue Apr 2, 2017 · 5 comments
Closed

compile error #3106

makaronpl opened this issue Apr 2, 2017 · 5 comments

Comments

@makaronpl
Copy link

hello,
When I compiling a program receives an error:

make -f ./Makefile.shared -e \
        PLATFORM=linux-mips32 \
        PERL="/usr/bin/perl5.22.1" SRCDIR='.' DSTDIR="." \
        INSTALLTOP='/usr/local' LIBDIR='lib' \
        LIBDEPS=' '""' -ldl ' \
        LIBNAME=crypto LIBVERSION=1.1 \
        LIBCOMPATVERSIONS=';' \
        CC='gcc' CFLAGS='-DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -Wall -O3 -pthread -mabi=32 -DBN_DIV3W -mips2  -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE' \
        LDFLAGS='' \
        SHARED_LDFLAGS='-Wl,-znodelete -mabi=32 ' SHLIB_EXT=.so.1.1 \
        RC='windres' SHARED_RCFLAGS='' \
        link_shlib.linux-shared
make[2]: Entering directory '/openssl'
LD_LIBRARY_PATH=: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/lib/engines-1.1" -Wall -O3 -pthread -mabi=32 -DBN_DIV3W -mips2 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -Wl,-znodelete -mabi=32 -shared -Wl,-Bsymbolic -Wl,-soname=libcrypto.so.1.1 -o ./libcrypto.so.1.1 -Wl,--whole-archive,--version-script=crypto.map ./libcrypto.a -Wl,--no-whole-archive -ldl
/usr/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile.shared:197: link_shlib.linux-shared] Error 1
make[2]: Leaving directory '/openssl'
make[1]: *** [Makefile:653: libcrypto.so] Error 2
make[1]: Leaving directory '/openssl'
make: *** [Makefile:133: all] Error 2

How can I compile openssl-dev?

@levitte
Copy link
Member

levitte commented Apr 2, 2017

I can't tell how you configured. I think we need to know.

@dot-asm
Copy link
Contributor

dot-asm commented Apr 2, 2017

Is it possible that it's problem [similar to] mentioned in PROBLEMS file [removed in 1.1.0, but still in 1.0.2], one with dietlibc? Trouble was that there is no libdl in dietlibc, and you had to edit Makefile to clear EX_LIBS variable...

@dot-asm
Copy link
Contributor

dot-asm commented Apr 2, 2017

It should also be possible to pass EX_LIBS= as additional argument to make as alternative to editing generated Makefile. Literally make EX_LIBS=.

@makaronpl
Copy link
Author

ok i remove -ldl from EX_LIBS= -ldl

@nickthetait
Copy link
Contributor

Seems like this issue can be closed

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

5 participants