Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Trying to install the Tcl/Tk modules to do a GUI on AIX5.3. I have successfully built the Tcl libraries from source. And, I've been able to install the RPM packages via the AIX linux tools. However, I cannot get things combed straight.

perl ./MakeFile.pl - works.
make appears to work.
make test fails spectacularly. Since Tcl.pm won't load, all tests fail.

My suspicion is that there is a 32 vs 64 bit tangle. When I built the Tcl libraries from source I used --enable-64bit. As the build ran, I noticed a warning stating 64bit was not supported on AIX, and it reverted back to 32. The libs built and I can crankup tclsh. But, I'm suspicious that the 64bit Perl install is choking on the 32bit libraries.

Any feedback about this specific issue would be appreciated. Also, any ideas on the wider process of getting Tcl/Tk and associated Perl modules installed on AIX5.3 would be appreciated.

root@host:/opt/perl-5.14.4/downloads/modules/Tkx/Tcl-1.02# perl514 Mak +efile.PL LIBS = -Ltcl-core/aix -ltclstub8.4 INC = -Itcl-core/include DEFINE = -DUSE_TCL_STUBS Checking if your kit is complete... Looks good Warning: -Ltcl-core/aix changed to -L/opt/perl-5.14.4/downloads/module +s/Tkx/Tcl-1.02/tcl-core/aix Generating a Unix-style Makefile Writing Makefile for Tcl Writing MYMETA.yml and MYMETA.json root@host:/opt/perl-5.14.4/downloads/modules/Tkx/Tcl-1.02# make cp Tcl.pm blib/lib/Tcl.pm /usr/bin/perl514 -e 'use ExtUtils::Mksymlists; Mksymlists("NA +ME" => "Tcl", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []); +' Running Mkbootstrap for Tcl () chmod 644 Tcl.bs /usr/bin/perl514 /opt/perl-5.14.4/lib/5.14.4/ExtUtils/xsubpp +-typemap /opt/perl-5.14.4/lib/5.14.4/ExtUtils/typemap -typemap typema +p Tcl.xs > Tcl.xsc && mv Tcl.xsc Tcl.c Please specify prototyping behavior for Tcl.xs (see perlxs manual) gcc -maix64 -maix64 -c -Itcl-core/include -D_THREAD_SAFE -D_ +ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEE +D_PTHREAD_INIT -fno-strict-aliasing -pipe -I/usr/local/include -maix6 +4 -DUSE_64_BIT_ALL -O -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" " +-I/opt/perl-5.14.4/lib/5.14.4/aix-thread-multi-64all/CORE" -DUSE_TCL +_STUBS Tcl.c rm -f blib/arch/auto/Tcl/Tcl.so gcc -maix64 -maix64 -Wl,-b64 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:/opt +/perl-5.14.4/lib/5.14.4/aix-thread-multi-64all/CORE/perl.exp -Wl,-bE: +Tcl.exp -Wl,-bnoentry -lpthreads -lc -lm -L/usr/local/lib Tcl.o -o b +lib/arch/auto/Tcl/Tcl.so -L/opt/perl-5.14.4/downloads/module +s/Tkx/Tcl-1.02/tcl-core/aix -ltclstub8.4 chmod 755 blib/arch/auto/Tcl/Tcl.so /usr/bin/perl514 -MExtUtils::Command::MM -e 'cp_nonempty' -- +Tcl.bs blib/arch/auto/Tcl/Tcl.bs 644 Manifying blib/man3/Tcl.3 root@host:/opt/perl-5.14.4/downloads/modules/Tkx/Tcl-1.02# make test Running Mkbootstrap for Tcl () chmod 644 Tcl.bs PERL_DL_NONLAZY=1 /usr/bin/perl514 "-MExtUtils::Command::MM" " +-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0 +, 'blib/lib', 'blib/arch')" t/*.t t/call.t ........... Can't load '/opt/perl-5.14.4/downloads/modules/Tk +x/Tcl-1.02/blib/arch/auto/Tcl/Tcl.so' for module Tcl: rtld: 0712-001 +Symbol Tcl_InitStubs was referenced from module /opt/perl-5.14.4/downloads/modules/Tkx/Tcl-1.02/blib +/arch/auto/Tcl/Tcl.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol tclStubsPtr was referenced from module /opt/perl-5.14.4/downloads/modules/Tkx/Tcl-1.02/blib +/arch/auto/Tcl/Tcl.so(), but a runtime definition of the symbol was not found. rtld: 0712-002 fatal error: exiting. at /opt/perl-5.14.4/lib/5.14.4/ai +x-thread-multi-64all/DynaLoader.pm line 190. at t/call.t line 6 Compilation failed in require at t/call.t line 6. BEGIN failed--compilation aborted at t/call.t line 6. Undefined subroutine &Tcl::_Finalize called at /opt/perl-5.14.4/downlo +ads/modules/Tkx/Tcl-1.02/blib/lib/Tcl.pm line 422. END failed--call queue aborted at t/call.t line 6. t/call.t ........... Dubious, test returned 22 (wstat 5632, 0x1600)

In reply to Tcl module install issues by CarolinaPerler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found