Hi all,
I just tried to build DL2 (from RubyGarden)
I thought this was too much to put on the Wiki so, here it is:
gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/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.2
make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
uname -a
SunOS sp5wd-b1 5.9 Generic sun4u sparc SUNW,Sun-Blade-100
/opt/bin/ruby -v
ruby 1.8.0 (2002-12-24) [sparc-solaris2.9]
/opt/bin/ruby extconf.rb
checking for dlfcn.h… yes
checking for main() in -ldl… no
checking for dlopen()… no
checking for dlerror()… no
make
gcc -fPIC -g -O2 -fno-defer-pop -fno-omit-frame-pointer -I.
-I/usr/local/lib/ruby/1.6/sparc-solaris2.9 -I. -DHAVE_DLFCN_H
-DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR -c -o cfunc.o
cfunc.c
cfunc.c: In functionrb_dlcfunc_initialize': cfunc.c:84: warning: pointer/integer type mismatch in conditional expression cfunc.c: In function
rb_dlcfunc_call’:
cfunc.c:222: `DLTYPE_LONG_LONG’ undeclared (first use in this function)
cfunc.c:222: (Each undeclared identifier is reported only once
cfunc.c:222: for each function it appears in.)
cfunc.c:233: parse error before “break”
make: *** [cfunc.o] Error 1
Now, with Ruby 1.6.8
ruby -v
ruby 1.6.8 (2002-12-24) [sparc-solaris2.9]
ruby extconf.rb
checking for dlfcn.h… yes
checking for main() in -ldl… yes
checking for dlopen()… yes
checking for dlclose()… yes
checking for dlsym()… yes
checking for dlerror()… yes
creating Makefile
make
gcc -fPIC -g -O2 -fno-defer-pop -fno-omit-frame-pointer -I.
-I/usr/local/lib/ruby/1.6/sparc-solaris2.9 -I. -DHAVE_DLFCN_H
-DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR -c -o cfunc.o
cfunc.c
cfunc.c: In functionrb_dlcfunc_initialize': cfunc.c:84: warning: pointer/integer type mismatch in conditional expression cfunc.c: In function
rb_dlcfunc_call’:
cfunc.c:222: `DLTYPE_LONG_LONG’ undeclared (first use in this function)
cfunc.c:222: (Each undeclared identifier is reported only once
cfunc.c:222: for each function it appears in.)
cfunc.c:233: parse error before “break”
make: *** [cfunc.o] Error 1
Any ideas?
Regards,
Dan
···
–
a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82]
a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114)
puts a.pack(“C*”)