strange make error 139

anton wilson anton.wilson at camotion.com
Tue Feb 18 23:27:02 CET 2003


I'm adding some code to the python interpreter loop in the part where it
checks things every x bytecodes. I add a function call to the following
function:

struct pidnode *
getPidNode( pid_t pid, struct pidnode *table)
{
  struct pidnode * node;
  struct pidnode * pidanchor;

  pidanchor = &(table[pid % NUMSLOTS]);
  for(node = pidanchor->next; node != pidanchor; node = node->next)
    {
      if( pid == node->pid )
	{
	  return node;
	}
    }
  return NULL;
}


When I compile I get:

libpython2.2.a(posixmodule.o): In function `posix_tmpnam':
/root/Python-2.2.2/./Modules/posixmodule.c:4505: the use of `tmpnam_r'
is dangerous, better use `mkstemp'
libpython2.2.a(posixmodule.o): In function `posix_tempnam':
/root/Python-2.2.2/./Modules/posixmodule.c:4455: the use of `tempnam' is
dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
make: *** [sharedmods] Error 139



I've tried a newer version of gcc, and using coprocessor emulation...
Not sure why gcc is crashing in the middle of a make...

Anton






More information about the Python-list mailing list