[kde-solaris] Re: kde-solaris Digest, Vol 17, Issue 8

ken mays maybird1776 at yahoo.com
Fri Aug 20 21:07:45 CEST 2004


Hi,
 
Although I see suggestions on getting successful compiles on Solaris 8 SPARC using the '-mimpure-text' option, are there suggestions for successful compiles done with Solaris 8 x86 and GCC 3.3.3?!?
 
You don't have the luxury of the "-mimpure-text" option on Solaris x86 so I was wondering how people were fixing that same issue on that platform?
 
~Ken


kde-solaris-request at mail.kde.org wrote:
Send kde-solaris mailing list submissions to
kde-solaris at mail.kde.org

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.kde.org/mailman/listinfo/kde-solaris
or, via email, send a message with subject or body 'help' to
kde-solaris-request at mail.kde.org

You can reach the person managing the list at
kde-solaris-owner at mail.kde.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of kde-solaris digest..."


Today's Topics:

1. Cannot build kde 3.3/aRTs on solaris 8/SPARC (Konstantin Ignatiev)
2. Re: Cannot build kde 3.3/aRTs on solaris 8/SPARC (Stefan Teleman)
3. Re: Cannot build kde 3.3/aRTs on solaris 8/SPARC
(Christopher Layne)
4. Re: Cannot build kde 3.3/aRTs on solaris 8/SPARC (Tobias Oetiker)
5. Re: Cannot build kde 3.3/aRTs on solaris 8/SPARC
(Christopher Layne)


----------------------------------------------------------------------

Message: 1
Date: Thu, 19 Aug 2004 18:57:18 -0400
From: Konstantin Ignatiev 
Subject: [kde-solaris] Cannot build kde 3.3/aRTs on solaris 8/SPARC
To: kde-solaris at mail.kde.org
Message-ID: <8ef0e63e0408191557d9f0f1a at mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Hello,

Can anyone help me to resolve this error when building KDE 3.3, arts package:

------------------
../libtool --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions
-fno-check-new -fno-common -ftemplate-depth-99 -o libartsflow.la
-rpath /opt/kde3/lib -no-undefined -version-info 1:0
synth_play_impl.lo gslschedule.lo audiosubsys.lo pipebuffer.lo
convert.lo synth_wave_sin_impl.lo synth_frequency_impl.lo
synth_multi_add_impl.lo synth_add_impl.lo synth_mul_impl.lo
synth_play_wav_impl.lo stdsynthmodule.lo cache.lo asyncschedule.lo
bytestreamtoaudio_impl.lo stereovolumecontrol_impl.lo
stereoeffectstack_impl.lo fft.lo stereofftscope_impl.lo
virtualports.lo bus.lo audiomanager_impl.lo synth_record_impl.lo
resample.lo audioio.lo audioiooss.lo audioioalsa.lo audioioalsa9.lo
audioionull.lo audioiolibaudioio.lo audioioesd.lo audioiojack.lo
audioiosun.lo audioioaix.lo audioionas.lo cpuinfo.lo
audioioossthreaded.lo audiotobytestream_impl.lo audioiosgi.lo
audioiocsl.lo audioiomas.lo datahandle_impl.lo ../mcop/libmcop.la
libartsflow_idl.la ../flow/gslpp/libgslpp.la -L/usr/local/qt/lib
-L/opt/kde3/lib -L/usr/local/qt/lib -L/opt/kde3/lib -laudiofile -lm
../flow/gsl/libgsl.la
ld: warning: file
/disk1/ignatiev/kde_3.3/b/arts-1.3.0/mcop/.libs/libmcop.so: linked to
../mcop/.libs/libmcop.so: attempted multiple inclusion of file
Text relocation remains referenced
against symbol offset in file
0x1c0 
.libs/libartsflow.lax/libgsl.a/bit.o
0x1c4 
.libs/libartsflow.lax/libgsl.a/bit.o
0x290 
.libs/libartsflow.lax/libgsl.a/bit.o
0x298 
.libs/libartsflow.lax/libgsl.a/bit.o
0x2c0 
.libs/libartsflow.lax/libgsl.a/bit.o
[skipped]
rame.o
free 0x44c 
.libs/libartsflow.lax/libgsl.a/decoder.o
free 0x8b4 
.libs/libartsflow.lax/libgsl.a/decoder.o
.div 0x8ec 
.libs/libartsflow.lax/libgsl.a/timer.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
------------------

