Perl Curses 1.06 on Mac OS X 10.3.2 (panther-darwin 7.2), compile error

From: Adrian de los Santos (demonNOSPAM_at_demon.com.mx)
Date: 03/14/04


Date: Sun, 14 Mar 2004 10:34:51 -0600

Hi guys, i'm trying to compile the curses module for darwin 7.2 (Apple
OS X 10.3.2, alias panther) but since every attempt i try fails, i come
here to see if someone can help me.

I have tried with several hint files (darwin, freebsd,openbsd, netbsd,
next, and even some suggested on usenet), and with all, the compilation
fails.

Specifically here its the compile error:

---
cc -c   -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"1.06\" 
-DXS_VERSION=\"1.06\"  
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"   
Curses.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
Curses.c: In function `c_sv2window':
Curses.c:275: warning: passing arg 1 of `Perl_sv_isa' from incompatible 
pointertype
Curses.c:275: warning: passing arg 2 of `Perl_sv_isa' from incompatible 
pointertype
Curses.c:275: too few arguments to function `Perl_sv_isa'
In file included from Curses.c:344:
CursesFun.c: In function `XS_Curses_newterm':
CursesFun.c:1279: warning: initialization from incompatible pointer type
CursesFun.c:1280: warning: initialization from incompatible pointer type
CursesFun.c: In function `XS_Curses_putwin':
CursesFun.c:3453: warning: initialization from incompatible pointer type
CursesFun.c: In function `XS_Curses_getwin':
CursesFun.c:3472: warning: initialization from incompatible pointer type
make: *** [Curses.o] Error 1
---
And here its my current c-config.h file
---
#include <curses.h>
#ifdef C_PANELSUPPORT
#include <panel.h>
#endif
#ifdef C_MENUSUPPORT
#include <menu.h>
#endif
#ifdef C_FORMSUPPORT
#include "/usr/include/form.h"
#endif
#define C_LONGNAME
#define  C_LONG0ARGS
#undef C_LONG2ARGS
#define C_TOUCHLINE
#define  C_TOUCH3ARGS
#undef C_TOUCH4ARGS
#undef bool
#undef instr
---
My os and gcc details:
--
# uname -a
Darwin hawking.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 
16:20:23 PST2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC  Power 
Macintosh powerpc
# gcc --version
gcc (GCC) 3.1 20021003 (prerelease)
--
Can someone please help me ?
Thanks.


Relevant Pages

  • Curses-1.06 on mac OS X 10.3.2 compilation error
    ... i'm trying to compile the curses module for darwin 7.0 (Apple ... Curses.c:275: warning: passing arg 1 of `Perl_sv_isa' from incompatible ... CursesFun.c:1279: warning: initialization from incompatible pointer type ...
    (comp.lang.perl.misc)
  • Re: [ANN] OpenGL-0.32g for Apple MacOS X
    ... > your compile includes this flag? ... glu.c:1185: warning: passing arg 2 of `ary2cint' from incompatible pointer type ...
    (comp.lang.ruby)
  • wireless problem using linux driver
    ... browsing around the web to find the windows driver, ... iwlist wlan0 [parameters] ... warning: assignment from incompatible pointer type ...
    (Ubuntu)
  • wireless linux driver problems
    ... browsing around the web to find the windows driver, ... iwlist wlan0 [parameters] ... warning: assignment from incompatible pointer type ...
    (Ubuntu)
  • Re: Creating Driver for ACX100 wireless adapter
    ... ../include/p80211netdev.h:587: warning: implicit declaration of function ... acx100.c:551: warning: assignment from incompatible pointer type ... acx100.c:566: warning: passing arg 1 of `acx100_reset_dev' from ...
    (alt.os.linux.suse)