Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22061

Getting "DSO missing from command line" with custom glibc

$
0
0

I am trying to link a program with a custom GLIBC installation. I have tried the following options, but got the same error

objs/ngx_modules.o \-Wl,--emit-relocs -Wl,--dynamic-linker=/opt/glibc-2.23-install/lib/ld-2.23.so -ldl -Wl,-rpath-link,/opt/glibc-2.23-install/lib -lcrypt -lpcre -lz \-Wl,-E/usr/bin/ld: objs/src/core/ngx_shmtx.o: undefined reference to symbol 'sem_post@@GLIBC_2.2.5'/opt/glibc-2.23-install/lib/libpthread.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit status

and

objs/ngx_modules.o \-Wl,--emit-relocs -Wl,--dynamic-linker=/opt/glibc-2.23-install/lib/ld-2.23.so -ldl -L/opt/glibc-2.23-install/lib -lcrypt -lpcre -lz \-Wl,-E/usr/bin/ld: objs/src/core/ngx_shmtx.o: undefined reference to symbol 'sem_post@@GLIBC_2.2.5'//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusobjs/Makefile:226: recipe for target 'objs/nginx' failed

and

objs/ngx_modules.o \-Wl,--emit-relocs -Wl,--dynamic-linker=/opt/glibc-2.23-install/lib/ld-2.23.so -ldl -L/opt/glibc-2.23-install/lib/libpthread.so -lcrypt -lpcre -lz \-Wl,-E/usr/bin/ld: objs/src/core/ngx_shmtx.o: undefined reference to symbol 'sem_post@@GLIBC_2.2.5'//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusobjs/Makefile:226: recipe for target 'objs/nginx' failed

Any alternative then?


Viewing all articles
Browse latest Browse all 22061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>