This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error: ... ossaudiodev.c, line 48: Missing type specifier
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: diskman, nnorwitz
Priority: normal Keywords:

Created on 2005-05-05 19:53 by diskman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25237 - (view) Author: Will L G (diskman) Date: 2005-05-05 19:53
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@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@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 */
msg25238 - (view) Author: Will L G (diskman) Date: 2005-08-04 16:13
Logged In: YES 
user_id=312992

I thought Python-2.4.1 was in 'bug fix' mode? Well this
fucker is as OLD as dirt...
msg25239 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-10 07:20
Logged In: YES 
user_id=33168

The problem could be an extra ; on the PyObject_HEAD line.
(There shouldn't be any.)  The semi-colon has been removed
in SVN.  Can you verify that is the problem?  The fix wasn't
ported to 2.4, but that's easy enough if removing the
semi-colon fixes the problem.

If you want faster resolution, perhaps you can volunteer to
help out.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41951
2005-05-05 19:53:59diskmancreate