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

Failed to Install #17

Open
sah-anshu opened this issue Oct 20, 2019 · 3 comments
Open

Failed to Install #17

sah-anshu opened this issue Oct 20, 2019 · 3 comments

Comments

@sah-anshu
Copy link

gcc ../pb-config --cflags -I.. -fPIC -o pluginbox_example.lo -c pluginbox_example.c
gcc -o pluginbox_example.so pluginbox_example.lo ../pb-config --libs -ldb -L../gwlib -lgw -lgwlib -shared
/bin/ld: /usr/local/lib/kannel/libgwlib.a(log.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/kannel/libgwlib.a(utils.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/kannel/libgwlib.a(charset.o): relocation R_X86_64_PC32 against symbol chars_aliases' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/kannel/libgwlib.a(http.o): relocation R_X86_64_PC32 against symbol http_start_request' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:84: pluginbox_example.so] Error 1
rm pluginbox_example.lo

@donald-jackson
Copy link
Owner

what OS and architecture are you trying to build on ?

@sah-anshu
Copy link
Author

I'm installing in Debian10 x64

@sah-anshu
Copy link
Author

make[2]: Entering directory '/home/smsc7/kannel/kannel-pluginbox/gw'
gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw    -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/hiredis -MT pluginbox.o -MD -MP -MF .deps/pluginbox.Tpo -c -o pluginbox.o pluginbox.c
mv -f .deps/pluginbox.Tpo .deps/pluginbox.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw    -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/hiredis -MT pluginbox_plugin.o -MD -MP -MF .deps/pluginbox_plugin.Tpo -c -o pluginbox_plugin.o pluginbox_plugin.c
mv -f .deps/pluginbox_plugin.Tpo .deps/pluginbox_plugin.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw    -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/hiredis -MT pluginbox_http.o -MD -MP -MF .deps/pluginbox_http.Tpo -c -o pluginbox_http.o pluginbox_http.c
mv -f .deps/pluginbox_http.Tpo .deps/pluginbox_http.Po
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/hiredis  -rdynamic -o pluginbox pluginbox.o pluginbox_plugin.o pluginbox_http.o  -ldb -L../gwlib -lgwlib  -L/usr/local/lib/kannel -lgw -lwap -lgwlib -lpq -lssl -lrt -lresolv -lnsl -lm  -lpthread -lxml2 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -lcrypto -lssl -L/usr/lib/x86_64-linux-gnu -L/usr/lib -lhiredis 
libtool: link: gcc -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/hiredis -rdynamic -o pluginbox pluginbox.o pluginbox_plugin.o pluginbox_http.o  -ldb -L../gwlib -L/usr/local/lib/kannel -lgw -lwap -lgwlib -lpq -lrt -lresolv -lnsl -lm -lpthread -lxml2 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -lcrypto -lssl -L/usr/lib/x86_64-linux-gnu -L/usr/lib -lhiredis
/usr/bin/ld: pluginbox_plugin.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:311: pluginbox] Error 1
make[2]: Leaving directory '/home/smsc7/kannel/kannel-pluginbox/gw'
make[1]: *** [Makefile:351: all-recursive] Error 1
make[1]: Leaving directory '/home/smsc7/kannel/kannel-pluginbox'
make: *** [Makefile:279: all] Error 2

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