problems compiling ruby 1.8.1 on AIX 4.3.3

Discussion in 'Ruby' started by paul, Jan 6, 2004.

  1. paul

    paul Guest

    Hi,

    when I run configure, I get:

    configure: WARNING: pthread.h: present but cannot be compiled
    configure: WARNING: pthread.h: check for missing prerequisite headers?
    configure: WARNING: pthread.h: see the Autoconf documentation
    configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
    configure: WARNING: pthread.h: proceeding with the preprocessor's result
    configure: WARNING: pthread.h: in the future, the compiler will take precedence
    configure: WARNING: ## ------------------------------------------ ##
    configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
    configure: WARNING: ## ------------------------------------------ ##

    running make gives:
    ......
    ......
    /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE
    -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o
    -ldl -lcrypt -lm -lc
    ld: 0711-317 ERROR: Undefined symbol: .__eprintf
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    make: 1254-004 The error code from the last command is 8.


    Stop.
    make: 1254-004 The error code from the last command is 1.

    Any ideas?

    Thanks,

    Paul
     
    paul, Jan 6, 2004
    #1
    1. Advertising

  2. paul

    Guest

    Hi,

    At Tue, 6 Jan 2004 13:51:43 +0900,
    paul wrote:
    > when I run configure, I get:
    >
    > configure: WARNING: pthread.h: present but cannot be compiled
    > configure: WARNING: pthread.h: check for missing prerequisite headers?
    > configure: WARNING: pthread.h: see the Autoconf documentation
    > configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
    > configure: WARNING: pthread.h: proceeding with the preprocessor's result
    > configure: WARNING: pthread.h: in the future, the compiler will take precedence
    > configure: WARNING: ## ------------------------------------------ ##
    > configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
    > configure: WARNING: ## ------------------------------------------ ##
    >
    > running make gives:
    > ......
    > ......
    > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE
    > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o
    > -ldl -lcrypt -lm -lc
    > ld: 0711-317 ERROR: Undefined symbol: .__eprintf
    > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.


    Have you installed required stuff (libraries etc.) properly?

    Or, try

    ./cnofigure --disable-pthread CPPFLAGS=-DNDEBUG

    --
    Nobu Nakada
     
    , Jan 6, 2004
    #2
    1. Advertising

  3. paul

    Paul Guest

    Re: problems compiling ruby 1.8.1 on AIX 4.3.3 AND 5.1

    wrote in message news:<>...
    > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE
    > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o
    > > -ldl -lcrypt -lm -lc
    > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf
    > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

    >
    > Have you installed required stuff (libraries etc.) properly?


    What required libraries?? On Solaris 8, all I had to do was:
    # configure
    # make
    # make install

    and it all worked fine.

    > Or, try
    >
    > ./cnofigure --disable-pthread CPPFLAGS=-DNDEBUG


    I did and still get errors:

    to summarize:

    * on AIX 4.3.3/GCC I get:
    /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp
    -bM:SRE
    -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o
    rmd160hl.o
    -ldl -lcrypt -lm -lc
    ld: 0711-317 ERROR: Undefined symbol: .__eprintf

    * on AIX 4.3.3 / IBM VAC I get:


    * on {AIX 4.3.3/5.1} / IBM VAC I get:

    compiling curses
    cc -g -I. -I/home/paul/ruby-1.8.1 -I/home/paul/ruby-1.8.1
    -I/home/paul/ruby-1.8.1/ext/curses -DHAVE_CURSES_H -DHAVE_BEEP
    -DHAVE_BKGD -DHAVE_BKGDSET -DHAVE_CURS_SET -DHAVE_DELETELN
    -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_GETBKGD -DHAVE_GETNSTR -DHAVE_INIT
    -DHAVE_ISENDWIN -DHAVE_KEYNAME -DHAVE_KEYPAD -DHAVE_RESIZETERM
    -DHAVE_SCRL -DHAVE_SET -DHAVE_SETSCRREG -DHAVE_UNGETCH -DHAVE_WATTROFF
    -DHAVE_WATTRON -DHAVE_WATTRSET -DHAVE_WBKGD -DHAVE_WBKGDSET
    -DHAVE_WDELETELN -DHAVE_WGETNSTR -DHAVE_WRESIZE -DHAVE_WSCRL
    -DHAVE_WSETSCRREG -DHAVE_DEF_PROG_MODE -DHAVE_RESET_PROG_MODE
    -DHAVE_TIMEOUT -DHAVE_WTIMEOUT -DHAVE_NODELAY -DHAVE_INIT_COLOR
    -DNDEBUG -c curses.c
    "/home/paul/ruby-1.8.1/ruby.h", line 65.1: 1506-224 (I) Incorrect
    #pragma ignored.
    /usr/ccs/bin/ld -brtl -eInit_curses
    -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE -T512 -H512 -lc
    -L"/home/paul/ruby-1.8.1" -L"/home/paul/local/lib" -o curses.so
    curses.o -lcurses -ldl -lcrypt -lm -lc
    ld: 0711-317 ERROR: Undefined symbol: .wresize
    ld: 0711-317 ERROR: Undefined symbol: .resizeterm
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.
    make: 1254-004 The error code from the last command is 8.

    ---

    DO I need to set LIBPATH or ???

    Still confused,

    Paul
     
    Paul, Jan 6, 2004
    #3
  4. paul

    Guest

    Re: problems compiling ruby 1.8.1 on AIX 4.3.3 AND 5.1

    Hi,

    At Wed, 7 Jan 2004 04:26:42 +0900,
    Paul wrote:
    > > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE
    > > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o
    > > > -ldl -lcrypt -lm -lc
    > > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf
    > > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

    > >
    > > Have you installed required stuff (libraries etc.) properly?

    >
    > What required libraries??


    I'm not sure what you need to use pthread on AIX.

    > * on AIX 4.3.3/GCC I get:
    > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp
    > -bM:SRE
    > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o
    > rmd160hl.o
    > -ldl -lcrypt -lm -lc
    > ld: 0711-317 ERROR: Undefined symbol: .__eprintf


    This symbol is for assert()?

    > * on {AIX 4.3.3/5.1} / IBM VAC I get:
    >
    > "/home/paul/ruby-1.8.1/ruby.h", line 65.1: 1506-224 (I) Incorrect
    > #pragma ignored.


    #pragma alloca is valid for only gcc?

    > /usr/ccs/bin/ld -brtl -eInit_curses
    > -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE -T512 -H512 -lc
    > -L"/home/paul/ruby-1.8.1" -L"/home/paul/local/lib" -o curses.so
    > curses.o -lcurses -ldl -lcrypt -lm -lc
    > ld: 0711-317 ERROR: Undefined symbol: .wresize
    > ld: 0711-317 ERROR: Undefined symbol: .resizeterm


    I have no idea why extconf detected them but ld failed. Can
    you show mkmf.rb under ext/curses?

    --
    Nobu Nakada
     
    , Jan 7, 2004
    #4
  5. paul

    Paul Guest

    tcltk_stubs init error (was problems compiling ruby 1.8.1 on AIX 4.3.3 AND 5.1)

    OK, I finally got it to compile .. had to undef some stuff.

    Running some basic ruby scripts seems to work, but the tcl/tk module
    seems broken:

    /home/ivr_tools/local/lib/ruby/1.8/powerpc-aix4.3.3.0/tcltklib.so:
    tcltklib: tcltk_stubs init error(-1) (LoadError)
    from /home/ivr_tools/local/lib/ruby/1.8/tk.rb:7
    from ./tkballoonhelp.rb:13:in `require'
    from ./tkballoonhelp.rb:13

    During the build of ext/tcltklib and ext/tk, I saw no warnings or
    errors.

    Any ideas?

    Thanks,

    Paul

    wrote in message news:<>...
    > Hi,
    >
    > At Wed, 7 Jan 2004 04:26:42 +0900,
    > Paul wrote:
    > > > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE
    > > > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > > > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o
    > > > > -ldl -lcrypt -lm -lc
    > > > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf
    > > > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    > > >
    > > > Have you installed required stuff (libraries etc.) properly?

    > >
    > > What required libraries??

    >
    > I'm not sure what you need to use pthread on AIX.
    >
    > > * on AIX 4.3.3/GCC I get:
    > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp
    > > -bM:SRE
    > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1"
    > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o
    > > rmd160hl.o
    > > -ldl -lcrypt -lm -lc
    > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf

    >
    > This symbol is for assert()?
    >
    > > * on {AIX 4.3.3/5.1} / IBM VAC I get:
    > >
    > > "/home/paul/ruby-1.8.1/ruby.h", line 65.1: 1506-224 (I) Incorrect
    > > #pragma ignored.

    >
    > #pragma alloca is valid for only gcc?
    >
    > > /usr/ccs/bin/ld -brtl -eInit_curses
    > > -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE -T512 -H512 -lc
    > > -L"/home/paul/ruby-1.8.1" -L"/home/paul/local/lib" -o curses.so
    > > curses.o -lcurses -ldl -lcrypt -lm -lc
    > > ld: 0711-317 ERROR: Undefined symbol: .wresize
    > > ld: 0711-317 ERROR: Undefined symbol: .resizeterm

    >
    > I have no idea why extconf detected them but ld failed. Can
    > you show mkmf.rb under ext/curses?
     
    Paul, Jan 8, 2004
    #5
  6. paul

    Guest

    Re: tcltk_stubs init error (was problems compiling ruby 1.8.1 on AIX 4.3.3 AND 5.1)

    Hi,

    At Fri, 9 Jan 2004 07:06:40 +0900,
    Paul wrote:
    > OK, I finally got it to compile .. had to undef some stuff.


    How did you change?

    > Running some basic ruby scripts seems to work, but the tcl/tk module
    > seems broken:
    >
    > /home/ivr_tools/local/lib/ruby/1.8/powerpc-aix4.3.3.0/tcltklib.so:
    > tcltklib: tcltk_stubs init error(-1) (LoadError)
    > from /home/ivr_tools/local/lib/ruby/1.8/tk.rb:7
    > from ./tkballoonhelp.rb:13:in `require'
    > from ./tkballoonhelp.rb:13


    Perhaps, you have to set RUBY_TCL_DLL and RUBY_TK_DLL
    environment variables properly. Set them to actual tcl/tk
    shared library pathes.

    --
    Nobu Nakada
     
    , Jan 9, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ClownPleco

    putenv for AIX and ifdef for AIX

    ClownPleco, Aug 22, 2007, in forum: C Programming
    Replies:
    5
    Views:
    1,143
    Thomas Dickey
    Aug 24, 2007
  2. Lars Kromann

    Problem compiling ruby on AIX 5.2

    Lars Kromann, Jul 13, 2004, in forum: Ruby
    Replies:
    1
    Views:
    127
  3. Replies:
    5
    Views:
    203
    Philippe Lucas
    Jul 8, 2005
  4. Christopher Gibbons

    Compiling Ruby 1.8.4 on AIX HOWTO and Binaries

    Christopher Gibbons, Mar 7, 2006, in forum: Ruby
    Replies:
    0
    Views:
    149
    Christopher Gibbons
    Mar 7, 2006
  5. Replies:
    0
    Views:
    113
Loading...

Share This Page