Coredump when compiling python with a custom openssl version

前端 未结 7 1181

When compiling python-3.4.0rc3 with a local openssl-1.0.1f shared install, make prints no error but then I get the following core dump on make install or make t

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-18 01:34

    This isn't an answer, just an observation after running though this with you:

    $ make 
    ...
    
    gcc -pthread -c -Wno-unused-result -Werror=declaration-after-statement
      -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include
      -DPy_BUILD_CORE -o Objects/capsule.o Objects/capsule.c
    

    -fwrapv is really bad. Its used to make illegal programs work. Its better to fix the broken program and drop the -fwrapv. See Ian Lance Taylor's blog on Signed Overflow.

提交回复
热议问题