libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: IRIX 6.5 and exporting symbols.


From: Peter Ekberg
Subject: RE: IRIX 6.5 and exporting symbols.
Date: Thu, 13 Jan 2005 19:22:00 +0100

Albert Chin wrote:
> On Tue, Jan 11, 2005 at 10:07:13AM +0100, Peter Ekberg wrote:
>> gcc -shared  .libs/cleanup.o .libs/cleanup_stubs.o .libs/cpuid.o
>> .libs/conf.o .libs/debug.o .libs/dl.o .libs/init.o .libs/misc.o
>> .libs/parse.o .libs/string.o .libs/time.o .libs/task.o .libs/ptlock.o
>> .libs/ptsched.o   -lpthread  -Wl,-soname -Wl,libgg.so.2 `test -n
>> "sgi2.0" && print -r -Wl,-set_version -Wl,sgi2.0`
>> -Wl,-update_registry -Wl,.libs/so_locations -Wl,-exports_file
>> -Wl,../gg/EXPSYMS -o .libs/libgg.so.2.0 func_mode_link[3073]: print:
>> bad option(s) 
>> ld32: ERROR 4: Conflicting flag setting: -exports_file
>> ld32: ERROR 4: Conflicting flag setting: -exports_file
>> collect2: ld returned 2 exit status
> 
> Please rerun with -v so we see who gcc is calling.

gcc -v -shared .libs/cleanup.o .libs/cleanup_stubs.o .libs/cpuid.o
.libs/conf.o .libs/debug.o .libs/dl.o .libs/init.o .libs/misc.o
.libs/parse.o .libs/string.o .libs/time.o .libs/task.o .libs/ptlock.o
.libs/ptsched.o -lpthread -Wl,-soname -Wl,libgg.so.2 -Wl,-set_version
-Wl,sgi2.0 -Wl,-update_registry -Wl,.libs/so_locations -Wl,-exports_file
-Wl,../gg/EXPSYMS -o .libs/libgg.so.2.0

gets me:

Reading specs from
/pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2/specs
Configured with: ../../../configure --prefix=/pkg/gcc/mips-irix65/3.2
--disable-shared --disable-libgcj
Thread model: single
gcc version 3.2
 /pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2/collect2
-shared -init __do_global_ctors -fini __do_global_dtors -hidden_symbol
__do_global_ctors,__do_global_ctors_1,__do_global_dtors -_SYSTYPE_SVR4
-woff 131 -n32 -o .libs/libgg.so.2.0
/pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2/crtbegin.o
-L/pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2 -L/usr/bin
-L/pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2/../../..
.libs/cleanup.o .libs/cleanup_stubs.o .libs/cpuid.o .libs/conf.o
.libs/debug.o .libs/dl.o .libs/init.o .libs/misc.o .libs/parse.o
.libs/string.o .libs/time.o .libs/task.o .libs/ptlock.o .libs/ptsched.o
-lpthread -soname libgg.so.2 -set_version sgi2.0 -update_registry
.libs/so_locations -exports_file ../gg/EXPSYMS -dont_warn_unused -lgcc
-warn_unused -L/usr/lib32/mips3 -L/usr/lib32 -dont_warn_unused -lgcc
-warn_unused
/pkg/gcc/mips-irix65/3.2/lib/gcc-lib/mips-sgi-irix6.5/3.2/crtend.o
ld32: ERROR 4: Conflicting flag setting: -exports_file
ld32: ERROR 4: Conflicting flag setting: -exports_file
collect2: ld returned 2 exit status

Which provides further evidence that the gcc ML message referred to in
the original post was correct. I.e. the -hidden_symbol argument is what
conflicts with -exports_file, since -exports_file automatically hides
all symbols not mentioned and hiding a symbol twice is apparently
treated as a conflict (which is a bit mysterious).

Cheers,
Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]