Ruby 1.8.0 preview4

Hello,

I just put preview4 archive on the ftp server.

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

I will submit preview5 on Monday 8:00am UTC. The final
1.8.0 will be available on either 30th or 31st, as I hope.

						matz.

p.s.
To IA64 users: it is reported that you need to change optimize flag to
"-O0" to compile on IA64 machines.

I just put preview4 archive on the ftp server.

This change is normal (in mkmf.rb)

    1.6.8

DLDFLAGS = #{$DLDFLAGS} #{$LDFLAGS}

    1.8.0

DLDFLAGS = #{CONFIG['DLDFLAGS']} #$DLDFLAGS

If someone use $LDFLAGS in extconf.rb, he'll have surprise with 1.8.0

Guy Decoux

I notice code is compiled with -g and not stripped. Looking at 1.6.8 it
seems to be the same, so I guess this is intentional.

Cheers,

Brian.

···

On Thu, Jul 24, 2003 at 05:03:37PM +0900, Yukihiro Matsumoto wrote:

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

cool - this now compiles/builds with no errors from scratch on winxp/cygwin
(preview3 did not)…

thanx!

eager to see 1.8 final,
patrick

I’m guessing this is known, but any script I’ve got that loads rexml
emits these warnings:

c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
-' without escape c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class has-’ without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
-' without escape c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class has-’ without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/doctype.rb:196: warning: regexp has
`]’ wit
hout escape

I’ve seen this both in 1.8p3 and p4 (from the dm4lab.to mswin bin downloads:

ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.0-preview4-i386-mswin32.zip)

···

Chris
http://clabs.org/blogki

I’ll have PLD RPMs available via HTTP and the Poldek this afternoon,
with luck.

Ari

···

On Thu, 2003-07-24 at 02:03, Yukihiro Matsumoto wrote:

Hello,

I just put preview4 archive on the ftp server.

Yukihiro Matsumoto wrote:

I just put preview4 archive on the ftp server.

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

Compiling on Red Hat Linux 8.0, I get this error when it tries to link
the OpenSSL extension:

~ ossl_bn.o: In function ossl_bn_s_pseudo_rand_range': ~ /home/jlj/src/ruby-1.8.0/ext/openssl/ossl_bn.c:476: undefined reference to BN_pseudo_rand_range’
~ collect2: ld returned 1 exit status
~ make[1]: *** [openssl.so] Error 1
~ make[1]: Leaving directory `/home/jlj/src/ruby-1.8.0/ext/openssl’
~ make: *** [all] Error 1

I also get this error with the latest ruby from CVS, so this problem
doesn’t appear to have been addressed yet. Please let me know what
additional information I can provide.

Lyle

c:\temp>ruby -v
ruby 1.8.0 (2003-07-24) [i386-mswin32]

c:\temp>more tmp.rb
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts 'hey’
puts ‘hey’

c:\temp>ruby -r debug tmp.rb
Debug.rb
Emacs support available.

tmp.rb:1:puts ‘hey’
(rdb:1) l
[-4, 5] in tmp.rb
=> 1 puts 'hey’
2 puts 'hey’
3 puts 'hey’
4 puts 'hey’
5 puts ‘hey’
(rdb:1) b 4
Set breakpoint 1 at tmp.rb:4
(rdb:1) c
hey
tmp.rb:2:puts ‘hey’
(rdb:1) c
hey
tmp.rb:3:puts ‘hey’
(rdb:1) c
hey
tmp.rb:4:puts ‘hey’
(rdb:1) c
hey
tmp.rb:5:puts ‘hey’
(rdb:1) c
hey
tmp.rb:6:puts ‘hey’
(rdb:1)

···

Chris
http://clabs.org/blogki

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

Find below the results of building preview4 on HP-UX;
I fiddled a bit with those (important!!) sha2 warnings and I have a
feeling I’m missing something obvious. Can’t get it to work :frowning:

Furthermore I get a whole series of lines like this:
but those seem harmless to me.

Bye,
Kero.

$ uname -a
HP-UX aberti B.11.11 U 9000/800 513706597 unlimited-user license
$ CC=cc CFLAGS=+Z ./configure # gcc breaks on /usr/include/sys/socket.h
# +Z is required for linking tcltklib
$ make

$ make install
$ ruby -v
ruby 1.8.0 (2003-07-24) [hppa2.0w-hpux11.11]

···

cc: “io.c”, line 869: warning 604: Pointers are not assignment-compatible.
cc: “sha2.c”, line 218: warning 602: Integer constant exceeds its storage.
cc: “sha2.c”, line 281: warning 602: Integer constant exceeds its storage.

