[ python-Bugs-1196154 ] Error: ... ossaudiodev.c, line 48: Missing type specifier

SourceForge.net noreply at sourceforge.net
Tue Jan 10 08:20:00 CET 2006


Bugs item #1196154, was opened at 2005-05-05 12:53
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1196154&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
>Priority: 5
Submitted By: Will L G (diskman)
>Assigned to: Neal Norwitz (nnorwitz)
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 */


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2006-01-09 23:20

Message:
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.

----------------------------------------------------------------------

Comment By: Will L G (diskman)
Date: 2005-08-04 09:13

Message:
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...

----------------------------------------------------------------------

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