Thank you!

-- Konstantin.


------------------------------

Message: 2
Date: Thu, 19 Aug 2004 21:18:27 -0400
From: Stefan Teleman 
Subject: Re: [kde-solaris] Cannot build kde 3.3/aRTs on solaris
8/SPARC
To: Konstantin Ignatiev , "KDE Solaris"

Message-ID: <200408192118.27668.steleman at nyc.rr.com>
Content-Type: text/plain; charset="iso-8859-15"

Remove '-z text' and replace it with '-z defs' in all the Makefiles, 
in libtool and in your $LDFLAGS. You may have to recompile after 
that.

--Stefan

-----

On Thursday 19 August 2004 18:57, Konstantin Ignatiev wrote:
> Hello,
>
> Can anyone help me to resolve this error when building KDE 3.3,
> arts package:
>
> ------------------
> ../libtool --mode=link --tag=CXX g++ -Wnon-virtual-dtor
> -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2
> -fno-exceptions -fno-check-new -fno-common -ftemplate-depth-99 -o
> libartsflow.la -rpath /opt/kde3/lib -no-undefined -version-info 1:0
> synth_play_impl.lo gslschedule.lo audiosubsys.lo pipebuffer.lo
> convert.lo synth_wave_sin_impl.lo synth_frequency_impl.lo
> synth_multi_add_impl.lo synth_add_impl.lo synth_mul_impl.lo
> synth_play_wav_impl.lo stdsynthmodule.lo cache.lo asyncschedule.lo
> bytestreamtoaudio_impl.lo stereovolumecontrol_impl.lo
> stereoeffectstack_impl.lo fft.lo stereofftscope_impl.lo
> virtualports.lo bus.lo audiomanager_impl.lo synth_record_impl.lo
> resample.lo audioio.lo audioiooss.lo audioioalsa.lo audioioalsa9.lo
> audioionull.lo audioiolibaudioio.lo audioioesd.lo audioiojack.lo
> audioiosun.lo audioioaix.lo audioionas.lo cpuinfo.lo
> audioioossthreaded.lo audiotobytestream_impl.lo audioiosgi.lo
> audioiocsl.lo audioiomas.lo datahandle_impl.lo ../mcop/libmcop.la
> libartsflow_idl.la ../flow/gslpp/libgslpp.la -L/usr/local/qt/lib
> -L/opt/kde3/lib -L/usr/local/qt/lib -L/opt/kde3/lib -laudiofile -lm
> ../flow/gsl/libgsl.la
> ld: warning: file
> /disk1/ignatiev/kde_3.3/b/arts-1.3.0/mcop/.libs/libmcop.so: linked
> to ../mcop/.libs/libmcop.so: attempted multiple inclusion of file
> Text relocation remains referenced against
> symbol offset in file
> 0x1c0
> .libs/libartsflow.lax/libgsl.a/bit.o
> 0x1c4
> .libs/libartsflow.lax/libgsl.a/bit.o
> 0x290
> .libs/libartsflow.lax/libgsl.a/bit.o
> 0x298
> .libs/libartsflow.lax/libgsl.a/bit.o
> 0x2c0
> .libs/libartsflow.lax/libgsl.a/bit.o
> [skipped]
> rame.o
> free 0x44c
> .libs/libartsflow.lax/libgsl.a/decoder.o
> free 0x8b4
> .libs/libartsflow.lax/libgsl.a/decoder.o
> .div 0x8ec
> .libs/libartsflow.lax/libgsl.a/timer.o
> ld: fatal: relocations remain against allocatable but non-writable
> sections collect2: ld returned 1 exit status
> ------------------
>
> Thank you!
>
> -- Konstantin.
> ___________________________________________________
> This message is from the kde-solaris mailing list.
> Account management: 
> https://mail.kde.org/mailman/listinfo/kde-solaris. Archives:
> http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.

