public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24272]  New: strange link error with ACE
@ 2005-10-08  6:03 lothar at tradescape dot biz
  2005-10-08  6:06 ` [Bug c++/24272] " lothar at tradescape dot biz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lothar at tradescape dot biz @ 2005-10-08  6:03 UTC (permalink / raw)
  To: gcc-bugs

/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/g++ -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure --program-suffix=-4.0.2
--enable-__cxa_atexit --enable-languages=c,c++ --prefix=/opt2/linux/ix86
--target=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
--with-sysroot=/opt2/linux/ix86/SuSE-10.0
--enable-version-specific-runtime-libs --enable-clocale=gnu
Thread model: posix
gcc version 4.0.2

/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld:
.shobj/Logging_Strategy.o: relocation R_X86_64_PC32 against
`std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char
const*, std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared
object; recompile with -fPIC
/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status


-- 
           Summary: strange link error with ACE
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lothar at tradescape dot biz


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


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

* [Bug c++/24272] strange link error with ACE
  2005-10-08  6:03 [Bug c++/24272] New: strange link error with ACE lothar at tradescape dot biz
@ 2005-10-08  6:06 ` lothar at tradescape dot biz
  2005-10-08  6:07 ` lothar at tradescape dot biz
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: lothar at tradescape dot biz @ 2005-10-08  6:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from lothar at tradescape dot biz  2005-10-08 06:06 -------
Created an attachment (id=9932)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9932&action=view)
preprocessed file (gziped)

preprocessed file that is mentioned in the linker error as having created the
invalid reference.


-- 


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


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

* [Bug c++/24272] strange link error with ACE
  2005-10-08  6:03 [Bug c++/24272] New: strange link error with ACE lothar at tradescape dot biz
  2005-10-08  6:06 ` [Bug c++/24272] " lothar at tradescape dot biz
@ 2005-10-08  6:07 ` lothar at tradescape dot biz
  2005-10-08 13:42 ` pinskia at gcc dot gnu dot org
  2006-03-10 23:36 ` lawless at spamcop dot net
  3 siblings, 0 replies; 5+ messages in thread
From: lothar at tradescape dot biz @ 2005-10-08  6:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from lothar at tradescape dot biz  2005-10-08 06:07 -------
/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/g++ -fvisibility=hidden
-fvisibility-inlines-hidden -save-temps -W -Wall -Wpointer-arith -m64
-I/opt2/linux/x86_64/include -O3 -g -pipe  -m64 -I/opt2/linux/x86_64/include  
-D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DACE_USE_RCSID=0  
-I/opt2/linux/x86_64/ACE/1.4.7/ACE_wrappers -I/usr/kerberos/include
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_HAS_ACE_TOKEN
-DACE_HAS_ACE_SVCCONF -DACE_BUILD_DLL  -c -fPIC -o .shobj/Logging_Strategy.o
Logging_Strategy.cpp
g++: warning: -pipe ignored because -save-temps specified


-- 


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


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

* [Bug c++/24272] strange link error with ACE
  2005-10-08  6:03 [Bug c++/24272] New: strange link error with ACE lothar at tradescape dot biz
  2005-10-08  6:06 ` [Bug c++/24272] " lothar at tradescape dot biz
  2005-10-08  6:07 ` lothar at tradescape dot biz
@ 2005-10-08 13:42 ` pinskia at gcc dot gnu dot org
  2006-03-10 23:36 ` lawless at spamcop dot net
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-08 13:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-08 13:42 -------


*** This bug has been marked as a duplicate of 19664 ***


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/24272] strange link error with ACE
  2005-10-08  6:03 [Bug c++/24272] New: strange link error with ACE lothar at tradescape dot biz
                   ` (2 preceding siblings ...)
  2005-10-08 13:42 ` pinskia at gcc dot gnu dot org
@ 2006-03-10 23:36 ` lawless at spamcop dot net
  3 siblings, 0 replies; 5+ messages in thread
From: lawless at spamcop dot net @ 2006-03-10 23:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from lawless at spamcop dot net  2006-03-10 23:36 -------
This bug is not a dupliate of bug 19664.  I just applied
'gcc-push-pop-visibility.patch' to gcc 4.0.2 on 'x86_64'
and the problem is still there:

/usr/bin/ld: .shobj/Logging_Strategy.o: relocation R_X86_64_PC32 against
`std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char
const*, std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared
object; recompile with -fPIC                               

BTW, had to had-edit the patch for three files:

libstdc++-v3/include/tr1/array
libstdc++-v3/include/debug/string
libstdc++-v3/include/std/std_sstream.h                                    


-- 

lawless at spamcop dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lawless at spamcop dot net


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


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

end of thread, other threads:[~2006-03-10 23:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-08  6:03 [Bug c++/24272] New: strange link error with ACE lothar at tradescape dot biz
2005-10-08  6:06 ` [Bug c++/24272] " lothar at tradescape dot biz
2005-10-08  6:07 ` lothar at tradescape dot biz
2005-10-08 13:42 ` pinskia at gcc dot gnu dot org
2006-03-10 23:36 ` lawless at spamcop dot net

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