cups-client broken on ia64, blocks 70 ports, please help
Boris Samorodov
bsam at passap.ru
Fri Apr 4 16:14:55 UTC 2014
04.04.2014 16:42, Anton Shterenlikht пишет:
>>From bsam at passap.ru Fri Apr 4 11:55:13 2014
>> 04.04.2014 12:07, Anton Shterenlikht аПаИбаЕб:
>>>
>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=188161
>>>
>>> Compiling adminutil.c...
>>> cc -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -I.. -D_CUPS_SOURCE -I/usr/local/include -O2 -pipe -fno-strict-aliasing -DOPENSSL_DISABLE_OLD_DES_SUPPORT -D_LARGEFILE_SOURCE -D_THREAD_SAFE -D_REENTRANT -D_CUPS_NO_DEPRECATED=1 -D_PPD_DEPRECATED="" -c -o adminutil.o adminutil.c
>>> adminutil.c:1: warning: -fstack-protector not supported for this target
>>> In file included from pwg-private.h:25,
>>> from cups-private.h:31,
>>> from adminutil.c:33:
>>> ../cups/cups.h:34:35: error: dispatch/dispatch.h: No such file or directory
>>
>> Hm. cups/cups.h has the following code:
>> -----
>> # ifdef __BLOCKS__
>> # include <dispatch/dispatch.h>
>> # endif /* __BLOCKS__ */
>> -----
>>
>> It seems that the whole dispath is an Apple thing. How does it come
>> about that it get used by FreeBSD? I think this check may be removed.
>>
>> Anyway please try the following patch (place it in to the
>> print/cups/file directory -- mind print/cups origin,
>> not print/cups-client) and retry:
>> ftp://ftp.wart.ru/pub/misc/patch-cups-cups.h
>
> did you mean print/cups-base/files?
>
> If I put it under print/cups/files it makes
> no difference, but if I put the patch under
> print/cups-base/files, then cups-client and
> cups-image do build and install.
>
> Will you commit the patch?
OK, I've got a patch that may be committed. It's just a band-aid
for now, until a better patch using clang and gcc, blocks and
libdispatch with different FreeBSD versions is created.
Anton, can you test the patch (remove the previous one from
cups-base/files)? Thank you.
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
-------------- next part --------------
Index: cups-base/Makefile
===================================================================
--- cups-base/Makefile (revision 350133)
+++ cups-base/Makefile (working copy)
@@ -82,6 +82,7 @@
INSTALL_WRKSRC= ${WRKSRC}/cups
PLIST= ${MASTERDIR}/pkg-plist.client
USES+= iconv
+CFLAGS+= -fno-blocks
LDFLAGS+= ${ICONV_LIB}
USE_LDCONFIG= yes
PKGMESSAGE= ${NONEXISTENT}
More information about the freebsd-ports
mailing list