perl 5.6 and mapscript compile problem with TrueType

John Frank jrf at segovia.mit.edu
Tue Jan 30 15:06:18 EST 2001


Shortly after switching to perl5.6, I noticed that my install of mapscript
was no longer acting like it has TrueType fonts.

So I recompiled -- used ./configure no problem -- then I tried to rebuild
the mapscript Makefile.  I get the errors below.  Any ideas?


root at roog:/ms/nightly/mapserver/mapscript/perl# perl Makefile.PL
-I/ms/nightly/mapserver -I/ms/nightly/mapserver/gdft
-I/usr/include/freetype
-L/ms/nightly/mapserver -lmap -lgd -lpng -lz -L/ms/nightly/mapserver/gdft
-lgdft -lttf -ltiff -ljpeg -lm
Writing Makefile for mapscript

##### here's where it goes wrong:
root at roog:/ms/nightly/mapserver/mapscript/perl# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/mapscript
mkdir blib/lib/auto
mkdir blib/lib/auto/mapscript
cp mapscript.pm blib/lib/mapscript.pm
cc -c -I/ms/nightly/mapserver -I/ms/nightly/mapserver/gdft
-I/usr/include/freetype -D_REENTRANT -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic
-I/usr/local/lib/perl5/5.6.0/i686-linux-thread/CORE -DIGNORE_MISSING_DATA
-DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_6 mapscript_wrap.c
mapscript_wrap.c: In function `_swig_create_magic':
mapscript_wrap.c:416: warning: assignment from incompatible pointer type
mapscript_wrap.c:417: warning: assignment from incompatible pointer type
mapscript_wrap.c: At top level:
mapscript_wrap.c:13696: conflicting types for `boot_mapscript'
mapscript_wrap.c:431: previous declaration of `boot_mapscript'
make: *** [mapscript_wrap.o] Error 1



For info, here's my perl version info:

root at roog:/ms/nightly/mapserver/mapscript/perl# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.17, archname=i686-linux-thread
    uname='linux roog 2.2.17 #1 mon nov 27 16:19:10 est 2000 i686 unknown
'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=define useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.95.2 20000220 (Debian GNU/Linux)
    cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lpthread -lc -lposix
-lcrypt
    libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_THREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Jan 23 2001 00:56:43
  @INC:
    /usr/local/lib/perl5/5.6.0/i686-linux-thread
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl
    .




More information about the mapserver-users mailing list