まつもと ゆきひろです

HP-UX 11.0 ではRuby 1.4.3のcursesとfcntlがコンパイルできない
そうです。なんでも $global$ というシンボルが未定義だとか。

そういう名前のシンボルを使ってませんから、たぶんなんらかのオ
プションの問題だと思うのですが、手元にHP-UXがある人で確認で
きる人はいませんか?

------- Start of forwarded message -------
From: Stephanie Nile <stephie / connect.org.uk>
To: matz / netlab.co.jp
Subject: ruby-1.4.3 port to HPUX 11.00
Date: Tue, 25 Jan 2000 13:24:48 +0000 (GMT)
X-Mailer: Aide de Camp Mail System [Version 0.9]

Dear matz,
      Re:  $global$ undefined: More clues :)

 When I try to compile ext/curses.c and link against libruby.a I get this: 

        gcc -fPIC -I/opt/stephie/ruby-1.4.3 -I/opt/stephie/ruby-1.4.3 -g -O2
 -I/usr/local/include -DHAVE_CURSES_COLR_CURSES_H -DHAVE_ISENDWIN
- -DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_DELETELN -DHAVE_WDELETELN
- -ccurses.c
        ld   -o curses.so curses.o -lcur_colr -lc ../../libruby.a -lm 
ld: Unsatisfied symbols:
   $global$ (data)
ld: Unsatisfied symbols:
   $global$ (data)
*** Error exit code 1

If I run "nm" I can see global is there but undefined.

There *must* be something like "int global" somewhere; but I just cant find it
in the .c or .h files.
I would be so pleased if you could help me find it.

 % nm libruby.a | more


$CODE$              |         0|static|code   |$CODE$
$CODE$              |         0|static|code   |$CODE$
$global$            |          |undef |data   |            <----
Init_Array          |         0|extern|entry  |$CODE$
L$0188              |       320|static|code   |$CODE$
L$0192              |       156|static|code   |$CODE$


Thank you,
      Stephanie,

       HPUX Porting and Archive Centre, Connect, Liverpool University.
  __/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/__/




Packages can be obtained from any of our official WWW PD archive sites below:

          UK: http://hpux.csc.liv.ac.uk/
     Germany: http://hpux.ask.uni-karlsruhe.de/
     US (WI): http://hpux.cae.wisc.edu/
      France: http://hpux.cict.fr/
 Netherlands: http://hpux.tn.tudelft.nl/
      Canada: http://hpux.ee.ualberta.ca/
       Italy: http://hpux.dsi.unimi.it/
South Africa: http://hpux.petech.ac.za/
       Japan: http://hpux.u-aizu.ac.jp/
     US (UT): http://hpux.cs.utah.edu/
------- End of forwarded message -------