Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - FreeBSD 4.8 and Python-2.2.3 compiling error

 
Thread Tools Search this Thread
Old 01-18-2004, 11:16 PM   #1
Default FreeBSD 4.8 and Python-2.2.3 compiling error


I'm hoping somebody can point me in the right
direction. I am getting this error when trying to
compile Python-2.2.3 on FreeBSD 4.8:

gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DHAVE_CONFIG_H -o Modules/python.o
Modules/python.c
In file included from Include/Python.h:62,
from Modules/python.c:3:
Include/pyport.h:462: #error "could not set LONG_MAX
in pyport.h"
*** Error code 1

Stop in /home/cleverli/public_html/Python-2.2.3.
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DHAVE_CONFIG_H -o Modules/python.o
Modules/python.c
In file included from Include/Python.h:62,
from Modules/python.c:3:
Include/pyport.h:462: #error "could not set LONG_MAX
in pyport.h"
*** Error code 1

Here's the config.log:
This file contains any messages produced by compilers
while
running configure, to aid debugging if configure makes
a mistake.

configure:628: checking MACHDEP
configure:671: checking for --without-gcc
configure:723: checking for --with-cxx=<compiler>
configure:760: checking for c++
configure:795: checking whether the C++ compiler (c++
) works
configure:811: c++ -o conftest conftest.C 1>&5
configure:837: checking whether the C++ compiler (c++
) is a cross-compiler
configure:854: checking for gcc
configure:967: checking whether the C compiler (gcc )
works
configure:983: gcc -o conftest conftest.c 1>&5
configure:1009: checking whether the C compiler (gcc
) is a cross-compiler
configure:1014: checking whether we are using GNU C
configure:1042: checking whether gcc accepts -g
configure:1076: checking how to run the C preprocessor
configure:1156: checking for AIX
configure:1181: checking for minix/config.h
configure:1230: checking for Cygwin environment
configure:1263: checking for mingw32 environment
configure:1294: checking for executable suffix
configure:1325: checking for --with-suffix
configure:1343: checking for case-insensitive build
directory
configure:1381: checking LIBRARY
configure:1414: checking LINKCC
configure:1443: checking LDLIBRARY
configure:1480: checking for ranlib
configure:1513: checking for ar
configure:1583: checking for a BSD compatible install
configure:1648: checking for --with-pydebug
configure:1721: checking whether gcc accepts
-OPT:Olimit=0
configure:1758: checking whether gcc accepts -Olimit
1500
configure:1799: checking whether pthreads are
available without options
configure:1851: checking whether gcc accepts -Kpthread
configure:1898: checking for ANSI C header files
configure:2023: checking for dlfcn.h
configure:2023: checking for fcntl.h
configure:2023: checking for grp.h
configure:2023: checking for limits.h
configure:2023: checking for langinfo.h
configure:2023: checking for locale.h
configure:2023: checking for ncurses.h
configure:2023: checking for poll.h
configure:2023: checking for pthread.h
configure:2023: checking for signal.h
configure:2023: checking for stdarg.h
configure:2023: checking for stddef.h
configure:2023: checking for stdlib.h
configure:2023: checking for thread.h
configure:2023: checking for unistd.h
configure:2023: checking for utime.h
configure:2023: checking for termios.h
configure:2023: checking for sys/audioio.h
configure:2023: checking for sys/file.h
configure:2023: checking for sys/lock.h
configure:2023: checking for sys/modem.h
configure:2023: checking for db_185.h
configure:2023: checking for db.h
configure:2023: checking for sys/param.h
configure:2023: checking for sys/poll.h
configure:2023: checking for sys/select.h
configure:2023: checking for sys/socket.h
configure:2023: checking for sys/time.h
configure:2023: checking for sys/times.h
configure:2023: checking for sys/un.h
configure:2023: checking for sys/utsname.h
configure:2023: checking for sys/wait.h
configure:2023: checking for pty.h
configure:2023: checking for term.h
configure:2023: checking for libutil.h
configure:2023: checking for ndbm.h
configure:2023: checking for db1/ndbm.h
configure:2023: checking for gdbm/ndbm.h
configure:2023: checking for sys/resource.h
configure:2023: checking for netpacket/packet.h
configure:2070: checking for dirent.h that defines DIR
configure:2108: checking for opendir in -ldir
configure:2194: checking for clock_t in time.h
configure:2235: checking for mode_t
configure:2268: checking for off_t
configure:2301: checking for pid_t
configure:2334: checking return type of signal
handlers
configure:2375: checking for size_t
configure:2408: checking for uid_t in sys/types.h
configure:2444: checking size of int
configure:2483: checking size of long
configure:2522: checking size of void *
configure:2561: checking size of char
configure:2600: checking size of short
configure:2639: checking size of float
configure:2678: checking size of double
configure:2717: checking size of fpos_t
configure:2757: checking for long long support
configure:2767: gcc -c -g -O2 conftest.c 1>&5
configure:2781: checking size of long long
configure:2822: checking for uintptr_t support
configure:2832: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2828: syntax error before `x'
configure:2828: `x' undeclared (first use in this
function)
configure:2828: (Each undeclared identifier is
reported only once
configure:2828: for each function it appears in.)
configure:2828: `uintptr_t' undeclared (first use in
this function)
configure:2828: syntax error before `0'
configure: failed program was:
#line 2825 "configure"
#include "confdefs.h"

