develooper Front page | perl.perl5.porters | Postings from April 2003

5.8.0: two problems

Thread Next
From:
Ilya Zakharevich
Date:
April 22, 2003 11:43
Subject:
5.8.0: two problems
Message ID:
20030422184316.GA8602@math.berkeley.edu
Reports from users building Math::Pari:

A)

gcc -c -I../../pari-2.1.4/src/headers -I../../pari-2.1.4/src -I./libPARI
-DUSE_REENTRANT_API -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -L/lib/pa1.1
-DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.010402\"  -DXS_VERSION=\"2.010402\" -fPIC
-I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE
-DPARI_VERSION_EXP=2001004 -DDEBUG_PARI -DLSB_in_U32=3 -Derr=pari_err
-DGCC_INLINE Pari.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory

Why /usr/local/include is put in CCFLAGS?  [I see the same on OS/2
build (I build on disk k:, and there is k:/usr/local/include left from
some clueless `make install' of autoconf).]

Or is it a sign of a binary distributed Perl kit?

B) Pari.xs: In function `XS_Math__Pari_loadPari':
   Pari.xs:3071: warning: assignment from incompatible pointer type

That's a bug.  Here is a fix:

--- ./XSUB.h-pre	Sun Mar  2 09:34:30 2003
+++ ./XSUB.h	Tue Apr 22 11:40:56 2003
@@ -103,7 +103,7 @@ handled automatically by C<xsubpp>.
 #define dXSFUNCTION(ret)		XSINTERFACE_CVT(ret,XSFUNCTION)
 #define XSINTERFACE_FUNC(ret,cv,f)     ((XSINTERFACE_CVT(ret,))(f))
 #define XSINTERFACE_FUNC_SET(cv,f)	\
-		CvXSUBANY(cv).any_dptr = (void (*) (pTHX_ void*))(f)
+		CvXSUBANY(cv).any_dxptr = (void (*) (pTHX_ void*))(f)
 
 /* Simple macros to put new mortal values onto the stack.   */
 /* Typically used to return values from XS functions.       */

Yours,
Ilya

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About