Compiling on RedHat 9:

gcc -fPIC -g -O2 -I. -I/usr/local/ruby-1.8.0 -I/usr/local/ruby-1.8.0
-I/usr/local/ruby-1.8.0/ext/openssl -DHAVE_OPENSSL_CRYPTO_H -DHAVE_UNISTD_H
-DHAVE_SYS_TIME_H -DHAVE_EVP_MD_CTX_CREATE -DHAVE_EVP_MD_CTX_CLEANUP
-DHAVE_EVP_MD_CTX_DESTROY -DHAVE_PEM_DEF_CALLBACK -DHAVE_EVP_MD_CTX_INIT
-DHAVE_HMAC_CTX_INIT -DHAVE_HMAC_CTX_CLEANUP -DHAVE_X509_CRL_SET_VERSION
-DHAVE_X509_CRL_SET_ISSUER_NAME -DHAVE_X509_CRL_SORT
-DHAVE_X509_CRL_ADD0_REVOKED -DHAVE_CONF_GET1_DEFAULT_CONFIG_FILE
-DHAVE_BN_MOD_SQR -DHAVE_BN_MOD_ADD -DHAVE_BN_MOD_SUB
-DHAVE_CONF_GET1_DEFAULT_CONFIG_FILE -DHAVE_VA_ARGS_MACRO
-DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS -DHAVE_RB_OBJ_INIT_COPY -c ossl.c
In file included from /usr/include/openssl/ssl.h:179,
from ossl.h:34,
from ossl.c:11:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from ossl.h:34,
from ossl.c:11:
/usr/include/openssl/kssl.h:132: parse error before “krb5_enctype”
/usr/include/openssl/kssl.h:134: parse error before “FAR”

ben% locate krb5.h
/usr/kerberos/include/gssapi/gssapi_krb5.h
/usr/kerberos/include/krb5.h

It looks like /usr/kerberos/include isn’t in the include path. Configure
should probably catch that, right? I configured it as ./configure
–prefix=/usr/local/ruby-1.8.0-preview4

Btw, would it make sense to change the top-level directory in the tar file to
“ruby-1.8.0-src” so that if people want to install to /usr/local/ruby-1.8.0
they can do so more easily?

Ben

···

On Thu July 24 2003 4:03 am, Yukihiro Matsumoto wrote:

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

ossl_config.c:147: bad macro argument list
ossl_config.c:147: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
:1:1: no macro name given in #define directive
make[1]: *** [ossl_config.o] Error 1
make: *** [all] Error 1

Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003;
root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power Macintosh powerpc

OS X 10.2.[whatever current is]

-Brian

···

On Thursday, July 24, 2003, at 04:03 AM, Yukihiro Matsumoto wrote:

Hello,

I just put preview4 archive on the ftp server.

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

I will submit preview5 on Monday 8:00am UTC. The final
1.8.0 will be available on either 30th or 31st, as I hope.

  					matz.

p.s.
To IA64 users: it is reported that you need to change optimize flag to
“-O0” to compile on IA64 machines.

ruby -vwe “require ‘tk’”

says:

ruby 1.8.0 (2003-07-24) [i686-linux]

/usr/local/lib/ruby/1.8/tk.rb:940: warning: method redefined;
discarding old chooseDirectory

/usr/local/lib/ruby/1.8/tk.rb:1487:in const_missing': \ uninitialized constant Tk::Encoding::INTERP (NameError) from /usr/local/lib/ruby/1.8/tk.rb:1487:inencoding='
from /usr/local/lib/ruby/1.8/tk.rb:1522
from -e:1:in `require’
from -e:1

···


Wybo

Mac OS X 10.3 Developer Preview has the following issue during build of
eval.c:

gcc -g -O2 -pipe -I. -I. -c eval.c
eval.c:8217: warning: static declaration for thread_switch' follows non-static eval.c: In function thread_switch’:
eval.c:8218: error: argument `n’ doesn’t match prototype

and later:

eval.c:9147: error: thread_abort' redeclared as different kind of symbol /usr/include/mach/ppc/thread_act.h:143: error: previous declaration of thread_abort’
eval.c:9147: warning: thread_abort' was declared extern’ and later
static' eval.c: In function rb_thread_start_0’:
eval.c:9326: error: too few arguments to function thread_switch' eval.c:9351: error: too few arguments to function thread_switch’
eval.c: In function rb_thread_interrupt': eval.c:9595: error: too few arguments to function thread_switch’
eval.c: In function rb_thread_signal_raise': eval.c:9615: error: too few arguments to function thread_switch’

(and more instances of this)

Oh…
gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1435)

