Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't build Ruby 1.8.2 on Sparc Solaris 10

Reply
Thread Tools

Can't build Ruby 1.8.2 on Sparc Solaris 10

 
 
Park Heesob
Guest
Posts: n/a
 
      05-06-2005
Hi all,

Solaris 10
# uname -a
SunOS solaris 5.10 Generic sun4u sparc SUNW,Ultra-80

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

# make
...
gcc -g -O2 -I. -I. -I/opt/gnome/include
-I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include -c eval.c
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from eval.c:126:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from eval.c:126:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from eval.c:126:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
eval.c: In function `rb_thread_start_0':
eval.c:11386: warning: passing arg 2 of `ruby_posix_signal' from
incompatible po
inter type
*** Error code 1
make: Fatal error: Command failed for target `eval.o'


Any ideas?


Regards,

Park Heesob

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/g...ave/direct/01/



 
Reply With Quote
 
 
 
 
Daniel Berger
Guest
Posts: n/a
 
      05-06-2005
Park Heesob wrote:
> Hi all,
>
> Solaris 10
> # uname -a
> SunOS solaris 5.10 Generic sun4u sparc SUNW,Ultra-80
>
> # gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --disable-nls
> Thread model: posix
> gcc version 3.3.2
>
> # make
> ...
> gcc -g -O2 -I. -I. -I/opt/gnome/include
> -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include -c
> eval.c
> In file included from /usr/include/sys/signal.h:34,
> from /usr/include/signal.h:26,
> from eval.c:126:
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
> /usr/include/sys/siginfo.h:294: error: parse error before '}' token
> /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
> /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
> /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
> /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
> /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
> /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
> /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
> /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
> /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
> /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
> /usr/include/sys/siginfo.h:426: error: parse error before '}' token
> /usr/include/sys/siginfo.h:428: error: parse error before '}' token
> /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
> /usr/include/sys/siginfo.h:437: error: parse error before '}' token
> In file included from /usr/include/signal.h:26,
> from eval.c:126:
> /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
> In file included from eval.c:126:
> /usr/include/signal.h:111: error: parse error before "siginfo_t"
> /usr/include/signal.h:113: error: parse error before "siginfo_t"
> eval.c: In function `rb_thread_start_0':
> eval.c:11386: warning: passing arg 2 of `ruby_posix_signal' from
> incompatible po
> inter type
> *** Error code 1
> make: Fatal error: Command failed for target `eval.o'
>
>
> Any ideas?
>
>
> Regards,
>
> Park Heesob


Odd, I had no problem building Ruby on my Solaris 10 box:

>gcc -v

Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

That's the gcc that comes from blastwave.org (I highly recommend their
packages btw).

What version of make are you using? Perhaps you're using GNU's make
with Sun's linker and that's causing an issue, but this isn't the
typical error I would expect from that. Otherwise, I can only recommend
upgrading your gcc using the blastwave package and trying again.

Regards,

Dan


 
Reply With Quote
 
 
 
 
Park Heesob
Guest
Posts: n/a
 
      05-07-2005
Hi,

>From: Daniel Berger <(E-Mail Removed)>
>Reply-To: http://www.velocityreviews.com/forums/(E-Mail Removed)
>To: (E-Mail Removed) (ruby-talk ML)
>Subject: Re: Can't build Ruby 1.8.2 on Sparc Solaris 10
>Date: Fri, 6 May 2005 23:05:31 +0900
>
>
>Odd, I had no problem building Ruby on my Solaris 10 box:
>
> >gcc -v

>Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
>Configured with:
>/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
>--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
>--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
>--enable-shared
>Thread model: posix
>gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
>That's the gcc that comes from blastwave.org (I highly recommend their
>packages btw).
>
>What version of make are you using? Perhaps you're using GNU's make with
>Sun's linker and that's causing an issue, but this isn't the typical error
>I would expect from that. Otherwise, I can only recommend upgrading your
>gcc using the blastwave package and trying again.
>

I had installed gcc from sunfreeware.com binary package.

I have upgraded gcc using the blastwave package.
Now building is OK and ruby works fine.

Thanks,

Park Heesob

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/



 
Reply With Quote
 
Ryan Arneson
Guest
Posts: n/a
 
      05-09-2005
* Daniel Berger <(E-Mail Removed)> [2005-05-06 08:01]:
>
> >gcc -v

> Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
> Configured with:
> /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
> --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
> That's the gcc that comes from blastwave.org (I highly recommend their
> packages btw).


Actually, that particular gcc is the version that is included by Sun in Solaris 10. Sun puts the GNU type software in /usr/sfw.

Blastwave software would be in /opt/csw by default and would look more like this:

$ /opt/csw/gcc3/bin/gcc -v
Reading specs from /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.3/specs
Configured with: ../sources/gcc-3.4.3/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all
Thread model: posix
gcc version 3.4.3


-ryan


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby-MySQL on solaris 9 (sparc) ChrisKaelin Ruby 1 02-15-2007 07:47 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
ANNOUNCE: Telconi Terminal for Sun Solaris (SPARC) Axel Bauer Cisco 0 04-21-2004 04:15 PM
Which jdk-1.4.x runs on Solaris-2.7 Sparc Zsolt Koppany Java 2 10-30-2003 05:11 PM
build problems with 1.8, solaris and sparc options Daniel Berger Ruby 4 07-11-2003 03:16 AM



Advertisments