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

compiling fails on ubuntu 18.04.1 #33

Open
passwordleak opened this issue Jan 9, 2019 · 2 comments
Open

compiling fails on ubuntu 18.04.1 #33

passwordleak opened this issue Jan 9, 2019 · 2 comments

Comments

@passwordleak
Copy link

Tried ./configure --without-pic and still failed.

ibtool: compile:  g++ -DPACKAGE_NAME=\"scalpel\" -DPACKAGE_TARNAME=\"scalpel\" -DPACKAGE_VERSION=\"2.0\" "-DPACKAGE_STRING=\"scalpel 2.0\"" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"scalpel\" -DVERSION=\"2.0\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBTRE=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_FSEEKO=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_BZERO=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_REALPATH=1 -DHAVE_REGCOMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRTOUL=1 -DHAVE_STRTOULL=1 -I. -I../src -Wall -I/usr/local/jdk-11.0.1/include -I/usr/local/jdk-11.0.1/include/linux -g -O2 -MT libscalpel_jni.lo -MD -MP -MF .deps/libscalpel_jni.Tpo -c libscalpel_jni.cpp -o libscalpel_jni.o >/dev/null 2>&1
mv -f .deps/libscalpel_jni.Tpo .deps/libscalpel_jni.Plo
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2   -o libscalpel_jni.la -rpath /usr/local/lib libscalpel_jni.lo ../src/libscalpel.la -ltre -lpthread -lm 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o  .libs/libscalpel_jni.o   ../src/.libs/libscalpel.a -ltre -lpthread -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o  -g -O2   -Wl,-soname -Wl,libscalpel_jni.so.0 -o .libs/libscalpel_jni.so.0.0.0
/usr/bin/ld: .libs/libscalpel_jni.o: relocation R_X86_64_PC32 against symbol `stdout@@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
Makefile:419: recipe for target 'libscalpel_jni.la' failed
make[1]: *** [libscalpel_jni.la] Error 1
make[1]: Leaving directory '/opt/scalpel/jni'
Makefile:524: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
@ghost
Copy link

ghost commented Aug 9, 2020

Have you succeeded to solve the problem? I'm having the same error

@jmiguelf
Copy link

still same.. no help?

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