int main() {
uintptr_t x; x = (uintptr_t)0;
; return 0; }
configure:2888: checking size of off_t
configure:2930: checking whether to enable large file
support
configure:2945: checking size of time_t
configure:2993: checking for pthread_t
configure:3003: gcc -c -g -O2 conftest.c 1>&5
configure:3015: checking size of pthread_t
configure:3059: checking for --enable-toolbox-glue
configure:3111: checking for --enable-framework
configure:3134: checking for dyld
configure:3157: checking SO
configure:3172: checking LDSHARED
configure:3241: checking CCSHARED
configure:3277: checking LINKFORSHARED
configure:3322: checking CFLAGSFORSHARED
configure:3338: checking for dlopen in -ldl
configure:3385: checking for shl_load in -ldld
configure:3468: checking for t_open in -lnsl
configure:3508: checking for socket in -lsocket
configure:3595: checking for --with-libs
configure:3612: checking for --with-signal-module
configure:3638: checking for --with-dec-threads
configure:3655: checking for --with-threads
configure:3713: checking for _POSIX_THREADS in
unistd.h
configure:3741: checking for mach/cthreads.h
configure:3780: checking for --with-pth
configure:3806: checking for pthread_create in
-lpthread
configure:3818: gcc -o conftest -g -O2 conftest.c
-lpthread 1>&5
/usr/libexec/elf/ld: cannot find -lpthread
configure: failed program was:
#line 3808 "configure"
#include "confdefs.h"
#include <pthread.h>

