[Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler
Hi GCC team, We have problem in PRO C binary files, we are not able to connected to database (Oracle 11g). We have build file to generate PRO C executable file. When we run the make file we are getting below error /usr/bin/gcc -xarch=v9* -o fanpf005 fanpf005.o -L/ora11G/app/oracle/product/11.1.0/db_1/lib/ -lclntsh `cat /ora11G/app/oracle/product/11.1.0/db_1/lib/ldflags` `cat /ora11G/app/oracle/product/11.1.0/db_1/lib/sysliblist` -ldl -lm gcc: language arch=v9* not recognized gcc: language arch=v9* not recognized Could please help us what param value to be set for –xarch to connect to Oracle 11g database. And below is GCC version Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) Could you please help us on resolving the Issue as we are struck with for very long time. Appreciate your early response. Thanks & best regards, Rahiman -- Summary: Issue in connecting to Oracle 11g from GCC compiler Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: surajul at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268
[Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
--- Comment #2 from surajul at gmail dot com 2010-03-05 14:51 --- (In reply to comment #1) > drop -xarch=v9* completely (it looks like something thinks you are on a sparc > machine). Thanks for quick response. I have tried then I was not able to compile I am getting when running the make file. I am running on linux Linux catom-gmapdvl06 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux -- surajul at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268
[Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
--- Comment #3 from surajul at gmail dot com 2010-03-05 15:00 --- I removed the xarch as suggested still I have same issue not able to connect to DB. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268
[Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
--- Comment #5 from surajul at gmail dot com 2010-03-05 15:35 --- Hi, I have removed -xarch and executed the make file. I am still not able to connect database from PRO C files. I have seen the connectivity from the machine, I am able to connect to database, from PRO C its not able to connect to database. /usr/bin/gcc -o fanpf015 fanpf015.o -L/ora11G/app/oracle/product/11.1.0/db_1/lib/ -lclntsh `cat /ora11G/app/oracle/product/11.1.0/db_1/lib/ldflags` `cat /ora11G/app/oracle/product/11.1.0/db_1/lib/sysliblist` -ldl -lm I the above way the make file calls gcc with parameters thanks Rahiman -- surajul at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268
[Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
--- Comment #7 from surajul at gmail dot com 2010-03-05 15:46 --- (In reply to comment #6) > This is not a GCC bug, you need to port your makefile from solaris to Linux > and > you need to understand what you're doing, but that's your problem not GCC's. > Please stop opening this bug. Hi, I am able to run Make file successfully, still the binary components are not able to connect to database, I feel in GCC do I need to pass anyother parameter which is different from Solaris to Linux. Please help me out. Thanks -- surajul at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268