[ python-Bugs-1196154 ] Error: ... ossaudiodev.c, line 48: Missing type specifier
SourceForge.net
noreply at sourceforge.net
Thu May 5 21:54:00 CEST 2005
Bugs item #1196154, was opened at 2005-05-05 19:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1196154&group_id=5470
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Will L G (diskman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error: ... ossaudiodev.c, line 48: Missing type specifier
Initial Comment:
RedHat Linux 7.2 [alpha]
Kernel 2.6.11.6
Compaq C 6.5.2
Binutils 2.15
Make 2.8
Was receiving the error below and then a few little
changes to make the configure script think I was using
gcc while still using ccc...
[root at jericho Python-2.4.1]# make
case $MAKEFLAGS in *-s*) LD_LIBRARY_PATH=/usr2/www/linux-
related/programming/python/Python-
2.4.1:/usr/X11R6/lib:/usr/lib:/usr/local/lib CC='ccache
ccc -
pthread' LDSHARED='ccache ccc -pthread -shared'
OPT='-
DNDEBUG -O' ./python -E ./setup.py -q build;; *) LD_LIBRARY_PATH=/usr2/www/linux-
related/programming/python/Python-
2.4.1:/usr/X11R6/lib:/usr/lib:/usr/local/lib CC='ccache
ccc -
pthread' LDSHARED='ccache ccc -pthread -shared'
OPT='-
DNDEBUG -O' ./python -E ./setup.py build;; esac
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>
[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "./setup.py", line 6, in ?
import sys, os, getopt, imp, re
ImportError: No module named os
make: *** [sharedmods] Error 1
[root at jericho Python-2.4.1]#
Here is a copy of the little script I used to set the env to
use ccc while configuring python to compile using gcc
and thus build the appropriate extensions:
./configure --prefix=/usr --sysconfdir=/etc --build=alphapca56-alpha-linux-gnu --without-gcc --enable-shared --with-dec-threads --with-cxx="ccache cxx" --with-cc="ccache ccc" --without-threads
make CC="ccache ccc" CXX="ccache cxx" CFLAGS="-O5 -fast -mtune=ev56 -w -pipe -
lpthread -threads" CXXFLAGS="-O5 -fast -mtune=ev56 -w -pipe -
lpthread -threads"
EVERYTHING compiled fine but for one little thing, two
extensions didn't compile:
building 'ossaudiodev' extension
ccache ccc -DNDEBUG -O -fPIC -OPT:Olimit=0 -I. -
I/usr2/www/pub/alpha-RH7/programming/python/Python-
2.4.1/./Include -I/usr/local/include -I/usr2/www/pub/alpha-
RH7/programming/python/Python-2.4.1/Include -
I/usr2/www/pub/alpha-RH7/programming/python/Python-
2.4.1 -c /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c -o build/temp.linux-alpha-
2.4/ossaudiodev.o
cc: Error: /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c, line 48: Missing type
specifier or type qualifier. (missingtype)
PyObject_HEAD;
-----------------^
cc: Error: /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c, line 57: Missing type
specifier or type qualifier. (missingtype)
PyObject_HEAD;
-----------------^
ccache ccc -DNDEBUG -O -fPIC -OPT:Olimit=0 -I. -
I/usr2/www/pub/alpha-RH7/programming/python/Python-
2.4.1/./Include -I/usr/local/include -I/usr2/www/pub/alpha-
RH7/programming/python/Python-2.4.1/Include -
I/usr2/www/pub/alpha-RH7/programming/python/Python-
2.4.1 -c /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c -o build/temp.linux-alpha-
2.4/ossaudiodev.o
cc: Error: /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c, line 48: Missing type
specifier or type qualifier. (missingtype)
PyObject_HEAD;
-----------------^
cc: Error: /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/Modules/ossaudiodev.c, line 57: Missing type
specifier or type qualifier. (missingtype)
PyObject_HEAD;
-----------------^
cc: Info: /usr2/www/pub/alpha-
RH7/programming/python/Python-
2.4.1/./Include/objimpl.h, line 255: In this declaration,
type long double has the same representation as type
double on this platform. (longdoublenyi)
long double dummy; /* force worst-case alignment */
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1196154&group_id=5470
More information about the Python-bugs-list
mailing list