void * start_routine (void *arg) { exit (0); }
int main() {

pthread_create (NULL, NULL, start_routine, NULL)
; return 0; }
configure:3835: checking for pthread_detach
configure:3888: checking for kernel/OS.h
configure:3927: checking for pthread_create in
-lpthreads
configure:3972: checking for pthread_create in -lc_r
configure:4183: checking if PTHREAD_SCOPE_SYSTEM is
supported
configure:4231: checking for pthread_sigmask
configure:4286: checking for usconfig in -lmpc
configure:4332: checking for thr_create in -lthread
configure:4400: checking if --enable-ipv6 is specified
configure:4439: gcc -o conftest -g -O2 conftest.c
-lc_r 1>&5
/usr/lib/libc.so: WARNING! setkey(3) not present in
the system!
/usr/lib/libc.so: warning: this program uses gets(),
which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: WARNING! des_setkey(3) not present
in the system!
/usr/lib/libc.so: WARNING! encrypt(3) not present in
the system!
/usr/lib/libc.so: warning: tmpnam() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: warning: this program uses
f_prealloc(), which is not recommended.
/usr/lib/libc.so: WARNING! des_cipher(3) not present
in the system!
/usr/lib/libc.so: warning: tempnam() possibly used
unsafely; consider using mkstemp()
configure:4456: checking if RFC2553 API is available
configure:4467: gcc -c -g -O2 conftest.c 1>&5
configure:4497: checking ipv6 stack type
configure:4662: checking for --with-cycle-gc
configure:4684: checking for --with-pymalloc
configure:4703: checking for --with-wctype-functions
configure:4725: checking for --with-sgi-dl
configure:4749: checking for --with-dl-dld
configure:4778: checking for dlopen
configure:4835: checking DYNLOADFILE
configure:4866: checking MACHDEP_OBJS
configure:4889: checking for alarm
configure:4889: checking for chown
configure:4889: checking for chroot
configure:4889: checking for clock
configure:4889: checking for confstr
configure:4889: checking for ctermid
configure:4889: checking for ctermid_r
configure:4889: checking for execv
configure:4889: checking for flock
configure:4889: checking for fork
configure:4889: checking for fsync
configure:4889: checking for fdatasync
configure:4889: checking for fpathconf
configure:4889: checking for ftime
configure:4889: checking for ftruncate
configure:4889: checking for gai_strerror
configure:4889: checking for getgroups
configure:4889: checking for getlogin
configure:4889: checking for getpeername
configure:4889: checking for getpid
configure:4889: checking for getpwent
configure:4889: checking for getwd
configure:4889: checking for hstrerror
configure:4889: checking for inet_pton
configure:4889: checking for kill
configure:4889: checking for link
configure:4889: checking for lstat
configure:4889: checking for mkfifo
configure:4889: checking for mktime
configure:4889: checking for mremap
configure:4889: checking for nice
configure:4889: checking for pathconf
configure:4889: checking for pause
configure:4889: checking for plock
configure:4889: checking for poll
configure:4889: checking for pthread_init
configure:4889: checking for putenv
configure:4889: checking for readlink
configure:4889: checking for select
configure:4889: checking for setegid
configure:4889: checking for seteuid
configure:4889: checking for setgid
configure:4889: checking for setgroups
configure:4889: checking for setlocale
configure:4889: checking for setregid
configure:4889: checking for setreuid
configure:4889: checking for setsid
configure:4889: checking for setpgid
configure:4889: checking for setuid
configure:4889: checking for setvbuf
configure:4889: checking for snprintf
configure:4889: checking for sigaction
configure:4889: checking for siginterrupt
configure:4889: checking for sigrelse
configure:4889: checking for strftime
configure:4889: checking for strptime
configure:4889: checking for symlink
configure:4889: checking for sysconf
configure:4889: checking for tcgetpgrp
configure:4889: checking for tcsetpgrp
configure:4889: checking for tempnam
configure:4889: checking for timegm
configure:4889: checking for times
configure:4889: checking for tmpfile
configure:4889: checking for tmpnam
configure:4889: checking for tmpnam_r
configure:4889: checking for truncate
configure:4889: checking for uname
configure:4889: checking for unsetenv
configure:4889: checking for waitpid
configure:4889: checking for _getpty
configure:4889: checking for getpriority
configure:4947: checking for openpty
configure:4997: checking for openpty in -lutil
configure:5045: checking for forkpty
configure:5145: checking for fseek64
configure:5145: checking for fseeko
configure:5145: checking for fstatvfs
configure:5145: checking for ftell64
configure:5145: checking for ftello
configure:5145: checking for statvfs
configure:5201: checking for dup2
configure:5201: checking for getcwd
configure:5201: checking for strdup
configure:5201: checking for strerror
configure:5201: checking for memmove
configure:5258: checking for getpgrp
configure:5312: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:5308: too many arguments to function
`getpgrp'
configure: failed program was:
#line 5305 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
getpgrp(0);
; return 0; }
configure:5331: checking for setpgrp
configure:5385: gcc -c -g -O2 conftest.c 1>&5
configure:5404: checking for gettimeofday
configure:5458: gcc -c -g -O2 conftest.c 1>&5
configure:5480: checking for getaddrinfo
configure:5496: gcc -o conftest -g -O2 conftest.c
-lc_r -lutil 1>&5
/usr/lib/libc.so: WARNING! setkey(3) not present in
the system!
/usr/lib/libc.so: warning: this program uses gets(),
which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: WARNING! des_setkey(3) not present
in the system!
/usr/lib/libc.so: WARNING! encrypt(3) not present in
the system!
/usr/lib/libc.so: warning: tmpnam() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: warning: this program uses
f_prealloc(), which is not recommended.
/usr/lib/libc.so: WARNING! des_cipher(3) not present
in the system!
/usr/lib/libc.so: warning: tempnam() possibly used
unsafely; consider using mkstemp()
configure:5501: checking getaddrinfo bug
configure:5596: gcc -o conftest -g -O2 conftest.c
-lc_r -lutil 1>&5
/usr/lib/libc.so: WARNING! setkey(3) not present in
the system!
/usr/lib/libc.so: warning: this program uses gets(),
which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: WARNING! des_setkey(3) not present
in the system!
/usr/lib/libc.so: WARNING! encrypt(3) not present in
the system!
/usr/lib/libc.so: warning: tmpnam() possibly used
unsafely; consider using mkstemp()
/usr/lib/libc.so: warning: this program uses
f_prealloc(), which is not recommended.
/usr/lib/libc.so: WARNING! des_cipher(3) not present
in the system!
/usr/lib/libc.so: warning: tempnam() possibly used
unsafely; consider using mkstemp()
configure:5636: checking for getnameinfo
configure:5691: checking whether time.h and sys/time.h
may both be included
configure:5726: checking whether struct tm is in
sys/time.h or time.h
configure:5760: checking for tm_zone in struct tm
configure:5830: checking for st_rdev in struct stat
configure:5864: checking for st_blksize in struct stat
configure:5898: checking for st_blocks in struct stat
configure:5935: checking for time.h that defines
altzone
configure:5969: checking whether sys/select.h and
sys/time.h may both be included
configure:5982: gcc -c -g -O2 conftest.c 1>&5
configure:5996: checking for addrinfo
configure:6030: checking for sockaddr_storage
configure:6067: checking whether char is unsigned
configure:6130: checking for working const
configure:6207: checking for working volatile
configure:6216: gcc -c -g -O2 conftest.c 1>&5
configure:6233: checking for working signed char
configure:6242: gcc -c -g -O2 conftest.c 1>&5
configure:6259: checking for prototypes
configure:6268: gcc -c -g -O2 conftest.c 1>&5
configure:6283: checking for variable length
prototypes and stdarg.h
configure:6302: gcc -c -g -O2 conftest.c 1>&5
configure:6318: checking for bad exec* prototypes
configure:6327: gcc -c -g -O2 conftest.c 1>&5
configure:6344: checking if sockaddr has sa_len member
configure:6355: gcc -c -g -O2 conftest.c 1>&5
configure:6371: checking for bad static forward
configure:6419: checking whether va_list is an array
configure:6434: gcc -c -g -O2 conftest.c 1>&5
configure:6450: checking for gethostbyname_r
configure:6631: checking for gethostbyname
configure:6697: checking for __fpu_control
configure:6743: checking for __fpu_control in -lieee
configure:6795: checking for --with-fpectl
configure:6820: checking for --with-libm=STRING
configure:6841: checking for --with-libc=STRING
configure:6865: checking for hypot
configure:6923: checking what malloc(0) returns
configure:6976: checking for wchar.h
configure:7017: checking size of wchar_t
configure:7061: checking what type to use for unicode
configure:7136: checking whether byte ordering is
bigendian
configure:7229: checking whether right shift extends
the sign bit
configure:7272: checking for getc_unlocked() and
friends
configure:7318: gcc -E conftest.c >/dev/null
2>conftest.out
configure:7352: checking for rl_pre_input_hook in
-lreadline
configure:7397: checking for rl_completion_matches in
-lreadline
configure:7441: checking for broken nice()
configure:7487: checking whether mvwdelch is an
expression
configure:7525: checking whether WINDOW has _flags
configure:7571: checking for socklen_t
configure:7632: checking for build directories

- Taylor

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus



Taylor Leese
  Reply With Quote
Old 01-19-2004, 03:44 PM   #2
Lee Harr
 
Posts: n/a
Default Re: FreeBSD 4.8 and Python-2.2.3 compiling error
On 2004-01-18, Taylor Leese <> wrote:
> I'm hoping somebody can point me in the right
> direction. I am getting this error when trying to
> compile Python-2.2.3 on FreeBSD 4.8:
>


Are you building from ports? ie..

cd /usr/ports/lang/python22
make

?



Lee Harr
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python, syntax error for nothing darkie Software 0 01-18-2009 11:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46