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:
<organization of PR author (multiple lines)>
>Environment:
System: Linux centos.imb.invention.com 2.6.18-194.el5xen #1 SMP Fri Apr 2 
16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
Architecture: i686

>Description:
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/libgpgme.la 
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  
-L/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/lib 
../../src/.libs/libgpgme.so 
/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/lib/librfuncs.so 
/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/lib/libgpg-error.so -Wl,-rpath 
-Wl,/usr/pkg/lib -Wl,-rpath 
-Wl,/tmp/obj_pkgsrc/security/gpgme/work/.buildlink/lib
../../src/.libs/libgpgme.so: undefined reference to `funopen'
collect2: ld returned 1 exit status
*** Error code 1

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

>Fix:
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