linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sheetal fegde <sheetalfegde@yahoo.com>
To: gcc-help@gcc.gnu.org
Cc: linux-c-programming@vger.kernel.org
Subject: RedHat Itanium 64 GCC 3.2.3 linking problems
Date: Wed, 15 Sep 2004 01:33:40 -0700 (PDT)	[thread overview]
Message-ID: <20040915083340.19367.qmail@web52710.mail.yahoo.com> (raw)

Hi,

I am facing some problem while linking using gcc-3.2.3

Machine Information
RedHat  IA64
Linux  2.4.21-4.EL #1 SMP Fri Oct 3 17:29:39 EDT 2003
ia64 ia64 ia64 GNU/Linux

g++/gcc information
> gcc -v
 Reading specs from
/usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/specs
 Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --
enable-__cxa_atexit --host=ia64-redhat-linux
 Thread model: posix
 gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)

>g++- v
Reading specs from
/usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --with-system-zlib
--enable-__cxa_atexit --host=ia64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)


I am trying to build some application with oracle oci,
while linking I am getting following errors.
I feel there is no worng with my code as it works with
gcc 2.96, when i try with 3.2.3 it gives following
problems..

gcc  -c -g -Wno-deprecated -DROGUE6 -DRW_MLS_LIBRARY
-DUSE_SOURCEPRO
-D_RWCONFIG_LINUXGCC323K2421DEBUG_NtvSTL_NoThr_64bit_sd
-DFULL_ORACLE8OCI -DOBT -DREMOTE_HOST_BACKUP -DLINUX
-DDEBUGIO -D_GNU_SOURCE -D__LP64__   -I../oracle/mml 
-o /usr/oracle/OBTBld/obj/obacktrack/lib/mmlIO.o 
../oracle/mml/mmlIO.c 

DtCSharedArchive
/usr/oracle/OBTBld/obj/obacktrack/lib/libobk.so 

#	g++  -Xlinker -G  -static -g  -o 
/usr/oracle/OBTBld/obj/obacktrack/lib/libobk.so 
/usr/oracle/OBTBld/obj/obacktrack/lib/mml.o
/usr/oracle/OBTBld/obj/obacktrack/lib/mmlChlCommn.o
/usr/oracle/OBTBld/obj/obacktrack/lib/mmlIO.o  ;
	g++  -Xlinker -G   -o 
/usr/oracle/OBTBld/obj/obacktrack/lib/libobk.so 
/usr/oracle/OBTBld/obj/obacktrack/lib/mml.o
/usr/oracle/OBTBld/obj/obacktrack/lib/mmlChlCommn.o
/usr/oracle/OBTBld/obj/obacktrack/lib/mmlIO.o  ;

/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x31): In
function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x32): In
function `__libc_csu_init':
: undefined reference to `__init_array_end'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x40): In
function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x41): In
function `__libc_csu_init':
: undefined reference to `__init_array_end'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xd1): In
function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xe0): In
function `__libc_csu_fini':
: undefined reference to `__fini_array_end'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xf0): In
function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xf1): In
function `__libc_csu_fini':
: undefined reference to `__fini_array_end'
/usr/bin/ld:
/usr/oracle/OBTBld/obj/obacktrack/lib/libobk.so:
hidden symbol `__fini_array_end' isn't defined
collect2: ld returned 1 exit status

What is going wrong? I feel this some problem in
glibc.
can somebody help me on this.
Thanks,
Sheetal.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

             reply	other threads:[~2004-09-15  8:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-15  8:33 sheetal fegde [this message]
2004-09-15 11:17 ` Question on memcpy() Wen Guangcheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040915083340.19367.qmail@web52710.mail.yahoo.com \
    --to=sheetalfegde@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).