Mailing List Archive

gpg 2.2.8: mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared
Hmm, did I do something wrong?

mainproc.c: In function 'proc_encrypted':
mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared (first use in this function)

That macro doesn't seem to be defined anywhere in this source code
(does it rely on some include file from some other lib*?)

Maybe it should be this:

--- g10/mainproc.c- Fri Jun 8 07:20:01 2018
+++ g10/mainproc.c Fri Jun 8 07:20:12 2018
@@ -683,7 +683,7 @@
* are rare in practice we print a hint on how to decrypt
* such messages. */
log_string
- (GPGRT_LOGLVL_INFO,
+ (GPGRT_LOG_INFO,
_("Hint: If this message was created before the year 2003 it is\n"
"likely that this message is legitimate. This is because back\n"
"then integrity protection was not widely used.\n"));

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: gpg 2.2.8: mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared [ In reply to ]
Hi,

On 06/08/2018 03:27 PM, Claus Assmann wrote:
> Hmm, did I do something wrong?
>
> mainproc.c: In function 'proc_encrypted':
> mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared (first use in this function)
>
> That macro doesn't seem to be defined anywhere in this source code
> (does it rely on some include file from some other lib*?)

It is defined in libgpg-error. You need at least libgpg-error >= 1.28.


Damien
Re: gpg 2.2.8: mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared [ In reply to ]
On 06/08/2018 04:40 PM, Damien Goutte-Gattat via Gnupg-devel wrote:
> Hi,
>
> On 06/08/2018 03:27 PM, Claus Assmann wrote:
>> Hmm, did I do something wrong?
>>
>> mainproc.c: In function 'proc_encrypted':
>> mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared (first use in this function)
>>
>> That macro doesn't seem to be defined anywhere in this source code
>> (does it rely on some include file from some other lib*?)
>
> It is defined in libgpg-error. You need at least libgpg-error >= 1.28.

Thank you both for the heads up, the configure.ac file needs to be
updated to reflect this updated min requirement, but increased the
package manager dependency now so will at least avoid downstream bug
reports :)


--
----------------------------
Kristian Fiskerstrand
Blog: https://blog.sumptuouscapital.com
Twitter: @krifisk
----------------------------
Public OpenPGP keyblock at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3
----------------------------
Ad astra per aspera
To the stars through thorns
Re: gpg 2.2.8: mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared [ In reply to ]
On Fri, Jun 08, 2018, Damien Goutte-Gattat via Gnupg-devel wrote:

> > mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared (first use in this function)

> It is defined in libgpg-error. You need at least libgpg-error >= 1.28.

Hmm, all the other calls use GPGRT_LOG_*, not GPGRT_LOGLVL_*

./g10/keyedit.c: ? GPGRT_LOG_INFO : GPGRT_LOG_ERROR,
./g10/call-agent.c: GPGRT_LOG_INFO : GPGRT_LOG_ERROR,
./g10/tofu.c: log_string (GPGRT_LOG_INFO, msg);
./g10/tofu.c: log_string (GPGRT_LOG_INFO, text);
./sm/certchain.c: log_logv (is_error? GPGRT_LOG_ERROR: GPGRT_LOG_INFO, format, arg_ptr);
./dirmngr/dirmngr.c: log_logv_with_prefix (GPGRT_LOG_INFO, "ntbtls: ", fmt, argv);
./kbx/kbxutil.c: case GCRY_LOG_INFO: level = GPGRT_LOG_INFO; break;
./common/logging.h: GPGRT_LOG_INFO,
./common/miscellaneous.c: case GCRY_LOG_INFO: level = GPGRT_LOG_INFO; break;
./common/logging.c: case GPGRT_LOG_INFO: break;
./common/logging.c: do_logv (GPGRT_LOG_INFO, 0, NULL, NULL, fmt, arg_ptr);

and log_string() is defined common/logging.c, so using a different
"value" doesn't seem to make much sense... (but I don't the source
well enough).

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: gpg 2.2.8: mainproc.c:686: error: 'GPGRT_LOGLVL_INFO' undeclared [ In reply to ]
On Fri, 8 Jun 2018 16:40, gnupg-devel@gnupg.org said:

> It is defined in libgpg-error. You need at least libgpg-error >= 1.28.

The fun of merging. Master is prepared to work with a newer
libgpg-error but 2.2 is not. I missed this when cherry picking.

Urgs. Looks like a 2.2.9 tomorrow.


Shalom-Salam,

Werner

--
# Please read: Daniel Ellsberg - The Doomsday Machine #
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.