Error in defines.h when compiling with on UltraSPARC II

T

Tim Hunter

An RMagick user has reported a problem compling RMagick on an UltraSPARC II
running Debian Linux. The error is in the defines.h header. Gcc says:

gcc -fPIC -std=c99 -Wall -g -O2 -Wall -pthread -I.
-I/usr/lib/ruby/1.8/sparc-linux -I/usr/lib/ruby/1.8/sparc-linux
-I/build/buildd/librmagick-ruby-1.5.0/ext/RMagick -DRUBY_VERSION=0x182
-I/usr/include -c rmdraw.c
In file included from /usr/lib/ruby/1.8/sparc-linux/ruby.h:22,
from rmagick.h:19, from rmdraw.c:10:
/usr/lib/ruby/1.8/sparc-linux/defines.h: In function
`flush_register_windows':
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: `asm' undeclared (first
use in this function)
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: (Each undeclared
identifier is reported only once
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: for each function it
appears in.)
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: parse error before
"volatile"

This is Ruby 1.8.2. No error occurs if the -std=c99 option is omitted.

Any ideas? RMagick uses the fmax function, defined in C99. I could replace
it with something else but I'd rather not.
 
D

David Ross

MAHAHAH

I happen to have a UltraSparc2 sitting on my workbench
in the garage. What version of debian are you using?

--David

--- Tim Hunter said:
An RMagick user has reported a problem compling
RMagick on an UltraSPARC II
running Debian Linux. The error is in the defines.h
header. Gcc says:

gcc -fPIC -std=c99 -Wall -g -O2 -Wall -pthread -I.
-I/usr/lib/ruby/1.8/sparc-linux
-I/usr/lib/ruby/1.8/sparc-linux
-I/build/buildd/librmagick-ruby-1.5.0/ext/RMagick
-DRUBY_VERSION=0x182
-I/usr/include -c rmdraw.c
In file included from
/usr/lib/ruby/1.8/sparc-linux/ruby.h:22,
from rmagick.h:19,
from rmdraw.c:10:
/usr/lib/ruby/1.8/sparc-linux/defines.h: In function
`flush_register_windows':
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error:
`asm' undeclared (first
use in this function)
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error:
(Each undeclared
identifier is reported only once
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error:
for each function it
appears in.)
/usr/lib/ruby/1.8/sparc-linux/defines.h:216: error:
parse error before
"volatile"

This is Ruby 1.8.2. No error occurs if the -std=c99
option is omitted.

Any ideas? RMagick uses the fmax function, defined
in C99. I could replace
it with something else but I'd rather not.





__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top