Building from sources failed

50 views
Skip to first unread message

Slawomir Pryczek

unread,
Feb 14, 2023, 9:45:52 AM2/14/23
to memcached
Hi Guys, any idea why building is failing for me under Fedora 37?

Im following this script. For other OSes i was always able to build now it makes issues.

--------------------------------------------------------------
In file included from memcached.h:51,
                 from memcached.c:16:
logger.h:59:86: error: unknown type name ‘va_list’
   59 | cb)(logentry *e, const entry_details *d, const void *entry, va_list ap);
      |                                                             ^~~~~~~

logger.h:6:1: note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget                                                                              to ‘#include <stdarg.h>’?
    5 | #include "bipbuffer.h"
  +++ |+#include <stdarg.h>
    6 |
logger.h:65:5: error: unknown type name ‘entry_log_cb’
   65 |     entry_log_cb log_cb;
      |     ^~~~~~~~~~~~
memcached.c:97:33: error: unknown type name ‘evutil_socket_t’
   97 | static void event_handler(const evutil_socket_t fd, const short which, v                                                                             oid *arg);
      |                                 ^~~~~~~~~~~~~~~
memcached.c:158:36: error: unknown type name ‘evutil_socket_t’
  158 | static void maxconns_handler(const evutil_socket_t fd, const short which                                                                             , void *arg) {
      |                                    ^~~~~~~~~~~~~~~
memcached.c:3392:26: error: unknown type name ‘evutil_socket_t’
 3392 | void event_handler(const evutil_socket_t fd, const short which, void *ar                                                                             g) {
      |                          ^~~~~~~~~~~~~~~
memcached.c:3923:33: error: unknown type name ‘evutil_socket_t’
 3923 | static void clock_handler(const evutil_socket_t fd, const short which, v                                                                             oid *arg) {
      |                                 ^~~~~~~~~~~~~~~
----------------------------------------------------------

Thanks,
Slawomir.

dormando

unread,
Feb 15, 2023, 5:53:34 PM2/15/23
to memcached
Hey,

Sometimes newer compilers are more strict.

What version are you trying to build? Did any previous version work or
does everything fail on Fedora 37?

I don't know about that evutil_socket_t error though.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/14f1652f-2ca8-4f6b-aaad-2bb2d924f94an%40googlegroups.com.
>
>

Slawomir Pryczek

unread,
Feb 16, 2023, 5:38:45 PM2/16/23
to memcached
Hi Dormando, thanks for the message actually figured it out. It was some libevent incompatibilit ( probably wrong version).
Reply all
Reply to author
Forward
0 new messages