pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55281: mail/milter-regex does not link



>Number:         55281
>Category:       pkg
>Synopsis:       mail/milter-regex does not link
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 20 11:10:00 +0000 2020
>Originator:     Hauke Fath
>Release:        NetBSD 9.0_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: NetBSD Bounce 9.0_STABLE NetBSD 9.0_STABLE (DMZ_DOMU) #1: Tue May 5 13:38:54 CEST 2020 hf@Hochstuhl:/var/obj/netbsd-builds/9/amd64/sys/arch/amd64/compile/DMZ_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:

	Building mail/milter-regex throws up a linker error:

[...]
#   compile  milter-regex-1.7/milter-regex.o
--- eval.o ---
#   compile  milter-regex-1.7/eval.o
--- milter-regex.o ---
gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -Wall -Wstrict-prototypes   -fPIE    -std=gnu99   -Werror    -I/usr/pkg/include -I/usr/include  -c    milter-regex.c
--- eval.o ---
gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -Wall -Wstrict-prototypes   -fPIE    -std=gnu99   -Werror    -I/usr/pkg/include -I/usr/include  -c    eval.c
--- parse.o ---
#   compile  milter-regex-1.7/parse.o
gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -Wall -Wstrict-prototypes   -fPIE    -std=gnu99   -Werror    -I/usr/pkg/include -I/usr/include  -c    parse.c
--- eval.o ---
eval.c:33:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: eval.c,v 1.1.1.1 2007/01/11 15:49:52 dhartmei Exp $";
                   ^~~~~
ctfconvert -g -L VERSION eval.o
--- milter-regex.o ---
ctfconvert -g -L VERSION milter-regex.o
--- parse.o ---
ctfconvert -g -L VERSION parse.o
--- milter-regex ---
#      link  milter-regex-1.7/milter-regex
gcc   -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib   -pie  -shared-libgcc  -Wl,-z,relro     -o milter-regex  milter-regex.o eval.o parse.o  -Wl,-rpath-link,/lib  -L=/lib -lmilter  -pthread     
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(main.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(listener.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(smfi.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(signal.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(sm_gethost.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(errstring.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(engine.o): relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIC
ld: /var/obj/pkgsrc/mail/milter-regex/work/.buildlink/lib/libmilter.a(comm.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
ld: final link failed: nonrepresentable section on output
*** [milter-regex] Error code 1


	
>How-To-Repeat:

	Build milter-regex.
	
>Fix:
	

	No idea - just adding -fPIC to CFLAGS does not help.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index