public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43268]  New: Issue in connecting to Oracle 11g from GCC compiler
@ 2010-03-05 14:12 surajul at gmail dot com
  2010-03-05 14:41 ` [Bug c++/43268] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: surajul at gmail dot com @ 2010-03-05 14:12 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1779 bytes --]

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
@ 2010-03-05 14:41 ` rguenth at gcc dot gnu dot org
  2010-03-05 14:51 ` surajul at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-05 14:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-05 14:41 -------
drop -xarch=v9* completely (it looks like something thinks you are on a sparc
machine).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
  2010-03-05 14:41 ` [Bug c++/43268] " rguenth at gcc dot gnu dot org
@ 2010-03-05 14:51 ` surajul at gmail dot com
  2010-03-05 15:00 ` surajul at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: surajul at gmail dot com @ 2010-03-05 14:51 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
  2010-03-05 14:41 ` [Bug c++/43268] " rguenth at gcc dot gnu dot org
  2010-03-05 14:51 ` surajul at gmail dot com
@ 2010-03-05 15:00 ` surajul at gmail dot com
  2010-03-05 15:03 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: surajul at gmail dot com @ 2010-03-05 15:00 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
                   ` (2 preceding siblings ...)
  2010-03-05 15:00 ` surajul at gmail dot com
@ 2010-03-05 15:03 ` ebotcazou at gcc dot gnu dot org
  2010-03-05 15:35 ` surajul at gmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-03-05 15:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ebotcazou at gcc dot gnu dot org  2010-03-05 15:03 -------
-xarch is an option specific to the Sun Studio compiler, it cannot be used for
GCC, you need to adjust your Makefile.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
                   ` (3 preceding siblings ...)
  2010-03-05 15:03 ` ebotcazou at gcc dot gnu dot org
@ 2010-03-05 15:35 ` surajul at gmail dot com
  2010-03-05 15:39 ` redi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: surajul at gmail dot com @ 2010-03-05 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
                   ` (4 preceding siblings ...)
  2010-03-05 15:35 ` surajul at gmail dot com
@ 2010-03-05 15:39 ` redi at gcc dot gnu dot org
  2010-03-05 15:46 ` surajul at gmail dot com
  2010-03-05 15:48 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-03-05 15:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from redi at gcc dot gnu dot org  2010-03-05 15:39 -------
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.


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
                   ` (5 preceding siblings ...)
  2010-03-05 15:39 ` redi at gcc dot gnu dot org
@ 2010-03-05 15:46 ` surajul at gmail dot com
  2010-03-05 15:48 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: surajul at gmail dot com @ 2010-03-05 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/43268] Issue in connecting to Oracle 11g from GCC compiler
  2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
                   ` (6 preceding siblings ...)
  2010-03-05 15:46 ` surajul at gmail dot com
@ 2010-03-05 15:48 ` redi at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-03-05 15:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from redi at gcc dot gnu dot org  2010-03-05 15:48 -------
You have not found a bug in GCC and this is not a forum for help connecting to
databases.

Hint:  you cannot "connect to oracle from gcc compiler" ... it's a compiler. 
You really need to understand what you're trying to achieve, or go to whoever
assigned you the project and ask them to give it to someone who can do the job.

Please stop re-opening this bug.


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43268


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-05 15:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-05 14:12 [Bug c++/43268] New: Issue in connecting to Oracle 11g from GCC compiler surajul at gmail dot com
2010-03-05 14:41 ` [Bug c++/43268] " rguenth at gcc dot gnu dot org
2010-03-05 14:51 ` surajul at gmail dot com
2010-03-05 15:00 ` surajul at gmail dot com
2010-03-05 15:03 ` ebotcazou at gcc dot gnu dot org
2010-03-05 15:35 ` surajul at gmail dot com
2010-03-05 15:39 ` redi at gcc dot gnu dot org
2010-03-05 15:46 ` surajul at gmail dot com
2010-03-05 15:48 ` redi at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).