Bug 192348 - www/mod_python33 fails to build after today's python27 changes
Summary: www/mod_python33 fails to build after today's python27 changes
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Marcus von Appen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-02 21:46 UTC by Peter Wemm
Modified: 2014-08-03 08:09 UTC (History)
2 users (show)

See Also:


Attachments
www_mod_python33.diff (1.37 KB, patch)
2014-08-03 05:54 UTC, Peter Wemm
no flags Details | Diff
Reworked patch (1.53 KB, patch)
2014-08-03 07:36 UTC, Marcus von Appen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Wemm freebsd_committer freebsd_triage 2014-08-02 21:46:05 UTC
TL;DR version:  /usr/bin/ld: mod_python.so: No such file: No such file or directory

Tail of poudriere build log:

/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing   -I/usr/local/include -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src/include -I/usr/local/include/apache22 -I/usr/local/include/python2.7  -c -o connobject.lo connobject.c && touch connobject.slo
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing   -I/usr/local/include -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src/include -I/usr/local/include/apache22 -I/usr/local/include/python2.7  -c -o filterobject.lo filterobject.c && touch filterobject.slo
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing   -I/usr/local/include -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src/include -I/usr/local/include/apache22 -I/usr/local/include/python2.7  -c -o hlist.lo hlist.c && touch hlist.slo
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing   -I/usr/local/include -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src/include -I/usr/local/include/apache22 -I/usr/local/include/python2.7  -c -o hlistobject.lo hlistobject.c && touch hlistobject.slo
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing   -I/usr/local/include -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src/include -I/usr/local/include/apache22 -I/usr/local/include/python2.7  -c -o finfoobject.lo finfoobject.c && touch finfoobject.slo
finfoobject.c:278:9: warning: incompatible pointer types initializing 'ssizeargfunc' (aka 'PyObject *(*)(PyObject *, Py_ssize_t)') with an expression of type 'intargfunc' (aka 'PyObject *(*)(PyObject *, int)') [-Wincompatible-pointer-types]
        (intargfunc)finfoseq_item,              /* sq_item */
        ^~~~~~~~~~~~~~~~~~~~~~~~~
finfoobject.c:278:10: warning: 'intargfunc' is deprecated [-Wdeprecated-declarations]
        (intargfunc)finfoseq_item,              /* sq_item */
         ^
/usr/local/include/python2.7/object.h:139:21: note: 'intargfunc' declared here
typedef PyObject *(*intargfunc)(PyObject *, int) Py_DEPRECATED(2.5);
                    ^
2 warnings generated.
/usr/local/share/apr/build-1/libtool --silent --mode=link cc -o mod_python.la  -rpath /usr/local/libexec/apache22 -module -avoid-version    finfoobject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo -L/usr/local/lib -L/usr/local/lib/python2.7/config -Wl,--export-dynamic -pthread -Wl,-rpath -lm -lpython2.7 -lpython2.7 -lintl -lutil -lm -lthr
/usr/bin/ld: mod_python.so: No such file: No such file or directory
cc: error: linker command failed with exit code 1 (use -v to see invocation)
apxs:Error: Command failed with rc=65536
.
*** [mod_python.so] Error code 1

make[2]: stopped in /wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src
1 error

make[2]: stopped in /wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1/src
*** [do_dso] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1
1 error

make[1]: stopped in /wrkdirs/usr/ports/www/mod_python33/work/mod_python-3.3.1
===> Compilation failed unexpectedly.
Comment 1 Peter Wemm freebsd_committer freebsd_triage 2014-08-03 05:54:37 UTC
Created attachment 145291 [details]
www_mod_python33.diff

I was given this patch, which appears to work.
http://pastebin.com/raw.php?i=2XnZWh2n
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2014-08-03 07:36:29 UTC
Created attachment 145292 [details]
Reworked patch

I cleaned up your patch. The original PyLIBS patch does not seem to be necessary anymore. Can you give it a try?


For documentation purposes and reference:
mod_python33 originally seems to strip the LDFLAGS in a wrong way (the cut -d= kills the -rpath= LDFLAGS), which causes the linker to break.
Comment 3 Peter Wemm freebsd_committer freebsd_triage 2014-08-03 07:43:02 UTC
I think the original patch came from antoine@ - but I'm not sure about that.  It was a pasted link via IRC.  Definitely not any of my work.

Your version works fine.
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-08-03 08:07:39 UTC
A commit references this bug:

Author: mva
Date: Sun Aug  3 08:07:21 UTC 2014
New revision: 363855
URL: http://svnweb.freebsd.org/changeset/ports/363855

Log:
  - Unbreak the build after the recent lang/python27 update.

  PR:		192348
  Submitted by:	peter@

Changes:
  head/www/mod_python33/Makefile
  head/www/mod_python33/files/patch-configure
Comment 5 Marcus von Appen freebsd_committer freebsd_triage 2014-08-03 08:09:17 UTC
Committed, thanks!