Compiling Python2.1.1 on FreeBSD3.5 Problem

Gerrie Roos gerrie at trispen.com
Wed Oct 3 05:36:05 EDT 2001


Hi!
Hope it's in order to ask such questions here...

I downloaded Python-2.1.1.tgz, the latest sources I could find, unpacked
the lot on a FreeBSD3.5 machine read all the compiling/installation
stuff, etc...then I:

- did 'make clobber' just to make sure...
-  Removed '-ltermcap' from the 'readline' entry in Modules/Setup, as
advised in the README.  This entry was commented out with a '#', so
I left it...hmmm...should I uncomment it?
-  Added: '_curses _cursesmodule.c -lmytinfo -lncurses -ltermcap' to
Modules/Setup, as advised in the README.  The README doesn't use the
underscores, but I think one should, since the commented-out examples in
the Setup file does use underscores...and the source file is
_cursesmodule.c.  Is all I did here right?
-  I ran ./configure
-  I checked the Modules/Setup file to see if my changes were still
there
-  did 'make'

...and this is what I got:

.
.
lots of successful stuff
.
.
.

gcc -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H
-c ./Modules/_cursesmodule.c -o Modules/_cursesmodule.o
./Modules/_cursesmodule.c: In function `PyCursesWindow_wsyncup':
./Modules/_cursesmodule.c:295: warning: implicit declaration of function
`wsyncup'
./Modules/_cursesmodule.c: In function `PyCursesWindow_wsyncdown':
./Modules/_cursesmodule.c:296: warning: implicit declaration of function
`wsyncdown'
./Modules/_cursesmodule.c: In function `PyCursesWindow_wcursyncup':
./Modules/_cursesmodule.c:299: warning: implicit declaration of function
`wcursyncup'
./Modules/_cursesmodule.c: In function `PyCursesWindow_idcok':
./Modules/_cursesmodule.c:304: warning: implicit declaration of function
`idcok'
./Modules/_cursesmodule.c: In function `PyCursesWindow_immedok':
./Modules/_cursesmodule.c:305: warning: implicit declaration of function
`immedok'
./Modules/_cursesmodule.c: In function `PyCursesWindow_getparyx':
./Modules/_cursesmodule.c:311: warning: implicit declaration of function
`getparyx'
./Modules/_cursesmodule.c:311: warning: `arg1' might be used
uninitialized in this function
./Modules/_cursesmodule.c:311: warning: `arg2' might be used
uninitialized in this function
./Modules/_cursesmodule.c: In function `PyCursesWindow_wattron':
./Modules/_cursesmodule.c:313: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:313: (Each undeclared identifier is reported
only once
./Modules/_cursesmodule.c:313: for each function it appears in.)
./Modules/_cursesmodule.c:313: parse error before `arg1'
./Modules/_cursesmodule.c:313: `arg1' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_wattroff':
./Modules/_cursesmodule.c:314: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:314: parse error before `arg1'
./Modules/_cursesmodule.c:314: `arg1' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_wattrset':
./Modules/_cursesmodule.c:315: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:315: parse error before `arg1'
./Modules/_cursesmodule.c:315: `arg1' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_syncok':
./Modules/_cursesmodule.c:332: warning: implicit declaration of function
`syncok'
./Modules/_cursesmodule.c: In function `PyCursesWindow_mvderwin':
./Modules/_cursesmodule.c:335: warning: implicit declaration of function
`mvderwin'
./Modules/_cursesmodule.c: In function `PyCursesWindow_wresize':
./Modules/_cursesmodule.c:338: warning: implicit declaration of function
`wresize'
./Modules/_cursesmodule.c: In function `PyCursesWindow_AddCh':
./Modules/_cursesmodule.c:369: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:369: parse error before `attr'
./Modules/_cursesmodule.c:377: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_AddStr':
./Modules/_cursesmodule.c:415: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:415: parse error before `attr'
./Modules/_cursesmodule.c:424: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c:444: `attr_old' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_AddNStr':
./Modules/_cursesmodule.c:461: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:461: parse error before `attr'
./Modules/_cursesmodule.c:470: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c:490: `attr_old' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_Bkgd':
./Modules/_cursesmodule.c:507: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:507: parse error before `attr'
./Modules/_cursesmodule.c:515: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_BkgdSet':
./Modules/_cursesmodule.c:536: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:536: parse error before `attr'
./Modules/_cursesmodule.c:544: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_EchoChar':
./Modules/_cursesmodule.c:648: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:648: parse error before `attr'
./Modules/_cursesmodule.c:656: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c:673: warning: implicit declaration of function
`pechochar'
./Modules/_cursesmodule.c: In function `PyCursesWindow_GetStr':
./Modules/_cursesmodule.c:798: warning: implicit declaration of function
`mvwgetnstr'
./Modules/_cursesmodule.c: In function `PyCursesWindow_Hline':
./Modules/_cursesmodule.c:817: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:817: parse error before `attr'
./Modules/_cursesmodule.c:825: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_InsCh':
./Modules/_cursesmodule.c:860: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:860: parse error before `attr'
./Modules/_cursesmodule.c:868: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_InStr':
./Modules/_cursesmodule.c:940: warning: implicit declaration of function
`mvwinstr'
./Modules/_cursesmodule.c: In function `PyCursesWindow_InsStr':
./Modules/_cursesmodule.c:962: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:962: parse error before `attr'
./Modules/_cursesmodule.c:971: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c:991: `attr_old' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_InsNStr':
./Modules/_cursesmodule.c:1008: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:1008: parse error before `attr'
./Modules/_cursesmodule.c:1017: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c:1037: `attr_old' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCursesWindow_PutWin':
./Modules/_cursesmodule.c:1199: warning: implicit declaration of
function `putwin'
./Modules/_cursesmodule.c: In function `PyCursesWindow_Vline':
./Modules/_cursesmodule.c:1345: `attr_t' undeclared (first use this
function)
./Modules/_cursesmodule.c:1345: parse error before `attr'
./Modules/_cursesmodule.c:1353: `attr' undeclared (first use this
function)
./Modules/_cursesmodule.c: In function `PyCurses_termattrs':
./Modules/_cursesmodule.c:1516: warning: implicit declaration of
function `termattrs'
./Modules/_cursesmodule.c: In function `PyCurses_termname':
./Modules/_cursesmodule.c:1518: warning: implicit declaration of
function `termname'
./Modules/_cursesmodule.c:1518: warning: passing arg 1 of
`PyString_FromString' makes pointer from integer without a cast
./Modules/_cursesmodule.c: In function `PyCurses_has_ic':
./Modules/_cursesmodule.c:1523: warning: implicit declaration of
function `has_ic'
./Modules/_cursesmodule.c: In function `PyCurses_has_il':
./Modules/_cursesmodule.c:1524: warning: implicit declaration of
function `has_il'
./Modules/_cursesmodule.c: In function `PyCurses_filter':
./Modules/_cursesmodule.c:1526: warning: implicit declaration of
function `filter'
./Modules/_cursesmodule.c: In function `PyCurses_noqiflush':
./Modules/_cursesmodule.c:1528: warning: implicit declaration of
function `noqiflush'
./Modules/_cursesmodule.c: In function `PyCurses_Delay_Output':
./Modules/_cursesmodule.c:1604: warning: implicit declaration of
function `delay_output'
./Modules/_cursesmodule.c: In function `PyCurses_GetWin':
./Modules/_cursesmodule.c:1687: warning: implicit declaration of
function `getwin'
./Modules/_cursesmodule.c:1687: warning: assignment makes pointer from
integer without a cast
./Modules/_cursesmodule.c: In function `PyCurses_has_key':
./Modules/_cursesmodule.c:1726: warning: implicit declaration of
function `has_key'
./Modules/_cursesmodule.c: In function `PyCurses_Napms':
./Modules/_cursesmodule.c:2026: warning: implicit declaration of
function `usleep'
./Modules/_cursesmodule.c: In function `PyCurses_QiFlush':
./Modules/_cursesmodule.c:2148: warning: implicit declaration of
function `qiflush'
./Modules/_cursesmodule.c: In function `PyCurses_Use_Env':
./Modules/_cursesmodule.c:2379: warning: implicit declaration of
function `use_env'
*** Error code 1

Stop.

How do I get past this problem?  Any help much appreciated!
Gerrie




More information about the Python-list mailing list