From: Daniel Berger Date: 2003-06-26T00:06:20+09:00 Subject: Re: Build problems on HP-UX with HP C compiler Michael Piotrowski wrote: > Daniel Berger writes: > > >>Ruby 1.6.8 and Ruby 1.8.0 (today's snapshot) >> >>$ uname -a >>HP-UX hplkp258 B.11.00 A 9000/800 604369373 >> >>cpp.ansi: HP92453-01 B.11.11.04 HP C Preprocessor (ANSI) >>ccom: HP92453-01 B.11.11.04 HP C Compiler >>/usr/ccs/bin/ld: 92453-07 linker linker ld B.11.30 011005 >> >>I can't get either 1.6.8 or 1.8 to build with the HP C compiler. > > > Hmm, I just tried building 1.6.8 as well as ruby-1.8.0-preview3, and I > had no problems: > > $ uname -a > HP-UX raptor B.11.00 A 9000/785 2010802175 two-user license > $ what `which cc` > /usr/bin/cc: > LINT A.11.01.25171.GP CXREF A.11.01.25171.GP > HP92453-01 A.11.01.25171.GP HP C Compiler > $ Sep 8 2000 23:13:51 $ > > I haven't used a special setup, just what I've been using before: > > export CCOPTS=-I/opt/readline/include > export LDOPTS=-L/opt/readline/lib > > CC='cc -Ae -s' \ > ./configure --prefix=/opt/ruby --without-gcc --enable-shared > > The results are: > > ruby 1.6.8 (2002-12-24) [hppa2.0w-hpux11.00] > ruby 1.8.0 (2003-06-23) [hppa2.0w-hpux11.00] > > So--if it works for me, I don't see why it shouldn't work for you ;-) > Thanks to Michael's diligence, it was discovered that "#define inline" was somehow left out of the config.h file. Once I added that, it built successfully. Thanks Michael! Regards, Dan