Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2018 21:02:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 232795] lang/python37: incorrect -L argument order makes python37 build fail in presence of (older) python37
Message-ID:  <bug-232795-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232795

            Bug ID: 232795
           Summary: lang/python37: incorrect -L argument order makes
                    python37 build fail in presence of (older) python37
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

Python37 can't be upgraded from 3.7.0 to 3.7.1, because build fails:

--- Programs/_testembed ---
cc -pthread  -L/usr/local/lib  -fstack-protector  -Wl,--export-dynamic -o
Programs/_testembed Programs/_testembed.o -L. -lpython3.7m -ldl  -lutil   -=
lm=20=20=20
Programs/_testembed.o: In function `test_init_from_config':
_testembed.c:(.text+0xd28): undefined reference to `_Py_InitializeFromConfi=
g'
Programs/_testembed.o: In function `test_init_dev_mode':
_testembed.c:(.text+0xe0f): undefined reference to `_Py_InitializeFromConfi=
g'
Programs/_testembed.o: In function `test_init_isolated':
_testembed.c:(.text+0xeb3): undefined reference to `_Py_InitializeFromConfi=
g'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is caused by -L/usr/local/lib present in the linker invocation before =
-L.,
so libraries from systemwide installed python (previous version) are picked=
 up.
I've solved this by remivong /usr/local/lib/libpython*, but the port should=
 be
fixed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232795-21822>