rlm_python3 integration in Gentoo/Sabayon

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


Hi,

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:

https://github.com/geaaru/freeradius-server/commit/1862610feab8b3e165ca0b57dc6d15f7bd27572e

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
-std=c99 -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-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
build/objs/src/modules/rlm_python3/rlm_python3.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
build/objs/src/modules/rlm_python3/rlm_python3.o  
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/lib/local/.libs/rlm_python3.so
build/objs/src/modules/rlm_python3/rlm_python3.o -L/usr/lib64
-lpython3.6m -lpthread -ldl -lutil -lm -lpython3.6m  
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
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
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-
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

Daniele


More information about the Freeradius-Devel mailing list