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

Problems building static library on Linux #26

Open
WIZARDISHUNGRY opened this Issue Feb 1, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@WIZARDISHUNGRY
Member

WIZARDISHUNGRY commented Feb 1, 2018

ok, installed the deps via apt. now i get this:

Makefile:29: warning: overriding recipe for target 'dist'
../../plugin.mk:36: warning: ignoring old recipe for target 'dist'
g++ -I/usr/include/libusb-1.0 -I/usr/include/ -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -Wsuggest-override -std=c++11 -c -o build/src/sdr/SDR.cpp.o src/sdr/SDR.cpp
cc -I/usr/include/libusb-1.0 -I/usr/include/ -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/sdr/rtl-sdr.c.o src/sdr/rtl-sdr.c
src/sdr/rtl-sdr.c: In function ‘polar_disc_lut’:
src/sdr/rtl-sdr.c:648:31: warning: left shift of negative value [-Wshift-negative-value]
   return (cj > 0) ? 1<<13 : -1<<13;
                               ^~
src/sdr/rtl-sdr.c: In function ‘mark_shared_buffer’:
src/sdr/rtl-sdr.c:959:9: warning: statement with no effect [-Wunused-value]
  ss_busy[0];
  ~~~~~~~^~~
src/sdr/rtl-sdr.c: In function ‘RtlSdr_init’:
src/sdr/rtl-sdr.c:1858:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  radio->rack_buffer = &demod.rack_buffer;
                     ^
src/sdr/rtl-sdr.c:1804:8: warning: unused variable ‘freq’ [-Wunused-variable]
  char* freq = "99.5M";
        ^~~~
cc -I/usr/include/libusb-1.0 -I/usr/include/ -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/sdr/convenience.c.o src/sdr/convenience.c
g++ -o plugin.so build/src/PQ.cpp.o build/src/sdr/SDR.cpp.o build/src/sdr/rtl-sdr.c.o build/src/sdr/convenience.c.o /usr/lib/x86_64-linux-gnu/libusb-1.0.a /usr/lib/x86_64-linux-gnu/librtlsdr.a -shared
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/librtlsdr.a(librtlsdr.c.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
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
../../compile.mk:43: recipe for target 'plugin.so' failed
make: *** [plugin.so] Error 1

WIZARDISHUNGRY added a commit that referenced this issue Feb 2, 2018

Disable static builds on Linux #26
Testing travis-ci

fixed travis.yml hopefully

A reasonable Travis config

Latest xcode for travis

finally travis works

@WIZARDISHUNGRY WIZARDISHUNGRY added Linux build and removed bug labels Feb 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment