[issue12876] Make Test Error : ImportError: No module named _sha256
New submission from Wong Wah Meng wahm...@freescale.com: Hi there, I just build python 2.7.1 on my HP 11.31 Itanium 64 bit machine using gcc. When I finished the build and run make test. It gives me error as depicted below:- $ ./python Lib/test/regrtest.py -v Traceback (most recent call last): File Lib/test/regrtest.py, line 157, in module import random File /home/r32813/Build/2.7.1/Python-2.7.1/Lib/random.py, line 49, in module import hashlib as _hashlib File /home/r32813/Build/2.7.1/Python-2.7.1/Lib/hashlib.py, line 136, in module globals()[__func_name] = __get_hash(__func_name) File /home/r32813/Build/2.7.1/Python-2.7.1/Lib/hashlib.py, line 74, in __get_builtin_constructor import _sha256 ImportError: No module named _sha256 This is the server information. $ uname -a HP-UX zmy02hp3 B.11.31 U ia64 3240906838 unlimited-user license Here is other information in the configure.log file. Target: ia64-hp-hpux11.23 Configured with: /tmp/gcc-4.4.3.tar.gz/gcc-4.4.3/configure --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23 --build=ia64-hp-hpux11.23 --prefix=/opt/hp- gcc-4.4.3 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/ia64-hp-hpux11.23 --with-mpfr=/proj/o pensrc/be/ia64-hp-hpux11.23 SED=/usr/bin/sed Thread model: posix -- components: Tests messages: 143315 nosy: wah meng priority: normal severity: normal status: open title: Make Test Error : ImportError: No module named _sha256 type: compile error versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
Wong Wah Meng wahm...@freescale.com added the comment: Thanks for your reply: This is the output of the make, _ctypes and termios are failed to build. Python build finished, but the necessary bits to build these modules were not found: _bsddb _curses_curses_panel _sqlite3 _ssl _tkinter bsddb185 bz2gdbm linuxaudiodev ossaudiodevreadline spwd sunaudiodevzlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _ctypestermios running build_scripts $ On version of OpenSSL on this server, I need to check with my Unix admin first, as I don't know what command to run to check what software and its version installed. :P. Will revert to you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
Wong Wah Meng wahm...@freescale.com added the comment: Hi there, thanks for the reply. I need a bit more clue on what else I can do, other than I have these 3 items in my checklist:- 1.) I will have HP-UX ANSI C/C++ Compiler soon. I can recompile using that compiler later if this is a gcc related thing. 2.) If I am not using my python to perform any SSL user authentication function, can I skip correcting this? 3.) I am still checking with my Unix admin on the OpenSSL Header and version thing. Will revert. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
Wong Wah Meng wahm...@freescale.com added the comment: I revert to this after I got my HP-UX ANSI-C compiler installed on my server (HP-UX 11.31 ia64). 1.) Going back to SSL question, here is the software and version that is found on my server. I am not sure if this is the header only or the full file. However, since I am not using this module in my application, I am going to bypass correcting this error for time being: openssl -- A.00.09.08g.031 Secure Network Communications Protocol fips_1_1_2 -- FIPS-OPENSSL-1.1.2.031 Secure Network Communications Protocol 2.) Ok I got my HP C compiler and the build outcome gives me more headaches. I am going to open a new thread of discussion just talk about the build options. Thanks guys for answering to this earlier. Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
New submission from Wong Wah Meng wahm...@freescale.com: Server Info: HP-UX B.11.31 Itanium ia64. Evaluation copy is used however the license is being purchased, hopefully this are not these errors are not caused by evaluation copy. # swlist -l product | grep Compiler ACXX C.06.26.EVAL HP C/aC++ Compiler C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler COMPLIBS B.11.31Compiler Support Libraries I encountered more failures in module build with my HP-UX ANSI C Compiler versus gcc. I wonder why. I need a Oracle plug-in later, i.e. cx_Oracle and the reason I do not want to ignore these errors now because I thought cx_Oracle will have to (or, better) be built using HP compiler, not gcc for support from Oracle. I read through the README file, I followed the instruction to set the required environment variables before the configure is run, and unset them before make is run, also edited Makefile to remove Optimization and the -Olimit 1500. However, it gives me a lot more modules that are failed to be built versus 2 when gcc is used. At the bottom of the mail we can see what failed to be built. I have summarized my inquiry as follow:- 1.) Despite following the instruction to edit the Makefile before make is run, I am surprise to see that the Makefile content is changed again when the executable is generated. The changed I edited is restored. Is this expected and did the compiler make use of the content that I edited when it did the build and link? $ diff Makefile Makefile_Original 61,62c61,62 OPT= -DNDEBUG -O BASECFLAGS= +DD64 -Olimit 1500 --- OPT= -DNDEBUG BASECFLAGS= +DD64 2.) A lot of failed module and I suspected it is due +DD64 nopt recognized by the compiler. Why the HP-UX compiler did not recognize the option? ld -b +DD64 -lxnet build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/mathmodule.o build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/_math.o -L/usr/local/lib -lm -o build/lib.hp-ux-B.11.31-ia64-2.7/math.so ld: Unrecognized argument: +DD64 Fatal error. 3.) This is a general question, in the README file there isn't specific instruction on how to enable gcc for 64-bit build. Does gcc support 64-bit build and how to? 4.) These are warning message. I have seen a lot of them. Am I right I can ignore them? I don't see them when I use gcc though. cc -Ae -c +DD64 -g -DNDEBUG -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c Include/pyfpe.h, line 8: warning #3750-D: \ followed by white space is not a line splice Thanks in advance for your input. Here is the output of my make using HP C compiler. Python build finished, but the necessary bits to build these modules were not found: _bsddb _curses_curses_panel _sqlite3 _ssl _tkinter bsddb185 bz2dl gdbm imageoplinuxaudiodev ossaudiodevreadline spwd sunaudiodevzlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bisect_codecs_cn _codecs_hk _codecs_iso2022_codecs_jp _codecs_kr _codecs_tw _collections _csv _ctypes_ctypes_test _elementtree _functools _heapq _hotshot _io_json _locale _lsprof_md5 _multibytecodec _multiprocessing _random_sha _socket_struct_testcapi array audioopbinascii cmath cPicklecrypt cStringIO datetime dbm fcntl future_builtinsgrp itertools math mmap nisoperator parser pyexpatresource select strop syslog termios time unicodedata running build_scripts -- components: Build messages: 144123 nosy: wah meng priority: normal severity: normal status: open title: Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler type: compile error versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12992] Python build finished, but the necessary bits to build these modules were not found: _tkinter
New submission from Wong Wah Meng wahm...@freescale.com: Hello there, I am building python on HP-UX 11.31 (Itanium ia64). I would like to utilize the _tkinter module in my application however I failed to build it. I think this module requires additional tcl + tk source code placed into certain directory and the configure will do the build accordingly. Can someone let me know what files are needed and where should I place them in terms of directory structure, so that I can build python with that built-in module successfully? Thanks! (PS: I am able to build tcl tk 8.5.9 successfully on the same box however I am not sure how to link that piece of work into python build) -- components: Tkinter messages: 144128 nosy: wah meng priority: normal severity: normal status: open title: Python build finished, but the necessary bits to build these modules were not found: _tkinter versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12994] cx_Oracle failed to load in newly build python 2.7.1
New submission from Wong Wah Meng wahm...@freescale.com: Platform : HP-UX 11.31 on Itanium ia64. HP Compiler: # swlist -l product | grep Compiler ACXX C.06.26.EVAL HP C/aC++ Compiler C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler COMPLIBS B.11.31Compiler Support Libraries I downloaded cx_Oracle5.1 source code and run python setup.py build and able to build the module. However, when I import the module it just cannot load without giving any explicit indication what goes wrong. Does anyone knows why? $ python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.hp-ux-B.11.31-ia64-2.7-11g cc -Ae -Olimit 1500 -g -DNDEBUG -O +z -I/opt/oracle/product/11.1.0/rdbms/demo -I/opt/oracle/product/11.1.0/rdbms/public -I/home/r32813/Build/2.7.1/Python-2.7.1/Include -I/home/r32813/Build/2.7.1/Python-2.7.1/Lib/.. -c cx_Oracle.c -o build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.0 cc: warning 1913: `1500' does not exist or cannot be read /home/r32813/Build/2.7.1/Python-2.7.1/Include/pyfpe.h, line 8: warning #3750-D: \ followed by white space is not a line splice / Copyright (c) 1996. \ ^ NumberVar.c, line 306: warning #4232-D: conversion from PyObject * to a more strictly aligned type PyFloatObject * may cause misaligned access doubleValue = PyFloat_AS_DOUBLE(value); ^ NumberVar.c, line 579: warning #4232-D: conversion from PyObject * to a more strictly aligned type PyFloatObject * may cause misaligned access var-data[pos] = PyFloat_AS_DOUBLE(value); ^ creating build/lib.hp-ux-B.11.31-ia64-2.7-11g ld -b build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -L/opt/oracle/product/11.1.0/lib32 -L/opt/oracle/product/11.1.0 -lclntsh -o build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $ ls -lrt build total 0 drwx-- 2 r32813 users 96 Sep 16 20:33 temp.hp-ux-B.11.31-ia64-2.7-11g drwx-- 2 r32813 users 96 Sep 16 20:33 lib.hp-ux-B.11.31-ia64-2.7-11g $ cp build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $PYTHONPATH $ python iPython 2.7.1 (r271:86832, Sep 15 2011, 14:46:37) [C] on hp-ux11 Type help, copyright, credits or license for more information. import cx_Oracle Traceback (most recent call last): File stdin, line 1, in module ImportError: Failed to load /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so $ env | grep PYTHON PYTHONPATH=/home/r32813/Build/2.7.1/Python-2.7.1/Lib $ -- components: Extension Modules messages: 144130 nosy: wah meng priority: normal severity: normal status: open title: cx_Oracle failed to load in newly build python 2.7.1 type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
Wong Wah Meng wahm...@freescale.com added the comment: I think there is something that is not working here at least for the instructions in build README file about setting up 4 environment variables required for HP Itanium 64-bit build using HP compilers. CC=cc CXX=aCC BASECFLAGS=+DD64 LDFLAGS=+DD64 -lxnet When above 4 environment variables are set, the configure script will pick them up and build the Makefile that passes in LDFLAGS into the linker. The linker doesn't seem to recognize +DD64 on HP-UX. ld -b +DD64 -lxnet build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/mathmodule.o build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/_math.o -L/usr/local/lib -lm -o build/lib.hp-ux-B.11.31-ia64-2.7/math.so ld: Unrecognized argument: +DD64 Fatal error. I did a workaround by only setting CC=cc +DD64 and CXX=aCC and did not set the other 2 environment variables, and able to build python 64-bit without the failed modules that were due to invalid flag passed into the linker. So I am re-opening the issue here to see if this is something we can amend in the instruction of README file for HP 64-bit build using HP Compiler. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
Wong Wah Meng wahm...@freescale.com added the comment: Thanks! I am gonna try this out again. Actually I noticed this when you mentioned about using cc as the linker front end. I followed instruction in the README file, after I edited Makefile to remove the -O Limit 1500 line, and after python executable is built, the Makefile is overwritten (maybe re-generated by the compiler) again and my changes of -O and -Limit 1500 is added back. However that doesn't create big damage like the +DD64 to the linker (ld). I see. Since I have got HP Compiler, I will provide some updates here once I have a newer finding. I have submitted my question of Why ld doesn't recognize +DD64 flag to HP and they are checking for me. The progress over there is slow. Thanks for your reply! Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
Wong Wah Meng wahm...@freescale.com added the comment: Good news is now I am still using ld, like what is generated in the Makefile file by configure script, and able to do the linking process for the built-in modules successfully. I only need to set CC=cc +DD64 and CXX=aCC and the process make process is able to build python executable 64-bit and all the built-in modules where the necessary bit can be found. For other built-in modules, for example, _tkinter, I am also able to build it this time by setting these 3 environment variables where ~/local is where I installed my tcl/tk binary. export CC=cc +DD64 -I/home/r32813/local/include export CXX=aCC export LDFLAGS=-L/home/r32813/local/lib -lxnet I am finally able to build python 64-bit and built-in library on HP ia64 using HP compiler aCC. Thanks for the input everyone. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
Wong Wah Meng wahm...@freescale.com added the comment: Closing the issue. Please contact me if the README file for HP-UX Itanium 64-bit build should be amended. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
New submission from Wong Wah Meng r32...@freescale.com: Resending as my old alternative email ID wasn't registered under my account. === Hello there, I included --with-threads option into the configure script calling, which it failed to add the -D_REENTRANT into Makefile. So I manually added this into OPT of the Makefile. I ran make again and generated a new python binary. However, the new binary is still not able to start a new thread from the thread module. I reviewed the config.log file, I think this failure has caused the build with threads failed. Cthreads.h header file is missing. Should this be included in my HP UX Compiler or it comes from python source? In python source I only found pythread.h. Anyway, I am only guessing what is wrong. Hope to hear some feedback here, whether this is something missing or a bug. configure:8407: checking for --with-threads configure:8427: result: yes configure:8484: checking for _POSIX_THREADS in unistd.h configure:8503: result: yes configure:8508: checking cthreads.h usability configure:8508: cc +DD64 -I/home/r32813/local/include -c -g conftest.c 5 conftest.c, line 128: error #3696-D: cannot open source file cthreads.h #include cthreads.h ^ 1 error detected in the compilation of conftest.c. configure:8508: result: no configure:8508: checking for cthreads.h configure:8508: result: no configure:8521: checking mach/cthreads.h usability configure:8521: cc +DD64 -I/home/r32813/local/include -c -g conftest.c 5 conftest.c, line 128: error #3696-D: cannot open source file mach/cthreads.h #include mach/cthreads.h ^ 1 error detected in the compilation of conftest.c. configure:8521: $? = 2 configure: failed program was: | /* confdefs.h */ | #define _GNU_SOURCE 1 configure:8521: result: no configure:8521: checking for mach/cthreads.h configure:8521: result: no configure:8533: checking for --with-pth configure:8548: result: no configure:8556: checking for pthread_create in -lpthread configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g -L/home/r32813/local/lib -L/home/r32813/Build/2.7.1/Python-2.7.1 conftest.c -l nsl -lrt -ldld -ldl -lpthread 5 Regards, Wah Meng Genesis Wafermap Support Ticket: To report a problem: http://dyno.freescale.net/Question/QuestionMain3.asp?location=zmy02category=tickettype=6820 To request a service: http://dyno.freescale.net/Question/Questionmain3.asp?location=74category=2tickettype=6819 Or if it is related to EWM or DSA: http://dyno.freescale.net/Question/Questionmain3.asp?location=ZMY02tickettype=6539 -- messages: 144584 nosy: wah meng priority: normal severity: normal status: open title: Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Traceback? $ python Python 2.7.1 (r271:86832, Sep 28 2011, 17:31:02) [C] on hp-ux11 Type help, copyright, credits or license for more information. import thread def testing(): ...print Hello World ... thread.start_new_thread(testing, ()) Traceback (most recent call last): File stdin, line 1, in module thread.error: can't start new thread mach/cthreads.h is only relevant for Hurd, as far as I can see. I am not sure what Hurd is. So I should not be looking at this one I guess. configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g -L/home/r32813/local/lib -L/home/r32813/Build/2.7.1/Python-2.7.1 conftest.c -l nsl -lrt -ldld -ldl -lpthread 5 Result of this test? configure:8556: checking for pthread_create in -lpthread configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g -L/home/r32813/local/lib -L/home/r32813/Build/2.7.1/Python-2.7.1 conftest. c -lnsl -lrt -ldld -ldl -lpthread 5 conftest.c, line 97: warning #2223-D: function exit declared implicitly void * start_routine (void *arg) { exit (0); } ^ conftest.c, line 102: error #2020: identifier NULL is undefined pthread_create (NULL, NULL, start_routine, NULL) ^ 1 error detected in the compilation of conftest.c. configure:8572: $? = 2 configure: failed program was: | /* confdefs.h */ | #define _GNU_SOURCE 1 | #define _NETBSD_SOURCE 1 | #define __BSD_VISIBLE 1 | #define _BSD_TYPES 1 -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Hello Stefan, Hmm. how do I apply the patch? I download the issue-13057.diff file and then.? Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: I tried here is the outcome. It says it can't find a patch?? $ cat issue-13057.diff diff -r f612b783bc17 configure --- a/configure Thu Sep 29 07:52:46 2011 +0800 +++ b/configure Thu Sep 29 21:39:32 2011 +0200 @@ -8619,6 +8619,7 @@ cat confdefs.h - _ACEOF conftest.$ac_ext /* end confdefs.h. */ #include pthread.h +#include stdio.h void * start_routine (void *arg) { exit (0); } int $ patch -p1 issue-13057.diff Hmm... I can't seem to find a patch in there anywhere. $ pwd /home/r32813/Build/2.7.1/Python-2.7.1 $ Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Mercurial clone of python? Haha I am not sure what that is. My unix also won't recognize hg, and will ignore import --no-commit issue-13057.diff. I went ahead to edit configure file. Partially understanding the content of .diff file, I edited the configure and here is the difference... I will try to rebuild now... $ diff configure.original configure 8619a8620,8624 #include pthread.h +#include stdio.h void * start_routine (void *arg) { exit (0); } int $ Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Hello, I tried rebuild but it is still the same. :( Attached is the extract of the modified configure file, with line number at the side (from VI editor). Basically my changes are added as from line 8620 through 8624. I am not sure if this is meant to be, just my best guess from the patch file. Appreciate your advice. 8612 $as_echo_n checking for pthread_create in -lpthreads... 6; } 8613 if test ${ac_cv_lib_pthreads_pthread_create+set} = set; then : 8614$as_echo_n (cached) 6 8615 else 8616ac_check_lib_save_LIBS=$LIBS 8617 LIBS=-lpthreads $LIBS 8618 cat confdefs.h - _ACEOF conftest.$ac_ext 8619 /* end confdefs.h. */ 8620 #include pthread.h 8621 +#include stdio.h 8622 8623void * start_routine (void *arg) { exit (0); } 8624 int 8625 8626 /* Override any GCC internal prototype to avoid an error. 8627 Use char because int might match the return type of a GCC 8628 builtin and then its argument prototype would still apply. */ 8629 #ifdef __cplusplus 8630 extern C 8631 #endif Regards, Wah Meng Genesis Wafermap Support Ticket: To report a problem: http://dyno.freescale.net/Question/QuestionMain3.asp?location=zmy02category=tickettype=6820 To request a service: http://dyno.freescale.net/Question/Questionmain3.asp?location=74category=2tickettype=6819 Or if it is related to EWM or DSA: http://dyno.freescale.net/Question/Questionmain3.asp?location=ZMY02tickettype=6539 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Thank goodness. Let me try. Regards, Wah Meng Genesis Wafermap Support Ticket: To report a problem: http://dyno.freescale.net/Question/QuestionMain3.asp?location=zmy02category=tickettype=6820 To request a service: http://dyno.freescale.net/Question/Questionmain3.asp?location=74category=2tickettype=6819 Or if it is related to EWM or DSA: http://dyno.freescale.net/Question/Questionmain3.asp?location=ZMY02tickettype=6539 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Sorry, there a more than one entry of #include pthread.h in configure file. So do I inject everywhere? Regards, Wah Meng Genesis Wafermap Support Ticket: To report a problem: http://dyno.freescale.net/Question/QuestionMain3.asp?location=zmy02category=tickettype=6820 To request a service: http://dyno.freescale.net/Question/Questionmain3.asp?location=74category=2tickettype=6819 Or if it is related to EWM or DSA: http://dyno.freescale.net/Question/Questionmain3.asp?location=ZMY02tickettype=6539 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: Wow. I added it everywhere in the file. I love you!! (Ermm... I mean, literally) It can work now. :). I will move on to migrate my application with this new python. Hopefully I don't see other modules breaking. Thanks for the GREAT helps!!! :) $ python Python 2.7.1 (r271:86832, Sep 27 2011, 15:19:26) [C] on hp-ux11 Type help, copyright, credits or license for more information. import thread def test(): ... print Hello World ... thread.start_new_thread(test,()) 2 Hello World Regards, Wah Meng Genesis Wafermap Support Ticket: To report a problem: http://dyno.freescale.net/Question/QuestionMain3.asp?location=zmy02category=tickettype=6820 To request a service: http://dyno.freescale.net/Question/Questionmain3.asp?location=74category=2tickettype=6819 Or if it is related to EWM or DSA: http://dyno.freescale.net/Question/Questionmain3.asp?location=ZMY02tickettype=6539 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: I put up an issue the python I build is not able to run thread.start_new_thread. Someone replied to me that there is a bug in configure file and I follow the patch and rebuild my python, my thread is working after the patch is applied. I ended that issue discussion with thanks to the person who answered me and helped me. Sorry which one is unrelated? Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Changes by Wong Wah Meng r32...@freescale.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
Wong Wah Meng r32...@freescale.com added the comment: I tried again the build, after a new openSSL is installed on by my UNIX admin. The OpenSSL version is A.00.09.08r.003. The same result is generated when random is tested. The hashlib cannot be imported due to missing _sha256. In my build, I explicitly pass in -I to include header files of openssl, and -L to link up the libraries in openssl. export CC=cc +DD64 -I/home/r32813/local/include -I/opt/openssl/include export LDFLAGS=-L/home/r32813/local/lib -L/opt/openssl/lib -L/home/r32813/Build/2.7.1/Python-2.7.1 Could anyone re-look at this issue again? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Wong Wah Meng r32...@freescale.com added the comment: 1.) I see. Sorry ya, I didn't notice. They are automatically generated as my email footer. 2.) Ok, appreciate the information and helps! Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
Wong Wah Meng r32...@freescale.com added the comment: Hello there, I am encountering more modules/commands that uses the harslib that needs _sha256. I still haven't found a solution. Can anyone shed some lights here whether or not this is related to the way I include and link the library, or is that the _sha256 is not found on the server though I already have the server installed with the latest OpenSSL software? Thanks in advance for any reply, and I appreciate your input. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com