[Bug 232510] lang/python37: Python 3.7.1 fails to build (upgrade) with 3.7.0 installed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 22 18:14:52 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232510

--- Comment #17 from hakan at siktas.com ---
I tried `portmaster -m MAKE_JOBS_UNSAFE=yes lang/python37` and it resulted in a
different error:

In file included from /usr/local/include/readline/readline.h:36:
/usr/local/include/readline/rltypedefs.h:35:22: warning: this function
declaration is not a prototype [-Wstrict-prototypes]
typedef int Function () __attribute__ ((deprecated));
                     ^
                      void
/usr/local/include/readline/rltypedefs.h:36:24: warning: this function
declaration is not a prototype [-Wstrict-prototypes]
typedef void VFunction () __attribute__ ((deprecated));
                       ^
                        void
/usr/local/include/readline/rltypedefs.h:37:26: warning: this function
declaration is not a prototype [-Wstrict-prototypes]
typedef char *CPFunction () __attribute__ ((deprecated));
                         ^
                          void
/usr/local/include/readline/rltypedefs.h:38:28: warning: this function
declaration is not a prototype [-Wstrict-prototypes]
typedef char **CPPFunction () __attribute__ ((deprecated));
                           ^
                            void
In file included from
/usr/ports/lang/python37/work/Python-3.7.1/Modules/readline.c:31:
/usr/local/include/readline/readline.h:390:23: warning: this function
declaration is not a prototype [-Wstrict-prototypes]
extern int rl_message ();
                      ^
                       void
5 warnings generated.
In file included from
/usr/ports/lang/python37/work/Python-3.7.1/Modules/socketmodule.c:283:
In file included from
/usr/ports/lang/python37/work/Python-3.7.1/Modules/socketmodule.h:66:
In file included from /usr/include/bluetooth.h:51:
/usr/include/netgraph/bluetooth/include/ng_btsocket.h:246:2: warning: "Make
sure new member of socket address initialized" [-W#warnings]
#warning "Make sure new member of socket address initialized"
 ^
1 warning generated.
In file included from
/usr/ports/lang/python37/work/Python-3.7.1/Modules/_ssl.c:38:
In file included from
/usr/ports/lang/python37/work/Python-3.7.1/Modules/socketmodule.h:66:
In file included from /usr/include/bluetooth.h:51:
/usr/include/netgraph/bluetooth/include/ng_btsocket.h:246:2: warning: "Make
sure new member of socket address initialized" [-W#warnings]
#warning "Make sure new member of socket address initialized"
 ^
1 warning generated.

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_tkinter              spwd
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd
time

install  -m 0644 ./Tools/gdb/libpython.py python-gdb.py
cc -pthread -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG
-O2 -pipe  -fstack-protector -fno-strict-aliasing   -std=c99 -Wextra
-Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers
-Wstrict-prototypes -Werror=implicit-function-declaration   -I. -I./Include
-I/usr/local/include -I/usr/local/include -fPIC -DPy_BUILD_CORE -o
Programs/_testembed.o ./Programs/_testembed.c
cc -pthread  -L/usr/local/lib  -fstack-protector  -Wl,--export-dynamic -o
Programs/_testembed Programs/_testembed.o -L. -lpython3.7m -lintl -ldl
-L/usr/local/lib -lintl -lutil   -lm
Programs/_testembed.o: In function `test_init_from_config':
_testembed.c:(.text+0xd28): undefined reference to `_Py_InitializeFromConfig'
Programs/_testembed.o: In function `test_init_dev_mode':
_testembed.c:(.text+0xe0f): undefined reference to `_Py_InitializeFromConfig'
Programs/_testembed.o: In function `test_init_isolated':
_testembed.c:(.text+0xeb3): undefined reference to `_Py_InitializeFromConfig'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/lang/python37/work/Python-3.7.1
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/python37
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/python37

===>>> make build failed for lang/python37
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> lang/python37

This command has been saved to /tmp/portmasterfail.txt

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list