rlm_python3 integration in Gentoo/Sabayon

Geaaru geaaru at gmail.com
Fri Dec 6 20:41:40 CET 2019


i'm trying to integrate Python3.6 support in Gentoo/Sabayon distro and
I will soon push a pr that fix this support on configure.ac but I see
that also with python2.7 before my changes export-dynamic link option
was disabled.

Here my patch:


Now I also fixed this but I have this issue:

Executing: /bin/sh -c x86_64-pc-linux-gnu-gcc -c -MD -I. -Isrc -include
src/freeradius-devel/autoconf.h -include src/freeradius-devel/build.h
-include src/freeradius-devel/features.h -include src/freeradius-
devel/radpaths.h -fno-strict-aliasing -Wno-date-time -O2 -pipe -Wall
-DOPENSSL_NO_KRB5 -DNDEBUG -DIS_MODULE=1 -I/usr/include/python3.6m
-I/usr/include/python3.6m -Wno-unused-result -Wsign-compare -O2
-march=x86-64 -pipe -fwrapv -DNDEBUG -isystem /usr/include/python3.6/
src/modules/rlm_python3/rlm_python3.c -fPIC -o
Executing: touch build/objs/src/modules/rlm_python3/rlm_python3.lo 
Executing: /bin/sh -c true true build/lib/local/.libs/rlm_python3.a
Executing: true build/lib/local/.libs/rlm_python3.a 
Executing: /bin/sh -c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed
-Xlinker -shared -Wl,-export-dynamic -o
build/objs/src/modules/rlm_python3/rlm_python3.o -L/usr/lib64
-lpython3.6m -lpthread -ldl -lutil -lm -lpython3.6m  
gnu/bin/ld: /usr/lib64/libc_nonshared.a(elf-init.oS): relocation
R_X86_64_PC32 against undefined hidden symbol `__init_array_start' can
not be used when making a shared object
gnu/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

Could be related to gcc version? Anyone has alraedy see this error?

I will try to check what this means in the next days.

Thanks in advance for any suggestions


More information about the Freeradius-Devel mailing list