From: Lou Vanek Date: 2006-03-18T04:41:03+09:00 Subject: Re: Compile Ruby 1.8.4 on HP-UX 11 I would have stuck with the tried-and-true gcc 3.4 series instead of the more strict gcc 4.x series. I don't know which gcc matz uses, but I doubt it's 4.1. That said, I think these links discuss the unix98.o linking problem: http://devrsrc1.external.hp.com/STKT/impacts/i332.html http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95163 To fix the linking problem I would try the following: 1. revert to gcc 3.4.5 2. add environmental variable definitions as specified in above links 3. add '-L/usr/lib' so gcc knows where unix98.o is located. Something like this: export LIBARY_PATH="/usr/lib:/usr/local/lib:/lib:." 4. copy /usr/lib/unix98.o to your ruby compilation directory if all else fails. The error at 'configure:1974' is inconsequential. The error at 'configure:2003' is important. I'm sorry I don't have access to an hp system to test any of this on. -lv McDevitt, Chris wrote: > Thanks. I instilled gcc and ran configure. It received and error, so I > checked the config.log and found this: > > gcc version 4.1.0 > configure:1972: $? = 0 > configure:1974: gcc -V &5 > gcc: '-V' option must have argument > configure:1977: $? = 1 > configure:2000: checking for C compiler default output file name > configure:2003: gcc conftest.c >&5 > ld: I/O error, file "unix98.o": No such file or directory > Fatal error. > > Any Suggestions? > > -Chris > > > -----Original Message----- > From: news [mailto:news@sea.gmane.org] > Sent: Thursday, March 16, 2006 8:29 AM > To: ruby-talk ML > Subject: Re: Compile Ruby 1.8.4 on HP-UX 11 > > > try, http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/173906 > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/177036 > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/178250 > > I think you will get better results with gcc and gnu make. > > > McDevitt, Chris wrote: > >>When I run make (we are using cc not gcc) I receive: >> >># make >>cc -Ae -s -O +Z -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c parse.c >>cc: "parse.y", line 4439: warning 527: Integral value implicitly >>converted to pointer in assignment. >>cc: "parse.y", line 4442: error 1530: Undefined struct or union. >>cc: "parse.y", line 4444: error 1530: Undefined struct or union. >>cc: "parse.y", line 4444: warning 563: Argument #1 is not the correct >>type. >>cc: "parse.y", line 4446: error 1530: Undefined struct or union. >>cc: "parse.y", line 4446: error 1563: Expression in if must be scalar. >>cc: "parse.y", line 4455: error 1530: Undefined struct or union. >>cc: "parse.y", line 4457: error 1530: Undefined struct or union. >>cc: "parse.y", line 4457: error 1530: Undefined struct or union. >>cc: "parse.y", line 4457: error 1563: Expression in if must be scalar. >>cc: "parse.y", line 4459: error 1530: Undefined struct or union. >>make: *** [parse.o] Error 1 >> >>Any suggestions?