bug-mailfromd


Search for: Advanced

Re: [Bug-mailfromd] exporting metrics with declaration


> 
> > currently I am having such things on the output[1]. I am not sure if
> > the spf 0 and connect 0 should be offered when there are others that
> > are using labels.
> 
> Although the open metrics specification doesn't expressly forbid it,
> I agree that it looks rather strange.  So I fixed it in the git
> head.  Before installing it on prod, notice:
> 
> 1) A documentation is provided.  An online copy is available at
> https://www.gnu.org.ua/software/mfmod_openmetrics.  Consult it
> before proceeding.

I did a clone

git clone  https://git.gnu.org.ua/mfmod_openmetrics.git mfmod_openmetrics-0.2.1
autoreconf -f -i -s

1. I noticed that /usr/lib is now being used and not /usr/lib64

2. and I am getting this

mfmod_openmetrics.c: In function 'http_log':
mfmod_openmetrics.c:1060:35: warning: passing argument 3 of 'MHD_get_connection_values' from incompatible pointer type [-Wincompatible-pointer-types]
 1060 |                                   &reassemble_get_args, pool);
      |                                   ^~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   int (*)(void *, enum MHD_ValueKind,  const char *, const char *)
In file included from mfmod_openmetrics.c:23:
/usr/include/microhttpd.h:2714:49: note: expected 'MHD_KeyValueIterator' {aka 'enum MHD_Result (*)(void *, enum MHD_ValueKind,  const char *, const char *)'} but argument is of type 'int (*)(void *, enum MHD_ValueKind,  const char *, const char *)'
 2714 |                            MHD_KeyValueIterator iterator,
      |                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
mfmod_openmetrics.c: In function 'server_start':
mfmod_openmetrics.c:1503:32: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
 1503 |                                openmetrics_httpd_handler, NULL,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **) {aka int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)}
In file included from mfmod_openmetrics.c:23:
/usr/include/microhttpd.h:2443:45: note: expected 'MHD_AccessHandlerCallback' {aka 'enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'} but argument is of type 'int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **)' {aka 'int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'}
 2443 |                   MHD_AccessHandlerCallback dh, void *dh_cls,
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~