diff mbox series

libgpg-err build error

Message ID 8b46e732-70cb-72e4-8314-5d314a4a7c40@gmail.com
State Not Applicable
Delegated to: Petr Štetiar
Headers show
Series libgpg-err build error | expand

Commit Message

e9hack May 13, 2021, 7 a.m. UTC
Hi,

I've trouble to build libgpg-err since the update from 1.39 to 1.42. Compilation does fail because the auto generated file gpg-error.h contains wrong syntax in macro GPGRT_LOCK_INITIALIZER:

#define GPGRT_LOCK_INITIALIZER {1,{{\c
0\c
,\0c
0\c
,\0c
....

The sequence is generated by gen-lock-obj.sh. I patched out the wrong generation of macros ECHO_C and ECHO_N:


Any idea why this does fail? My build system is openSuse Leap 15.2, running in Oracle VirtualBox on Windows.

Regards,
Hartmut

Comments

Nick May 13, 2021, 8:19 a.m. UTC | #1
There is a PR for the package:
https://github.com/openwrt/packages/pull/15615

On 5/13/21 9:00 AM, e9hack wrote:
> Hi,
>
> I've trouble to build libgpg-err since the update from 1.39 to 1.42. 
> Compilation does fail because the auto generated file gpg-error.h 
> contains wrong syntax in macro GPGRT_LOCK_INITIALIZER:
>
> #define GPGRT_LOCK_INITIALIZER {1,{{\c
> 0\c
> ,\0c
> 0\c
> ,\0c
> ....
>
> The sequence is generated by gen-lock-obj.sh. I patched out the wrong 
> generation of macros ECHO_C and ECHO_N:
>
> --- a/src/gen-lock-obj.sh   2021-03-04 11:05:29.000000000 +0100
> +++ b/src/gen-lock-obj.sh   2021-05-13 08:14:52.675832305 +0200
> @@ -39,8 +39,8 @@
>  #
>
>  if test -n `echo -n`; then
> -    ECHO_C='\c'
> -    ECHO_N=''
> +    ECHO_C=''
> +    ECHO_N='-n'
>  else
>      ECHO_C=''
>      ECHO_N='-n'
>
> Any idea why this does fail? My build system is openSuse Leap 15.2, 
> running in Oracle VirtualBox on Windows.
>
> Regards,
> Hartmut
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

--- a/src/gen-lock-obj.sh   2021-03-04 11:05:29.000000000 +0100
+++ b/src/gen-lock-obj.sh   2021-05-13 08:14:52.675832305 +0200
@@ -39,8 +39,8 @@ 
  #

  if test -n `echo -n`; then
-    ECHO_C='\c'
-    ECHO_N=''
+    ECHO_C=''
+    ECHO_N='-n'
  else
      ECHO_C=''
      ECHO_N='-n'