pkgsrc-Bugs archive

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

pkg/43519: security/gpgme fails to build [patch]

>Number:         43519
>Category:       pkg
>Synopsis:       security/gpgme fails to build [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 25 16:30:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        Linux 2.6.18-194.el5xen
<organization of PR author (multiple lines)>
System: Linux 2.6.18-194.el5xen #1 SMP Fri Apr 2 
16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
Architecture: i686

Build of this package under Linux ends like this

/bin/sh ../../libtool --tag=CC    --mode=link gcc  -Wno-error -I/usr/include 
-I/usr/pkg/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes   -L/usr/lib 
-Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lrfuncs -o t-encrypt 
t-encrypt.o ../../src/ 
libtool: link: gcc -Wno-error 
-I/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/include -Wall -Wcast-align 
-Wshadow -Wstrict-prototypes -Wl,-R/usr/pkg/lib -o .libs/t-encrypt t-encrypt.o  
/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/lib/ -Wl,-rpath 
-Wl,/usr/pkg/lib -Wl,-rpath 
../../src/.libs/ undefined reference to `funopen'
collect2: ld returned 1 exit status
*** Error code 1

Under Linux/glibc there is no function funopen(3).

I propose to apply the following patch.
Setting ac_cv_func_funopen to yes was introduced in Makefile r1.46

   revision 1.46
   date: 2006/10/20 15:25:22;  author: shannonjr;  state: Exp;  lines: +2 -1
   Fix gpgsm option so that it builds and works.

Option "gpgsm" is enabled by default and without this line package is
built just fine.

Index: Makefile
RCS file: /cvsroot/pkgsrc/security/gpgme/Makefile,v
retrieving revision 1.61
diff -u -r1.61 Makefile
--- Makefile    16 Jan 2010 17:57:38 -0000      1.61
+++ Makefile    25 Jun 2010 16:24:35 -0000
@@ -36,7 +36,6 @@
 # getenv_r is not detected correctly. It will be found
 # in either base system or librfuncs
 CONFIGURE_ENV+=                ac_cv_func_getenv_r=yes
-CONFIGURE_ENV+=                ac_cv_func_funopen=yes
 TEST_TARGET=           check

Home | Main Index | Thread Index | Old Index