-----BEGIN PGP SIGNED MESSAGE-----

Moin,

after the inital troubles I am now in more troubles. Warning, long mail!

MakeMaker does not seem to find Xxf86vm:

null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # perl Makefile.PL
Note (probably harmless): No library found for -lXxf86vm
Writing Makefile for Games::Irrlicht

Hm.

null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # whereis libXxf86vm
libXxf86vm:
null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # whereis libjpeg
libjpeg: /usr/lib/libjpeg.a /usr/lib/libjpeg.la /usr/lib/libjpeg.so

The libraries are there and /usr/X11R6/lib is a symlink to /usr/X11/lib:

null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # ls -la /usr/X11/lib/
libXxf86*
- -rw-r--r--    1 root     root        21326 2003-03-17 14:26 /usr/X11/lib/
libXxf86dga.a
lrwxrwxrwx    1 root     root           18 2003-11-28 18:38 /usr/X11/lib/
libXxf86dga.so.1 -> libXxf86dga.so.1.0
- -rwxr-xr-x    1 root     root        24152 2003-03-17 14:29 /usr/X11/lib/
libXxf86dga.so.1.0
- -rw-r--r--    1 root     root         7054 2003-03-17 14:26 /usr/X11/lib/
libXxf86misc.a
lrwxrwxrwx    1 root     root           19 2003-11-28 18:38 /usr/X11/lib/
libXxf86misc.so.1 -> libXxf86misc.so.1.0
- -rwxr-xr-x    1 root     root        11000 2003-03-17 14:29 /usr/X11/lib/
libXxf86misc.so.1.0
- -rw-r--r--    1 root     root         5330 2003-03-17 14:26 /usr/X11/lib/
libXxf86rush.a
- -rw-r--r--    1 root     root        16710 2003-03-17 14:26 /usr/X11/lib/
libXxf86vm.a
lrwxrwxrwx    1 root     root           17 2003-11-28 18:38 /usr/X11/lib/
libXxf86vm.so.1 -> libXxf86vm.so.1.0
- -rwxr-xr-x    1 root     root        19813 2003-03-17 14:29 /usr/X11/lib/
libXxf86vm.so.1.0

And /etc/ldconf.so.config contains this line:

/usr/X11R6/lib

Ignoring this warning, make runs fine:

null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # make
g++ -c   -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
- -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fpic 
"-I/usr/local/lib/perl5/5.8.2/i686-linux/CORE"   Irrlicht.c
Running Mkbootstrap for Games::Irrlicht ()
chmod 644 Irrlicht.bs
rm -f blib/arch/auto/Games/Irrlicht/Irrlicht.so
LD_RUN_PATH="/usr/lib:/lib" gcc  -shared -L/usr/local/lib Irrlicht.o  -o 
blib/arch/auto/Games/Irrlicht/Irrlicht.so   -lIrrlicht -lGL -lGLU -ljpeg 
- -lz
chmod 755 blib/arch/auto/Games/Irrlicht/Irrlicht.so
cp Irrlicht.bs blib/arch/auto/Games/Irrlicht/Irrlicht.bs
chmod 644 blib/arch/auto/Games/Irrlicht/Irrlicht.bs
Manifying blib/man3/Games::Irrlicht.3

Not, however, that -lXxf86vm disappeared. However, running the tests:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/irrlichtpm....NOK 1#     Failed test (t/irrlichtpm.t at line 12)
#     Tried to use 'Games::Irrlicht'.
#     Error:  Can't load '/home/te/perl/Irrlicht/Games-Irrlicht-0.01/blib/
arch/auto/Games/Irrlicht/Irrlicht.so' for module Games::Irrlicht: /home/te/
perl/Irrlicht/Games-Irrlicht-0.01/blib/arch/auto/Games/Irrlicht/
Irrlicht.so: undefined symbol: XF86VidModeSwitchToMode at /usr/local/lib/
perl5/5.8.2/i686-linux/DynaLoader.pm line 229.