uname -a
Darwin zero.local. 7.0.0b1 Darwin Kernel Version 7.0.0b1: Mon Jun 16
23:01:44 PDT 2003; root:xnu/xnu-452.1.obj~1/RELEASE_PPC Power
Macintosh powerpc

Looks like eval.c’s functions are trying to override
/user/include/mach/thread* 's functions and losing.

···

On Thursday, July 24, 2003, at 1:03 AM, Yukihiro Matsumoto wrote:

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

Strange. It has not changed since 1.6.8; it should be compiled with
“-g -O2” by default, without stripping.

						matz.
···

In message “Re: ruby 1.8.0 preview4” on 03/07/24, Brian Candler B.Candler@pobox.com writes:

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

I notice code is compiled with -g and not stripped. Looking at 1.6.8 it
seems to be the same, so I guess this is intentional.

Hi,

···

In message “Re: ruby 1.8.0 preview4” on 03/07/25, Chris Morris chrismo@clabs.org writes:

I’m guessing this is known, but any script I’ve got that loads rexml
emits these warnings:

c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has`-’ without escape

We already fixed them before preview4. Perhaps you need to re-install
the libraries.

						matz.

Hi,

···

In message “Re: ruby 1.8.0 preview4” on 03/07/24, ts decoux@moulon.inra.fr writes:

This change is normal (in mkmf.rb)

1.6.8

DLDFLAGS = #{$DLDFLAGS} #{$LDFLAGS}

1.8.0

DLDFLAGS = #{CONFIG[‘DLDFLAGS’]} #$DLDFLAGS

If someone use $LDFLAGS in extconf.rb, he’ll have surprise with 1.8.0

I believe this change was made by Nobu, and was intentional. Sorry
for surprises if they happen.

						matz.

Hi,

(rdb:1) b 4
Set breakpoint 1 at tmp.rb:4
(rdb:1) c
hey
tmp.rb:2:puts ‘hey’
(rdb:1) c
hey

It’s a bug. I fixed. Wait until Monday, or apply the following
patch.

						matz.

— lib/debug.rb 3 Jul 2003 15:58:03 -0000 1.44
+++ lib/debug.rb 24 Jul 2003 18:31:36 -0000
@@ -705,3 +705,3 @@ EOHELP
@stop_next -= 1

  • @stop_next = 0 if @stop_next < 0
  • @stop_next = -1 if @stop_next < 0
    elsif @frames.size < @no_step
···

In message “Re: ruby 1.8.0 preview4 - c in debug doesn’t work?” on 03/07/25, Chris Morris chrismo@clabs.org writes:

Hi,

···

In message “Re: ruby 1.8.0 preview4” on 03/07/25, Kero van Gelder kero@chello.single-dot.nl writes:

Find below the results of building preview4 on HP-UX;
I fiddled a bit with those (important!!) sha2 warnings and I have a
feeling I’m missing something obvious. Can’t get it to work :frowning:

Hmm, it seems HP-UX compiler does not provide sane definition of
uint64_t. I don’t know how to fix this. Anyone?

						matz.

PLD RPMs are available at http://polis.nbtsc.org/~aredridel/rpm which is
a valid poldek-source as well.

I still had to apply the patch for ncurses’ location. It’s attached –
it can probably go in the main tree without problems.

–Ari

ruby-curses-terminfo.patch (723 Bytes)

···

On Thu, 2003-07-24 at 09:54, Aredridel wrote:

On Thu, 2003-07-24 at 02:03, Yukihiro Matsumoto wrote:

Hello,

I just put preview4 archive on the ftp server.

I’ll have PLD RPMs available via HTTP and the Poldek this afternoon,
with luck.

$gcc -v
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)

···

On Thursday, July 24, 2003, at 03:50 PM, Brian McCallister wrote:

ossl_config.c:147: bad macro argument list
ossl_config.c:147: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
:1:1: no macro name given in #define directive
make[1]: *** [ossl_config.o] Error 1
make: *** [all] Error 1

Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003;
root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power Macintosh powerpc

OS X 10.2.[whatever current is]

-Brian

On Thursday, July 24, 2003, at 04:03 AM, Yukihiro Matsumoto wrote:

Hello,

I just put preview4 archive on the ftp server.

I’m sure we still have problems left. Braves, try and find errors, on
as many platforms as possible, please.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.0-preview4.tar.gz

I will submit preview5 on Monday 8:00am UTC. The final
1.8.0 will be available on either 30th or 31st, as I hope.

  					matz.

p.s.
To IA64 users: it is reported that you need to change optimize flag to
“-O0” to compile on IA64 machines.