[MOD] STR #4060: Compilation of cups-1.5.2 fails with --disable-threads

Andreas K. H??ttel <[email protected]>
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

This is a clone of https://bugs.gentoo.org/show_bug.cgi?id=401323

When passing --disable-threads, compilation fails reproducibly with

Making all in cups...
Compiling adminutil.c...
In file included from cups-private.h:33:0,
                 from adminutil.c:33:
thread-private.h:87:50: error: expected ')' before 'func'
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
make[1]: *** [adminutil.o] Error 1
make: *** [all] Error 1

Looking at the source line, 
extern int      _cupsThreadCreate(_cups_thread_func_t func, void *arg);
tries to use _cups_thread_func_t, which is as far as I understand defined
inside #ifdef HAVE_PTHREAD_H ...

For more info see the link above

Link: http://www.cups.org/str.php?L4060
Version: 1.5.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.