when gcc update, occi link error - c++

when i update gcc 4.1 to gcc 5.1
i want to use occi11.2 connect to oracle11g
and have install
oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-odbc-11.2.0.4.0-1.x86_64.rpm
a link error is:
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
output/MaintainEventList.o: In function _ZL20EventCommonStoreToDBP13st_SINGLELISTPN6oracle4occi10ConnectionE':
MaintainEventList.cpp:(.text+0x36a4): undefined reference to_ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev'
MaintainEventList.cpp:(.text+0x3edb): undefined reference to `_ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev'
collect2: error: ld returned 1 exit status
make: *** [bin/depositor] Error 1
how to deal with ?

Related

installation & compilation boost on Manjaro

I installed boost using pacman -S boost boost-libs.
When I try to compile a program that uses boost::thread, and I got the following error:
/usr/bin/ld: /tmp/cc3AkelG.o: warning: relocation against `_ZTVN5boost6detail16thread_data_baseE' in read-only section `.text._ZN5boost6detail16thread_data_baseC2Ev[_ZN5boost6detail16thread_data_baseC5Ev]'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Why does this happen and how can I fix it?
I find the answer in an other question.
I had to compile using -pthread -lboost_thread.
thanks for your answer.

energia compilation error error _fini

I am using Energia with cc3200 TI Evaluation Board and I have added a wavelet library from this link but after editing the library source file and compiling it gives this error:
/compressed/energia-0101e0017-windows/energia-0101e0017/hardware/tools/lm4f/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libc.a(lib_a-fini.o): In function `__libc_fini_array':fini.c:(.text.__libc_fini_array+0x22): undefined reference to '_fini' collect2.exe: error: ld returned 1 exit status
I did some google search and could not find any solution. Any help is appreciated.

"ld" broken (downlevel?) on Linux

I've attempted to build g++ v5.1.0 on my Centos 6 system. The build seems to have worked, but when I try to compile and >link< a program, the linker fails thus:
[seesdev#sees15-lin ~]$ g++ -o testcpp testcpp.cpp
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
Do I have to get a newer version of "ld"? How?

ffmpeg compile error __wrap_swr_convert

I'm trying to compile ffmpeg from sources and can't resolve this issue
YASM libswresample/x86/resample.o
STRIP libswresample/x86/resample.o
CC libswresample/x86/resample_init.o
CC libswresample/x86/w64xmmtest.o
LD libswresample/libswresample.so.101
__wrap_swr_convert' referenced in section.text' of /tmp/cc6tTYGS.ltrans4.ltrans.o: defined in discarded section `.text' of libswresample/x86/w64xmmtest.o (symbol from plugin)
__wrap_swr_convert' referenced in section.text' of /tmp/cc6tTYGS.ltrans6.ltrans.o: defined in discarded section `.text' of libswresample/x86/w64xmmtest.o (symbol from plugin)
collect2: error: ld returned 1 exit status
library.mak:110: recipe for target 'libswresample/libswresample.so.101' failed
make: *** [libswresample/libswresample.so.101] Error 1
Linux Debian 8.1
please help me
w64xmmtest should only be used on Windows. I think you used configure --enable-xmm-clobber-test on Linux. Don't do that.

Error when installing crosstool-ng on cygwin (_libintl_gettext)

I have a problem with installing crosstool-ng on cygwin.
I have downloaded last package here to root cygwin folder, then:
./configure ALL OK
make - error!
Complete error log:
$ make
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
GEN 'config/configure.in'
GEN 'paths.mk'
GEN 'paths.sh'
LD 'conf'
zconf.tab.o:zconf.tab.c:(.text+0x1799): undefined reference to `_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x48f8): undefined reference to `_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x592b): undefined reference to `_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x5b20): undefined reference to `_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0xcd60): undefined reference to `_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0xcd6e): more undefined references to `_libintl_gettext' follow
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: zconf.tab.o: bad reloc address 0x564 in section `.data'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
Makefile:108: recipe for target `conf' failed
make[2]: *** [conf] Error 1
Makefile:160: recipe for target `build-lib-kconfig' failed
make[1]: *** [build-lib-kconfig] Error 2
Makefile:120: recipe for target `build' failed
make: *** [build] Error 2
How can i fix it?
Thanks!
You might try the patch here: http://sourceware.org/ml/crossgcc/2012-05/msg00012.html