Opened 14 years ago

Closed 14 years ago

#28735 closed defect (invalid)

python 2.7 fails to build

Reported by: mvr.rennes@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: python27

Description

When installing python27 (as a dependency for git-core), the build fails with an error message about srtp_config.h being missing.

The build log ends like so (see attached file for full log):

:info:destroot /usr/bin/gcc-4.0 -L/opt/local/lib -arch i386 -DPYTHONFRAMEWORK='"Python"' -o pythonw ./Tools/pythonw.c -I.. -I./../Include ../Python.framework/Versions/2.7/Python
:info:destroot In file included from /usr/local/include/datatypes.h:50,
:info:destroot                  from /usr/local/include/err.h:49,
:info:destroot                  from ./Tools/pythonw.c:26:
:info:destroot /usr/local/include/integers.h:50:67: error: srtp_config.h: No such file or directory
:info:destroot make[1]: *** [pythonw] Error 1
:info:destroot make: *** [frameworkinstallapps] Error 2
:info:destroot shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /usr/bin/make frameworkinstall maninstall MAKE="/usr/bin/make CC=/usr/bin/gcc-4.0" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot " returned error 2
:error:destroot Target org.macports.destroot returned: shell command failed (see log for details)
:debug:destroot Backtrace: shell command failed (see log for details)
    while executing
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
:info:destroot Warning: the following items did not execute (for python27): org.macports.activate org.macports.destroot org.macports.install
:notice:destroot Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log

Attachments (1)

main.log (1.0 MB) - added by mvr.rennes@… 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by mvr.rennes@…

Attachment: main.log added

comment:1 Changed 14 years ago by mvr.rennes@…

Cc: mvr.rennes@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: mvr.rennes@… removed
Keywords: python removed
Owner: changed from macports-tickets@… to jwa@…

What version of Mac OS X are you running?

comment:3 Changed 14 years ago by mvr.rennes@…

I'm running 10.5.8

comment:4 in reply to:  description Changed 14 years ago by blb@…

Resolution: invalid
Status: newclosed

Replying to mvr.rennes@…:

:info:destroot /usr/bin/gcc-4.0 -L/opt/local/lib -arch i386 -DPYTHONFRAMEWORK='"Python"' -o pythonw ./Tools/pythonw.c -I.. -I./../Include ../Python.framework/Versions/2.7/Python
:info:destroot In file included from /usr/local/include/datatypes.h:50,
:info:destroot                  from /usr/local/include/err.h:49,
:info:destroot                  from ./Tools/pythonw.c:26:
:info:destroot /usr/local/include/integers.h:50:67: error: srtp_config.h: No such file or directory

Looks like you have stuff in /usr/local that is interfering with building; you'll need to at least move that aside when building ports (and be sure to port clean python27 before installing again).

Note: See TracTickets for help on using tickets.