I've recently checked in changes that remove the if clause in adding the options. Although my copy of Python 2.5 does not seem to need the options added, adding them does not cause any problems either, and you (and others) do seem to have the problem. Since you haven't had any other questions I'm hoping that everything went smoothly? :-)
Anthony On Sun, May 18, 2008 at 3:04 AM, Jonathan Wright <[EMAIL PROTECTED]> wrote: > Anthony, > > I've pasted the full output below, a lot of complaints that gcc was missing > a -lpython2.5 on the line: > > gcc -pthread build/temp.linux-i686-2.5/source/bases/Console.o -o > build/lib.linux-i686-2.5/cx_Freeze/bases/Console -s > > Thanks for your reply! I'm sure I'll be back with more questions soon - I'm > hoping to package something which uses numpy, matplotlib and pyopengl via > togl. Strangely people sometimes have trouble installing the dependencies > ;-) > > Best > > Jon > > > > $ python -V > Python 2.5.2 > > $ gcc -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v > --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr > --enable-shared --with-system-zlib --libexecdir=/usr/lib > --without-included-gettext --enable-threads=posix --enable-nls > --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 > --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr > --enable-targets=all --enable-checking=release --build=i486-linux-gnu > --host=i486-linux-gnu --target=i486-linux-gnu > Thread model: posix > gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) > > $ wget > http://downloads.sourceforge.net/cx-freeze/cx_Freeze-4.0b1.tar.gz?modtime=1190662574&big_mirror=0 > > $ tar -zxf cx_Freeze-4.0b1.tar.gz > $ cd cx_Freeze-4.0b1 > > $ python setup.py build > running build > running build_py > creating build > creating build/lib.linux-i686-2.5 > creating build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/windist.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/hooks.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/finder.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/freezer.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/__init__.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/dist.py -> build/lib.linux-i686-2.5/cx_Freeze > copying cx_Freeze/main.py -> build/lib.linux-i686-2.5/cx_Freeze > running build_ext > building 'cx_Freeze.util' extension > creating build/temp.linux-i686-2.5 > creating build/temp.linux-i686-2.5/source > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall > -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c source/util.c -o > build/temp.linux-i686-2.5/source/util.o > gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions > build/temp.linux-i686-2.5/source/util.o -o > build/lib.linux-i686-2.5/cx_Freeze/util.so > creating build/temp.linux-i686-2.5/source/bases > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall > -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c source/bases/Console.c > -o build/temp.linux-i686-2.5/source/bases/Console.o > creating build/lib.linux-i686-2.5/cx_Freeze/bases > gcc -pthread build/temp.linux-i686-2.5/source/bases/Console.o -o > build/lib.linux-i686-2.5/cx_Freeze/bases/Console -s > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `GetImporterHelper': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:157: undefined > reference to `PyObject_CallMethod' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:161: undefined > reference to `PyErr_Clear' > build/temp.linux-i686-2.5/source/bases/Console.o: In function `FatalError': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:18: undefined > reference to `PyErr_Print' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:19: undefined > reference to `Py_FatalError' > build/temp.linux-i686-2.5/source/bases/Console.o: In function `GetDirName': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:28: undefined > reference to `PyString_FromStringAndSize' > build/temp.linux-i686-2.5/source/bases/Console.o: In function `main': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:47: undefined > reference to `Py_NoSiteFlag' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:48: undefined > reference to `Py_FrozenFlag' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:49: undefined > reference to `Py_IgnoreEnvironmentFlag' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:50: undefined > reference to `Py_SetPythonHome' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:51: undefined > reference to `Py_SetProgramName' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:52: undefined > reference to `Py_GetProgramFullPath' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:53: undefined > reference to `Py_Initialize' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:54: undefined > reference to `PySys_SetArgv' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `SetExecutableName': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:53: undefined > reference to `PyString_FromString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:72: undefined > reference to `PyString_FromStringAndSize' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:84: undefined > reference to `PyString_FromString' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `SetPathToSearch': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:132: undefined > reference to `PySys_GetObject' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:135: undefined > reference to `PyList_Insert' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:137: undefined > reference to `PyList_Insert' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:139: undefined > reference to `PyList_Insert' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:141: undefined > reference to `PyList_Insert' > build/temp.linux-i686-2.5/source/bases/Console.o: In function `GetImporter': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:177: undefined > reference to `PyImport_ImportModule' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `ExecuteScript': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:241: undefined > reference to `PyDict_New' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `PopulateInitScriptDict': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:202: undefined > reference to `PyEval_GetBuiltins' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:202: undefined > reference to `PyDict_SetItemString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:204: undefined > reference to `PyDict_SetItemString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:206: undefined > reference to `PyDict_SetItemString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:208: undefined > reference to `PyDict_SetItemString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:211: undefined > reference to `PyDict_SetItemString' > build/temp.linux-i686-2.5/source/bases/Console.o:/home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:214: > more undefined references to `PyDict_SetItemString' follow > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `ExecuteScript': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:249: undefined > reference to `PyObject_CallMethod' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:253: undefined > reference to `PyEval_EvalCode' > build/temp.linux-i686-2.5/source/bases/Console.o: In function `main': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:60: undefined > reference to `Py_Finalize' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `ExecuteScript': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:104: undefined > reference to `PyString_FromString' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:113: undefined > reference to `PyString_FromString' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `SetExecutableName': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:60: undefined > reference to `PyExc_OSError' > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Common.c:60: undefined > reference to `PyErr_SetFromErrnoWithFilename' > build/temp.linux-i686-2.5/source/bases/Console.o: In function > `FatalScriptError': > /home/wright/workspace/cx_Freeze-4.0b1/source/bases/Console.c:30: undefined > reference to `PyErr_Print' > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > > > > > Anthony Tuininga wrote: >> >> Interesting. My Python 2.5 certainly does not require that code and >> only Python 2.4 and earlier required it. I am running 2.5.1 on Fedora >> 8 which may or may not make a difference. Can you give some idea as to >> how it failed? Thanks. >> >> Anthony >> >> On Tue, May 13, 2008 at 1:22 PM, Jonathan Wright <[EMAIL PROTECTED]> wrote: >> >>> >>> Hello, >>> >>> I downloaded your source package cx_Freeze-4.0b1.tar.gz and did: >>> >>> $ python setup.py build >>> >>> ... and it failed on this ubuntu (hardy heron) system with python2.5. In >>> your setup file you have some lines: >>> >>> if sys.platform != "win32": >>> if sys.version_info[:2] < (2, 5): >>> vars = distutils.sysconfig.get_config_vars() >>> ... do important stuff ... >>> >>> >>> Changing the (2, 5) to (2, 6) means it builds for me. Can't really see >>> how that would work for 2.5 otherwise? After that the >>> samples/simple/hello.py could be built with python setup.py build and >>> the exe appears to run. I have not tested any further yet. >>> >>> Thanks for making the code available. Perhaps someone could suggest a >>> better fix if this one isn't correct. >>> >>> Best wishes, >>> >>> Jon >>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> cx-freeze-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >>> >>> > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
