Issue 719359: fix test_long failure on OSF/1 (original) (raw)
Logged In: YES user_id=696559
OK, I managed to download cvs module named python:
./configure --prefix=/software/@sys/usr [...] checking whether pthreads are available without options... no checking whether cc accepts -Kpthread... no checking whether cc accepts -Kthread... no checking whether cc accepts -pthread... yes [...] checking for --with-libs... no checking for --with-signal-module... yes checking for --with-dec-threads... no checking for --with-threads... yes checking if PTHREAD_SCOPE_SYSTEM is supported... yes checking for pthread_sigmask... yes checking if --enable-ipv6 is specified... yes
configure:3774: checking whether pthreads are available without options configure:3800: cc -o conftest -O2 -arch ev56 -I/software/@sys/usr/include -I/usr/local/include -I/usr/local/openssl/include conftest.c -L/usr/local/lib -L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib >&5 cc: Error: /usr/include/pthread.h, line 312: #error "Please compile the module including pthread.h with -pthread" (errormessage)
error "Please compile the module including pthread.h with
-pthread" ---^ configure:3803: $? = 1 configure: program exited with status 1 configure: failed program was: #line 3782 "configure" #include "confdefs.h"
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){ pthread_t p; if(pthread_create(&p,NULL,routine,NULL)!=0) return 1; (void)pthread_detach(p); return 0; }
configure:3823: result: no
configure:3836: checking whether cc accepts -Kpthread
configure:3864: cc -Kpthread -o conftest -O2 -arch ev56
-I/software/@sys/usr/include -I/usr/local/include
-I/usr/local/openssl/include
conftest.c -L/usr/local/lib -L/software/@sys/usr/lib
-L/usr/local/openssl/lib -L/usr/lib >&5
cc: Error: /usr/include/pthread.h, line 312: #error "Please
compile the module including pthread.h with -pthread"
(errormessage)
error "Please compile the module including pthread.h with
-pthread" ---^ configure:3867: $? = 1 configure: program exited with status 1 configure: failed program was: #line 3846 "configure" #include "confdefs.h"
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){ pthread_t p; if(pthread_create(&p,NULL,routine,NULL)!=0) return 1; (void)pthread_detach(p); return 0; }
configure:3887: result: no configure:3898: checking whether cc accepts -Kthread configure:3926: cc -Kthread -o conftest -O2 -arch ev56 -I/software/@sys/usr/include -I/usr/local/include -I/usr/local/openssl/include c onftest.c -L/usr/local/lib -L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib >&5 cc: Error: /usr/include/pthread.h, line 312: #error "Please compile the module including pthread.h with -pthread" (errormessage)
error "Please compile the module including pthread.h with
-pthread" ---^ configure:3929: $? = 1 configure: program exited with status 1 configure: failed program was: #line 3908 "configure" #include "confdefs.h"
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){ pthread_t p; if(pthread_create(&p,NULL,routine,NULL)!=0) return 1; (void)pthread_detach(p); return 0; }
configure:3949: result: no configure:3960: checking whether cc accepts -pthread configure:3988: cc -pthread -o conftest -O2 -arch ev56 -I/software/@sys/usr/include -I/usr/local/include -I/usr/local/openssl/include c onftest.c -L/usr/local/lib -L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib >&5 configure:3991: $? = 0 configure:3993: ./conftest configure:3996: $? = 0 configure:4011: result: yes
configure:4214: checking pthread.h usability configure:4223: cc -c -O2 -arch ev56 -I/software/@sys/usr/include -I/usr/local/include -I/usr/local/openssl/include conftest.c >&5 cc: Error: /usr/include/pthread.h, line 312: #error "Please compile the module including pthread.h with -pthread" (errormessage)
error "Please compile the module including pthread.h with
-pthread" ---^ configure:4226: $? = 1 [...] configure:4241: result: no configure:4245: checking pthread.h presence configure:4252: cc -E -I/software/@sys/usr/include -I/usr/local/include -I/usr/local/openssl/include conftest.c cc: Error: /usr/include/pthread.h, line 312: #error "Please compile the module including pthread.h with -pthread" (errormessage)
error "Please compile the module including pthread.h with
-pthread" ---^ configure:4258: $? = 1 configure: failed program was: #line 4247 "configure" #include "confdefs.h" #include <pthread.h> configure:4276: result: no configure:4294: checking for pthread.h configure:4301: result: no
So, I have set -pthread manully:
CC="cc -pthread -g2" CXX="cxx -pthread -g2" ./configure --prefix=/software/@sys/usr
during make I see:
building 'readline' extension cc -pthread -g2 -DNDEBUG -O -ieee -std -Olimit 1500 -I. -I/mnt/python/dist/src/./Include -I/software/@sys/usr/include -I/usr/local/include -I/mnt/python/dist/src/Include -I/mnt/python/dist/src -c /mnt/python/dist/src/Modules/readline.c -o build/temp.osf1-V5.1-alpha-2.3/readline.o cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl) cc: Warning: /mnt/python/dist/src/Modules/readline.c, line 100: In this declaration, "history_length" is declared with both internal and external linkage. The previous declaration is at line number 224 in file /software/@sys/usr/include/readline/history.h. (mixlinkage) static int history_length = -1; /* do not truncate history by default */ -----------^ [...] building 'bsddb185' extension cc -pthread -g2 -DNDEBUG -O -ieee -std -Olimit 1500 -I. -I/mnt/python/dist/src/./Include -I/software/@sys/usr/include -I/usr/local/include -I/mnt/python/dist/src/Include -I/mnt/python/dist/src -c /mnt/python/dist/src/Modules/bsddbmodule.c -o build/temp.osf1-V5.1-alpha-2.3/bsddbmodule.o cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl) cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 58: In this declaration, "HASHINFO" must specify a type. (badparsedecl) HASHINFO info; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 106: In this declaration, "BTREEINFO" must specify a type. (badparsedecl) BTREEINFO info; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 156: In this declaration, "RECNOINFO" must specify a type. (badparsedecl) RECNOINFO info; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 276: In this declaration, "recno_t" must specify a type. (badparsedecl) recno_t recno; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 327: In this declaration, "recno_t" must specify a type. (badparsedecl) recno_t recno; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 470: In this declaration, "recno_t" must specify a type. (badparsedecl) recno_t recno; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 509: In this declaration, "recno_t" must specify a type. (badparsedecl) recno_t recno; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 63: In this statement, "info" is not declared. (undeclared) info.bsize = bsize; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 111: In this statement, "info" is not declared. (undeclared) info.flags = btflags; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 162: In this statement, "info" is not declared. (undeclared) info.flags = rnflags; --------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 223: In this statement, "(dp->di_bsddb->close)" expects 2 arguments, but 1 are supplied. (toofewargs) status = (dp->di_bsddb->close)(dp->di_bsddb); -------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 252: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) for (status = (dp->di_bsddb->seq)(dp->di_bsddb, -------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 255: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) status = (dp->di_bsddb->seq)(dp->di_bsddb, -------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 279: In this statement, "recno" is not declared. (undeclared) if (!PyArg_Parse(key, "i", &recno)) { --------------------------------------------^ cc: Warning: /mnt/python/dist/src/Modules/bsddbmodule.c, line 299: In this statement, the referenced type of the pointer value "&krec" is "struct __db_dbt", which is not compatible with "struct __db_txn". (ptrmismatch) status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); ---------------------------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 299: In this statement, "(dp->di_bsddb->get)" expects 5 arguments, but 4 are supplied. (toofewargs) status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); -----------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 330: In this statement, "recno" is not declared. (undeclared) if (!PyArg_Parse(key, "i", &recno)) { --------------------------------------------^ cc: Warning: /mnt/python/dist/src/Modules/bsddbmodule.c, line 351: In this statement, the referenced type of the pointer value "&krec" is "struct __db_dbt", which is not compatible with "struct __db_txn". (ptrmismatch) status = (dp->di_bsddb->del)(dp->di_bsddb, &krec, 0); -----------------------------------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 351: In this statement, "(dp->di_bsddb->del)" expects 4 arguments, but 3 are supplied. (toofewargs) status = (dp->di_bsddb->del)(dp->di_bsddb, &krec, 0); -------------------------^ cc: Warning: /mnt/python/dist/src/Modules/bsddbmodule.c, line 363: In this statement, the referenced type of the pointer value "&krec" is "struct __db_dbt", which is not compatible with "struct __db_txn". (ptrmismatch) status = (dp->di_bsddb->put)(dp->di_bsddb, &krec, &drec, 0); -----------------------------------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 363: In this statement, "(dp->di_bsddb->put)" expects 5 arguments, but 4 are supplied. (toofewargs) status = (dp->di_bsddb->put)(dp->di_bsddb, &krec, &drec, 0); -------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 388: In this statement, "(dp->di_bsddb->close)" expects 2 arguments, but 1 are supplied. (toofewargs) status = (dp->di_bsddb->close)(dp->di_bsddb); -------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 415: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, &drec, R_FIRST); ------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 441: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) status = (dp->di_bsddb->seq) --------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 474: In this statement, "recno" is not declared. (undeclared) &recno)) { ---------------------------------------^ cc: Warning: /mnt/python/dist/src/Modules/bsddbmodule.c, line 491: In this statement, the referenced type of the pointer value "&krec" is "struct __db_dbt", which is not compatible with "struct __db_txn". (ptrmismatch) status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); ---------------------------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 491: In this statement, "(dp->di_bsddb->get)" expects 5 arguments, but 4 are supplied. (toofewargs) status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); -----------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 513: In this statement, "recno" is not declared. (undeclared) &recno)) { ---------------------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 530: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, &drec, R_CURSOR); ------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 570: In this statement, "seq" is not a member of "dp->di_bsddb". (needmember) status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, ------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 608: In this statement, "R_NEXT" is not declared. (undeclared) return bsddb_seq(dp, R_NEXT); -----------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 613: In this statement, "R_PREV" is not declared. (undeclared) return bsddb_seq(dp, R_PREV); -----------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 618: In this statement, "R_FIRST" is not declared. (undeclared) return bsddb_seq(dp, R_FIRST); -----------------------------^ cc: Error: /mnt/python/dist/src/Modules/bsddbmodule.c, line 623: In this statement, "R_LAST" is not declared. (undeclared) return bsddb_seq(dp, R_LAST); -----------------------------^ building 'dbm' extension [...]
ld -shared -expect_unresolved * build/temp.osf1-V5.1-alpha-2.3/_cursesmodule.o -L/software/@sys/usr/lib -L/usr/local/lib -lncurses -o build/lib.osf1-V5.1-alpha-2.3/_curses.so *** WARNING: renaming "_curses" since importing it failed: dlopen: build/lib.osf1-V5.1-alpha-2.3/_curses.so: symbol "_acs_map" unresolved building '_curses_panel' extension cc -pthread -g2 -DNDEBUG -O -ieee -std -Olimit 1500 -I. -I/mnt/python/dist/src/./Include -I/software/@sys/usr/include -I/usr/local/include -I/mnt/python/dist/src/Include -I/mnt/python/dist/src -c /mnt/python/dist/src/Modules/_curses_panel.c -o build/temp.osf1-V5.1-alpha-2.3/_curses_panel.o cc: Info: File not optimized; use -g3 if both optimization and debug wanted. (suppressoptlvl) cc: Severe: /mnt/python/dist/src/Modules/_curses_panel.c, line 17: Cannot find file <panel.h> specified in #include directive. (noinclfilef) #include <panel.h> -^ building 'zlib' extension [...]
It seems the test_long bug is fixed already in cvs:
$ ./python -E -tt ./Lib/test/test_long.py long / * % divmod Karatsuba long bit-operation identities long str/hex/oct/atol long miscellaneous operations auto-convert int->long on overflow long->float overflow log and log10 $