-- 
Stefan Teleman 'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com -Monty Python



------------------------------

Message: 3
Date: Fri, 20 Aug 2004 00:46:07 -0700
From: Christopher Layne 
Subject: Re: [kde-solaris] Cannot build kde 3.3/aRTs on solaris
8/SPARC
To: steleman at nyc.rr.com, "For people using KDE on Solaris, with
questions about KDE or Solaris" 
Message-ID: <20040820074607.GQ15978 at ns1.anodized.com>
Content-Type: text/plain; charset=us-ascii

On Thu, Aug 19, 2004 at 09:18:27PM -0400, Stefan Teleman wrote:
> Remove '-z text' and replace it with '-z defs' in all the Makefiles, 
> in libtool and in your $LDFLAGS. You may have to recompile after 
> that.
> 
> --Stefan

This will not work w/ gcc 3.2+

You need to use -mimpure-text

http://bugs.kde.org/show_bug.cgi?id=87209

-cl


------------------------------

Message: 4
Date: Fri, 20 Aug 2004 10:14:41 +0200 (MEST)
From: Tobias Oetiker 
Subject: Re: [kde-solaris] Cannot build kde 3.3/aRTs on solaris
8/SPARC
To: "For people using KDE on Solaris, with questions about KDE or
Solaris" 
Message-ID: 

Content-Type: TEXT/PLAIN; charset=US-ASCII

Today Christopher Layne wrote:

> On Thu, Aug 19, 2004 at 09:18:27PM -0400, Stefan Teleman wrote:
> > Remove '-z text' and replace it with '-z defs' in all the Makefiles,
> > in libtool and in your $LDFLAGS. You may have to recompile after
> > that.
> >
> > --Stefan
>
> This will not work w/ gcc 3.2+
>
> You need to use -mimpure-text
>
> http://bugs.kde.org/show_bug.cgi?id=87209

how about this:


------- Additional Comment #5 From Thiago Macieira 2004-08-17 01:17
-------
Remember when I said that the visibility flag shouldn't be causing
the build failure? Well, I think it does.

Here's why: even though in the Solaris arch gcc is unable to tell
the linker the visibility attribute for a symbol, it is generating
code that is invalid.

So, I recommend you edit kdelibs/kdecore/kdemacros.h and change
KDE_NO_EXPORT to nothing. See if that fixes the problem.

It does seem to me, however, that this is a gcc bug.
----------------

tobi
-- 
______ __ _
/_ __/_ / / (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
/ // _ \/ _ \/ / System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/ http://people.ee.ethz.ch/oetiker +41(0)44-632-5286


------------------------------

Message: 5
Date: Fri, 20 Aug 2004 01:22:58 -0700
From: Christopher Layne 
Subject: Re: [kde-solaris] Cannot build kde 3.3/aRTs on solaris
8/SPARC
To: "For people using KDE on Solaris, with questions about KDE or
Solaris" 
Message-ID: <20040820082258.GR15978 at ns1.anodized.com>
Content-Type: text/plain; charset=us-ascii


Yes, this is the correct way. Forgot to mention that :).

BTW: There is atleast one other module within kdelibs or kdebase
that needs this.

I can't remember which though.

Kdevelop too.

-cl

> ------- Additional Comment #5 From Thiago Macieira 2004-08-17 01:17
> -------
> Remember when I said that the visibility flag shouldn't be causing
> the build failure? Well, I think it does.
> 
> Here's why: even though in the Solaris arch gcc is unable to tell
> the linker the visibility attribute for a symbol, it is generating
> code that is invalid.
> 
> So, I recommend you edit kdelibs/kdecore/kdemacros.h and change
> KDE_NO_EXPORT to nothing. See if that fixes the problem.
> 
> It does seem to me, however, that this is a gcc bug.
> ----------------


------------------------------

___________________________________________________
This message digest is from the kde-solaris mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

End of kde-solaris Digest, Vol 17, Issue 8
******************************************

		
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-solaris/attachments/20040820/277bc7a5/attachment-0001.html


More information about the kde-solaris mailing list