Opened 14 years ago
Closed 14 years ago
#25148 closed defect (fixed)
py-ctypes: error: 'MAP_ANONYMOUS' undeclared
Reported by: | IgnitusBoyone@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | py-ctypes |
Description (last modified by jmroot (Joshua Root))
I am trying to reinstall my dev involvement after a hard drive failure and I have run in to the following problem when installing py-opengl.
I have seen only once simi recent ticket regarding py-ctypes, but the output does not seem to be related to this error. #22418
Any help is appreciated.
ignitus@eclipse: ttys001: 13 files 304b ~ -> sudo port install -d py-opengl ---> Computing dependencies for py-opengl ---> Building py-ctypes Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1" && /opt/local/bin/python2.4 setup.py build " returned error 1 Command output: running build running build_py running build_ext building '_ctypes' extension /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isource/darwin -Ibuild/temp.macosx-10.6-i386-2.4/libffi/include -Ibuild/temp.macosx-10.6-i386-2.4/libffi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1/source/libffi/src -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c source/malloc_closure.c -o build/temp.macosx-10.6-i386-2.4/source/malloc_closure.o source/malloc_closure.c: In function 'more_core': source/malloc_closure.c:51: warning: implicit declaration of function 'getpagesize' source/malloc_closure.c:70: error: 'MAP_ANONYMOUS' undeclared (first use in this function) source/malloc_closure.c:70: error: (Each undeclared identifier is reported only once source/malloc_closure.c:70: error: for each function it appears in.) error: command '/usr/bin/gcc-4.2' failed with exit status 1 Error: The following dependencies failed to build: py-ctypes py-numpy fftw-3 py-nose py-setuptools Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output.
Attachments (1)
Change History (8)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Port: | py-ctypes added |
comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Summary: | py-ctypes install failure when instaling py-opengl → py-ctypes: error: 'MAP_ANONYMOUS' undeclared |
Hmm, on Snow Leopard I get the error from #22418, not the one you reported here.
Have you considered using Python 2.6 instead of 2.4? Python 2.6 has ctypes built-in, I'm led to believe.
Note: the "-d" flag has no effect unless you put it in the right place, which is immediately after the word "port", i.e. "sudo port -d install py-opengl"
comment:3 Changed 14 years ago by IgnitusBoyone@…
I was wondering about that. I included the full debug output below. This could be my ignorance, but I could not figure out how to tell py-opengl to use Python 2.6 or preferably, but possibly not an option 3.1. I had assumed that python_select python26 would do the trick and I would just need to clean py-opengl and try again, but When it didn't work I looked in to the documentation and from what I could find the port decides which version of python it uses. If I am wrong about this I am more then willing to try anything. For now I have manually installed py-opengl, but would prefer to figure out the cause of this problem.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-opengl DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-opengl DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python24-1.0.tcl DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port py-opengl. DEBUG: Requested variant i386 is not provided by port py-opengl. DEBUG: Requested variant macosx is not provided by port py-opengl. DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python24 DEBUG: epoch: in tree: 0 installed: 0 DEBUG: python24 2.4.6_4 exists in the ports tree DEBUG: python24 2.4.6_4 +darwin+darwin_10+macosx is the latest installed DEBUG: python24 2.4.6_4 +darwin+darwin_10+macosx is active DEBUG: Merging existing variants darwin darwin_10 macosx into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python24 DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant i386 is not provided by port python24. DEBUG: Executing variant macosx provides macosx DEBUG: Executing variant darwin provides darwin DEBUG: Executing variant darwin_10 provides darwin_10 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext DEBUG: epoch: in tree: 0 installed: 0 DEBUG: gettext 0.18_0 exists in the ports tree DEBUG: gettext 0.18_0 is the latest installed DEBUG: gettext 0.18_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port gettext. DEBUG: Requested variant i386 is not provided by port gettext. DEBUG: Requested variant macosx is not provided by port gettext. DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv DEBUG: epoch: in tree: 0 installed: 0 DEBUG: libiconv 1.13.1_0 exists in the ports tree DEBUG: libiconv 1.13.1_0 is the latest installed DEBUG: libiconv 1.13.1_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port libiconv. DEBUG: Requested variant i386 is not provided by port libiconv. DEBUG: Requested variant macosx is not provided by port libiconv. DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf DEBUG: epoch: in tree: 0 installed: 0 DEBUG: gperf 3.0.4_0 exists in the ports tree DEBUG: gperf 3.0.4_0 is the latest installed DEBUG: gperf 3.0.4_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port gperf. DEBUG: Requested variant i386 is not provided by port gperf. DEBUG: Requested variant macosx is not provided by port gperf. DEBUG: No need to upgrade! gperf 3.0.4_0 >= gperf 3.0.4_0 DEBUG: No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses DEBUG: epoch: in tree: 0 installed: 0 DEBUG: ncurses 5.7_0 exists in the ports tree DEBUG: ncurses 5.7_0 +darwin_10 is the latest installed DEBUG: ncurses 5.7_0 +darwin_10 is active DEBUG: Merging existing variants darwin_10 into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port ncurses. DEBUG: Requested variant i386 is not provided by port ncurses. DEBUG: Requested variant macosx is not provided by port ncurses. DEBUG: Executing variant darwin_10 provides darwin_10 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw DEBUG: epoch: in tree: 0 installed: 0 DEBUG: ncursesw 5.7_0 exists in the ports tree DEBUG: ncursesw 5.7_0 +darwin_10 is the latest installed DEBUG: ncursesw 5.7_0 +darwin_10 is active DEBUG: Merging existing variants darwin_10 into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port ncursesw. DEBUG: Requested variant i386 is not provided by port ncursesw. DEBUG: Requested variant macosx is not provided by port ncursesw. DEBUG: Executing variant darwin_10 provides darwin_10 DEBUG: No need to upgrade! ncursesw 5.7_0 >= ncursesw 5.7_0 DEBUG: No need to upgrade! ncurses 5.7_0 >= ncurses 5.7_0 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat DEBUG: epoch: in tree: 0 installed: 0 DEBUG: expat 2.0.1_0 exists in the ports tree DEBUG: expat 2.0.1_0 is the latest installed DEBUG: expat 2.0.1_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Requested variant darwin is not provided by port expat. DEBUG: Requested variant i386 is not provided by port expat. DEBUG: Requested variant macosx is not provided by port expat. DEBUG: No need to upgrade! expat 2.0.1_0 >= expat 2.0.1_0 DEBUG: No need to upgrade! gettext 0.18_0 >= gettext 0.18_0 DEBUG: No need to upgrade! python24 2.4.6_4 >= python24 2.4.6_4 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-numpy DEBUG: epoch: in tree: 0 installed: 0 DEBUG: py-numpy 1.4.1_0 exists in the ports tree DEBUG: py-numpy 1.4.1_0 is the latest installed DEBUG: py-numpy 1.4.1_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-numpy DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python24-1.0.tcl DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port py-numpy. DEBUG: Requested variant i386 is not provided by port py-numpy. DEBUG: Requested variant macosx is not provided by port py-numpy. DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/math/fftw-3 DEBUG: epoch: in tree: 0 installed: 0 DEBUG: fftw-3 3.2.2_0 exists in the ports tree DEBUG: fftw-3 3.2.2_0 +i386 is the latest installed DEBUG: fftw-3 3.2.2_0 +i386 is active DEBUG: Merging existing variants i386 into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/fftw-3 DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port fftw-3. DEBUG: Requested variant macosx is not provided by port fftw-3. DEBUG: Executing variant i386 provides i386 DEBUG: No need to upgrade! fftw-3 3.2.2_0 >= fftw-3 3.2.2_0 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-nose DEBUG: epoch: in tree: 0 installed: 0 DEBUG: py-nose 0.10.4_0 exists in the ports tree DEBUG: py-nose 0.10.4_0 is the latest installed DEBUG: py-nose 0.10.4_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-nose DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python24-1.0.tcl DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port py-nose. DEBUG: Requested variant i386 is not provided by port py-nose. DEBUG: Requested variant macosx is not provided by port py-nose. DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-setuptools DEBUG: epoch: in tree: 0 installed: 0 DEBUG: py-setuptools 0.6c11_0 exists in the ports tree DEBUG: py-setuptools 0.6c11_0 is the latest installed DEBUG: py-setuptools 0.6c11_0 is active DEBUG: Merging existing variants into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-setuptools DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python24-1.0.tcl DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port py-setuptools. DEBUG: Requested variant i386 is not provided by port py-setuptools. DEBUG: Requested variant macosx is not provided by port py-setuptools. DEBUG: No need to upgrade! py-setuptools 0.6c11_0 >= py-setuptools 0.6c11_0 DEBUG: No need to upgrade! py-nose 0.10.4_0 >= py-nose 0.10.4_0 DEBUG: No need to upgrade! py-numpy 1.4.1_0 >= py-numpy 1.4.1_0 ---> Computing dependencies for py-opengl DEBUG: Searching for dependency: python24 DEBUG: Found Dependency: receipt exists for python24 DEBUG: Searching for dependency: py-ctypes DEBUG: Didn't find receipt, going to depspec regex for: py-ctypes DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-ctypes DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-ctypes DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python24-1.0.tcl DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port py-ctypes. DEBUG: Requested variant i386 is not provided by port py-ctypes. DEBUG: Requested variant macosx is not provided by port py-ctypes. DEBUG: Searching for dependency: py-numpy DEBUG: Found Dependency: receipt exists for py-numpy DEBUG: Searching for dependency: py-setuptools DEBUG: Found Dependency: receipt exists for py-setuptools DEBUG: Searching for dependency: python24 DEBUG: Found Dependency: receipt exists for python24 DEBUG: Searching for dependency: libffi DEBUG: Found Dependency: receipt exists for libffi DEBUG: Executing org.macports.main (py-ctypes) DEBUG: Skipping completed org.macports.fetch (py-ctypes) DEBUG: Skipping completed org.macports.checksum (py-ctypes) DEBUG: Skipping completed org.macports.extract (py-ctypes) DEBUG: Skipping completed org.macports.patch (py-ctypes) DEBUG: Skipping completed org.macports.configure (py-ctypes) ---> Building py-ctypes DEBUG: Executing org.macports.build (py-ctypes) DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' CC='/usr/bin/gcc-4.2' CPP='/usr/bin/cpp-4.2' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1" && /opt/local/bin/python2.4 setup.py build' running build running build_py running build_ext building '_ctypes' extension /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isource/darwin -Ibuild/temp.macosx-10.6-i386-2.4/libffi/include -Ibuild/temp.macosx-10.6-i386-2.4/libffi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1/source/libffi/src -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c source/malloc_closure.c -o build/temp.macosx-10.6-i386-2.4/source/malloc_closure.o source/malloc_closure.c: In function 'more_core': source/malloc_closure.c:51: warning: implicit declaration of function 'getpagesize' source/malloc_closure.c:70: error: 'MAP_ANONYMOUS' undeclared (first use in this function) source/malloc_closure.c:70: error: (Each undeclared identifier is reported only once source/malloc_closure.c:70: error: for each function it appears in.) error: command '/usr/bin/gcc-4.2' failed with exit status 1 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1" && /opt/local/bin/python2.4 setup.py build " returned error 1 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-ctypes/work/ctypes-1.0.1" && /opt/local/bin/python2.4 setup.py build " returned error 1 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for py-ctypes): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: The following dependencies failed to build: py-ctypes Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
comment:5 Changed 14 years ago by IgnitusBoyone@…
An entire new tool chain latter. Python26 works like a charm. Now, if I could figure out why the windows don't open properly in Textmate I would be in business. They work fine out of a terminal so I am going to assume its an environment issue and track it down tomorrow.
Thanks for the help.
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Status: | new → assigned |
Back to the error originally reported in this ticket: "error: 'MAP_ANONYMOUS' undeclared
". MAP_ANONYMOUS
(which is called MAP_ANON
on Mac OS X) is defined in /usr/include/sys/mman.h, but only if _POSIX_C_SOURCE
is not defined, unless _DARWIN_C_SOURCE
is also defined. python24 on Mac OS X 10.5 does not define _POSIX_C_SOURCE
(try "grep _C_SOURCE /opt/local/include/python2.4/pyconfig.h
") so ctypes works on Mac OS X 10.5, but python24 on Mac OS X 10.6 does define _POSIX_C_SOURCE
(and does not define _DARWIN_C_SOURCE
) so ctypes does not work on Mac OS X 10.6.
The attached patch fixes this by defining _DARWIN_C_SOURCE
. I don't know what other implications this might have. The patch also fixes #22418 by using the system's libffi instead of the ancient bundled one.
Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | py-ctypes.diff added |
---|
proposed patch
comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed in r69875.
Please remember to preview and use WikiFormatting, and to fill in the Port field.