| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hello I solved the problem after 2 days of tests... The compiler I was using is GCC and even the 'ld' is the one provided by binutils, not the Solaris one as the qt docs mention it is buggy and that we should use the other one. The problem in fact was that the './configure' did not detect the Solaris and it was compiling as if it were Irix... Just had to use the 'platform g++ solaris-gcc' and everything worked now! I've always compiled under Linux, so thought the './configure' recognizes the OS automatically, but not in this case... Thanks for your comments! ----- Original Message ---- From: Dimitri <dimitri@xxxxxxxxxxxxx> To: qt-interest@xxxxxxxxxxxxx Sent: Monday, November 26, 2007 4:39:47 PM Subject: Re: qt-3.3.8 on Solaris 10 - './configure' aborts with error in 'ld' Hi, ... C++ symbols from the standard C++ library seem to be missing. Which version of the Sun compiler is this? Are you able to build a simple "Hello world!" C++ program? -- [ signature omitted ] Message 2 in thread
Miguel Cardenas wrote: >Hello > >I solved the problem after 2 days of tests... The compiler I was using > is GCC and even the 'ld' is the one provided by binutils, not the > Solaris one as the qt docs mention it is buggy and that we should use > the other one. > >The problem in fact was that the './configure' did not detect the > Solaris and it was compiling as if it were Irix... Just had to use the > 'platform g++ solaris-gcc' and everything worked now! > >I've always compiled under Linux, so thought the './configure' > recognizes the OS automatically, but not in this case... What does uname -s uname -r show for you? -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Hi, > I solved the problem after 2 days of tests... The compiler I was using > is GCC and even the 'ld' is the one provided by binutils, not the > Solaris one as the qt docs mention it is buggy and that we should use > the other one. > > The problem in fact was that the './configure' did not detect the > Solaris and it was compiling as if it were Irix... Just had to use the > 'platform g++ solaris-gcc' and everything worked now! I believe 'configure' did detect Solaris. Indeed the '-R' compiler option is typical of Solaris. Why do you think it detected Irix instead? Rather the problem is that you have installed symlinks such as: cc -> gcc CC -> g++ The 'configure' script relies on the names of the compiler executables. Said otherwise, it relies on 'CC' being Sun's compiler, not GCC. Forcing the 'solaris-g++' platform just selects compilers 'gcc' and 'g++' instead of 'cc' and 'CC'. -- [ signature omitted ]
----- Original Message ----
From: Thiago Macieira <thiago.macieira@xxxxxxxxxxxxx>
To: qt-interest@xxxxxxxxxxxxx
Cc: Miguel Cardenas <renito73@xxxxxxxxx>
Sent: Saturday, December 1, 2007 3:30:42 PM
Subject: Re: qt-3.3.8 on Solaris 10 - './configure' aborts with error in 'ld'
> ...
>The problem in fact was that the './configure' did not detect the
> Solaris and it was compiling as if it were Irix... Just had to use
the
> 'platform g++ solaris-gcc' and everything worked now!
>
>I've always compiled under Linux, so thought the './configure'
> recognizes the OS automatically, but not in this case...
What does
uname -s
uname -r
show for you?
--------------------------------------------
bash-3.00# uname -s
SunOS
bash-3.00# uname -r
5.10
____________________________________________________________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
Hi, > bash-3.00# uname -s > SunOS > bash-3.00# uname -r > 5.10 The I guess Solaris was correctly detected. Why do you think 'configure' detected Irix instead? This was an issue of the GNU compiler disguising as CC. -- [ signature omitted ]