Ugh. The entire .pm file consists of:

package Games::Irrlicht;

use strict;
use Config::Simple qw/-lc -strict/;
use Getopt::Long;
require DynaLoader;
require Exporter;

use vars qw/@ISA $VERSION @EXPORT_OK/;
@ISA = qw/Exporter DynaLoader/;

$VERSION = '0.01';
bootstrap Games::Irrlicht $VERSION;

##############################################################################

sub new
  {
  # create a new instance of Games::Irrlicht - usually you need only one
  my $class = shift;
  my $self = {}; bless $self, $class;

  $self;
  }

sub DESTROY
  {
  my $self = shift;

  }

E.g. it doesn't even _use_ the XS.

If I try to add this line to Makefile.PL:

        'LDDLFLAGS'     => '-L"/usr/X11/lib" -L"/usr/X11R6/lib" -L"jpeglib"
         -L"zlib"',

even the make fails:

null:/home/te/perl/Irrlicht/Games-Irrlicht-0.01 # make
cp lib/Games/Irrlicht.pm blib/lib/Games/Irrlicht.pm
cp lib/Games/Irrlicht.pm.old blib/lib/Games/Irrlicht.pm.old
g++ -c   -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
- -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fpic 
"-I/usr/local/lib/perl5/5.8.2/i686-linux/CORE"   Irrlicht.c
Running Mkbootstrap for Games::Irrlicht ()
chmod 644 Irrlicht.bs
rm -f blib/arch/auto/Games/Irrlicht/Irrlicht.so
LD_RUN_PATH="/usr/lib:/lib" gcc  -L"/usr/X11/lib" -L"/usr/X11R6/lib" 
- -L"jpeglib" -L"zlib" --no-export-all-symbols Irrlicht.o  -o blib/arch/auto/
Games/Irrlicht/Irrlicht.so   -lIrrlicht -lGL -lGLU -ljpeg -lz
/usr/lib/crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
Irrlicht.o(.text+0x1b6): In function `XS_Games__Irrlicht__init_engine(cv*)':
: undefined reference to `PL_markstack_ptr'
[many more errors]

I am stumped... I read the MakeMaker documentation, fiddled around with ldd 
and lots of utilities, but I can see where the problem is exactly. I am 
doing probably something stupid here...

Thank you for your time,

Tels

- -- 
 Signed on Sat Feb 28 10:31:30 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Metaphorisch gesprochen war das  Trusted-Computing-Vorhaben bisher wie
 eine Großmutter, die das Rotkäppchen in ihr Häuschen bitten will und ihm
 erklärt, dass die dort vorhandenen Ketten, Handschellen und Kameras zum
 Schutz vor dem bösen Wolf dienten und nichts mit ihren belgischen
 Geschäftsfreunden zu tun hätten." -- Peter Mühlbauer 22.02.2004 in
 http://tinyurl.com/yv6j3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQEBf8ncLPEOTuEwVAQGFIgf/RmSARHK0vzWytCo9B9jAXP9ck2guv7xv
jZSS+v6XT8bOOvIpcVISF7JslTPfjYbvOLOkCUB5ga/r0UrUxWcqbGBaMbsPN8ce
LW6i6XXrMozQ08RKdN7GIAKoz4Il+pgAFLzjkAVGLzDvNvWxgb1SFd/XmLenyBCg
Y/o6HcUsYo1iwv0Y+M9G4ghtKNewBY4GmjSRwaoT18qG6/20u37XX+eszMSWaApT
b5Yi7Npvck4ySpG56rYIxwBhU4w1Clp/6HfdFbqqNVFP6b97c802++spJVk4/llU
Q7of8h5KhOI8rzvdDGw3nKh6PYsdoeenlNFVIBtRT9YDbotmqdulmQ==
=sGFW
-----END PGP SIGNATURE-----

Reply via email to