Skip Menu |

This queue is for tickets about the Unicode-Map8 CPAN distribution.

Report information
The Basics
Id: 476
Status: resolved
Priority: 0/
Queue: Unicode-Map8

People
Owner: Nobody in particular
Requestors: semancik [...] bgs.sk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.11
Fixed in: 0.12



Subject: Solaris8: Map8.xs:95: parse error before `SV'
Unicode-Map8-0.11 can't compile on Solaris8/sparc: poseidon:/var/cpan/build/Unicode-Map8-0.11# perl Makefile.PL Writing Makefile for Unicode::Map8 poseidon:/var/cpan/build/Unicode-Map8-0.11# make gcc -c -O3 -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -fPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DPERL Map8.c Map8.xs:95: parse error before `SV' Map8.xs: In function `map8_magic_free': Map8.xs:97: `mg' undeclared (first use in this function) Map8.xs:97: (Each undeclared identifier is reported only once Map8.xs:97: for each function it appears in.) *** Error code 1 make: Fatal error: Command failed for target `Map8.o' poseidon:/var/cpan/build/Unicode-Map8-0.11# The problem seems to be undefined pTHX_ on line 104 of Map8.c
[guest - Fri Apr 12 07:02:25 2002]: Problem occurs exactly the same in Linux 2.2.20. Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=linux, osvers=2.2.6, archname=i386-linux uname='linux xyzzy 2.2.6 #2 wed jun 16 15:23:52 cdt 1999 i686 unknown ' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include' ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include' stdchar='char', d_stdstdio=undef, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /shlib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt libc=, 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): Built under linux Compiled at Jul 18 1999 14:59:25 @INC: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .
From: Miguel Angel Castellanos [migcas [...] eltiempo.com.co]
The problem can be solved by editing Map8.xs on line 95: map8_magic_free(pTHX_ SV* sv, MAGIC* mg) Delete the pTHX_ word Then edit map8x.c and delete all the lines: "dTHX;" It did compile, test and install correctly, but I didn't test the library working.
From: Mike Andreev adreev [...] smis.iki.rssi.ru
I've got the same error on FreeBSD 4.5-RELEASE and Linux RedHat 6.x (?) [with perl version 5.005_03]. To avoid this I just install Unicode-Map8-0.10 from ports for FreeBSD and from srouce for Linux. It works well for me. May be it's worth to put on CPAN this version?