From: KUBO Takehiro Date: 2005-01-17T17:58:53+09:00 Subject: Re: Ruby on AIX? Hi, At Sat, 15 Jan 2005 10:01:09 +0900, nobu.nokada@softhome.net wrote: > > > I have successfully compiled socket.so on AIX 4.3.3 and ruby 1.8.2. > > > (1) run configure script with '--disable-ipv6'. > > > (2) add '-eInit_socket' to DLDFLAGS in 'ext/socket/Makefile'. > > Does it direct the entry point or to export the symbol? It directs the entry point. > Anyway, -eInit_foo option is required on AIX in general? I can't say about other AIX platforms. As far as in my environment each extionsion library requires -eInit_foo. > > Ok, that seems to work on AIX 5.1. However, it gets a Segmentation fault > > in socket.so when I go to run it. Help? The following sample works correctly on AIX 5.2 by adding -eInit_socket. require 'net/http' Net::HTTP.start('www.example.com', 80) { |http| response = http.get('/index.html') puts response.body } -- KUBO Takehiro kubo@jiubao.org