pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: print/hplip error: CoreFoundation/CFPlugInCOM.h: No such file



On Thu, Mar 12, 2020 at 09:58:12AM +0530, Mayuresh wrote:
> Here is the code in question. Probably __linux__ needs to be defined for
> NetBSD?

The error just shifts after that:

Has anyone managed to get hplip working of late, on NetBSD?

In file included from scan/sane/hpaio.h:32:0,
                 from scan/sane/hpaio.c:43:
scan/sane/common.h:191:1: warning: 'visibility' attribute ignored on
non-class types [-Wattributes]
 char* __attribute__ ((visibility ("hidden"))) itoa(int value, char* str,
int radix);
 ^~~~
In file included from scan/sane/OrbliteScan/MacCommon.h:12:0,
                 from scan/sane/orblitei.h:9,
                 from scan/sane/hpaio.h:36,
                 from scan/sane/hpaio.c:43:
scan/sane/OrbliteScan/LinuxCommon.h:21:9: error: unknown type name
'__S64_TYPE'
 typedef __S64_TYPE   SInt64;^M
         ^~~~~~~~~~
scan/sane/OrbliteScan/LinuxCommon.h:22:9: error: unknown type name
'__U64_TYPE'
 typedef __U64_TYPE   UInt64;^M
         ^~~~~~~~~~
scan/sane/OrbliteScan/LinuxCommon.h:23:9: error: unknown type name
'__S64_TYPE'
 typedef __S64_TYPE   int64_t;^M
         ^~~~~~~~~~
scan/sane/OrbliteScan/LinuxCommon.h:23:22: error: conflicting types for
'int64_t'
 typedef __S64_TYPE   int64_t;^M
                      ^~~~~~~
In file included from /usr/include/stdlib.h:41:0,
                 from scan/sane/hpaio.c:35:
/usr/include/sys/types.h:84:19: note: previous declaration of 'int64_t'
was here
 typedef __int64_t int64_t;
                   ^~~~~~~
In file included from scan/sane/OrbliteScan/MacCommon.h:12:0,
                 from scan/sane/orblitei.h:9,
                 from scan/sane/hpaio.h:36,
                 from scan/sane/hpaio.c:43:
scan/sane/OrbliteScan/LinuxCommon.h:24:9: error: unknown type name
'__U64_TYPE'
 typedef __U64_TYPE   uint64_t;^M
         ^~~~~~~~~~
scan/sane/OrbliteScan/LinuxCommon.h:24:22: error: conflicting types for
'uint64_t'
 typedef __U64_TYPE   uint64_t;^M
                      ^~~~~~~~
In file included from /usr/include/stdlib.h:41:0,
                 from scan/sane/hpaio.c:35:
/usr/include/sys/types.h:89:20: note: previous declaration of 'uint64_t'
was here
 typedef __uint64_t uint64_t;
                    ^~~~~~~~
scan/sane/hpaio.c: In function 'GetCupsPrinters':
scan/sane/hpaio.c:197:4: warning: 'httpConnectEncrypt' is deprecated: Use
httpConnect2 instead. [-Wdeprecated-declarations]
    if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
cupsEncryption())) == NULL)
    ^~
In file included from
/usr/pkgsrc/print/hplip/work/.buildlink/include/cups/ipp.h:18:0,
                 from
/usr/pkgsrc/print/hplip/work/.buildlink/include/cups/cups.h:27,
                 from scan/sane/hpaio.c:37:
/usr/pkgsrc/print/hplip/work/.buildlink/include/cups/http.h:458:17: note:
declared here
 extern http_t  *httpConnectEncrypt(const char *host, int port,
http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2
instead.");
                 ^~~~~~~~~~~~~~~~~~
scan/sane/hpaio.c:225:116: warning: passing argument 1 of 'AddCupsList'
discards 'const' qualifier from pointer target type
[-Wdiscarded-qualifiers]
          if (strcmp(ippGetName( attr ), "device-uri") == 0 &&
ippGetValueTag( attr ) == IPP_TAG_URI && AddCupsList(ippGetString( attr,
0, NULL ), printer) == 0)
                                                                                                                    ^~~~~~~~~~~~
scan/sane/hpaio.c:148:12: note: expected 'char *' but argument is of type
'const char *'
 static int AddCupsList(char *uri, char ***printer)
            ^~~~~~~~~~~
scan/sane/hpaio.c: In function 'DevDiscovery':
scan/sane/hpaio.c:321:22: warning: implicit declaration of function
'mdns_probe_nw_scanners' [-Wimplicit-function-declaration]
         bytes_read = mdns_probe_nw_scanners(message, sizeof(message),
&cnt);
                      ^~~~~~~~~~~~~~~~~~~~~~
scan/sane/hpaio.c: In function 'sane_hpaio_init':
scan/sane/hpaio.c:356:12: warning: implicit declaration of function
'orblite_init'; did you mean 'sane_init'?
[-Wimplicit-function-declaration]
     stat = orblite_init(pVersionCode, authorize);
            ^~~~~~~~~~~~
            sane_init
scan/sane/hpaio.c: In function 'sane_hpaio_get_devices':
scan/sane/hpaio.c:374:4: warning: implicit declaration of function
'orblite_get_devices'; did you mean 'sane_get_devices'?
[-Wimplicit-function-declaration]
    orblite_get_devices(devList, localOnly);
    ^~~~~~~~~~~~~~~~~~~
    sane_get_devices
scan/sane/hpaio.c: In function 'sane_hpaio_open':
scan/sane/hpaio.c:402:15: warning: implicit declaration of function
'orblite_open'; did you mean 'escl_open'?
[-Wimplicit-function-declaration]
        return orblite_open(devicename, pHandle);
               ^~~~~~~~~~~~
               escl_open
scan/sane/hpaio.c: In function 'sane_hpaio_close':
scan/sane/hpaio.c:422:15: warning: implicit declaration of function
'orblite_close'; did you mean 'escl_close'?
[-Wimplicit-function-declaration]
        return orblite_close(handle);
               ^~~~~~~~~~~~~
               escl_close
scan/sane/hpaio.c:422:15: warning: 'return' with a value, in function
returning void
        return orblite_close(handle);
               ^~~~~~~~~~~~~~~~~~~~~
scan/sane/hpaio.c:407:13: note: declared here
 extern void sane_hpaio_close(SANE_Handle handle)
             ^~~~~~~~~~~~~~~~
scan/sane/hpaio.c: In function 'sane_hpaio_control_option':
scan/sane/hpaio.c:472:15: warning: implicit declaration of function
'orblite_control_option'; did you mean 'escl_control_option'?
[-Wimplicit-function-declaration]
        return orblite_control_option(handle, option, action, pValue,
pInfo);
               ^~~~~~~~~~~~~~~~~~~~~~
               escl_control_option
scan/sane/hpaio.c: In function 'sane_hpaio_get_parameters':
scan/sane/hpaio.c:492:15: warning: implicit declaration of function
'orblite_get_parameters'; did you mean 'escl_get_parameters'?
[-Wimplicit-function-declaration]
        return orblite_get_parameters(handle, pParams);
               ^~~~~~~~~~~~~~~~~~~~~~
               escl_get_parameters
scan/sane/hpaio.c: In function 'sane_hpaio_start':
scan/sane/hpaio.c:512:15: warning: implicit declaration of function
'orblite_start'; did you mean 'escl_start'?
[-Wimplicit-function-declaration]
        return orblite_start(handle);
               ^~~~~~~~~~~~~
               escl_start
scan/sane/hpaio.c: In function 'sane_hpaio_read':
scan/sane/hpaio.c:533:15: warning: implicit declaration of function
'orblite_read'; did you mean 'escl_read'?
[-Wimplicit-function-declaration]
        return orblite_read(handle, data, maxLength, pLength);
               ^~~~~~~~~~~~
               escl_read
scan/sane/hpaio.c: In function 'sane_hpaio_cancel':
scan/sane/hpaio.c:555:15: warning: implicit declaration of function
'orblite_cancel'; did you mean 'escl_cancel'?
[-Wimplicit-function-declaration]
        return orblite_cancel(handle);
               ^~~~~~~~~~~~~~
               escl_cancel
scan/sane/hpaio.c:555:15: warning: 'return' with a value, in function
returning void
        return orblite_cancel(handle);
               ^~~~~~~~~~~~~~~~~~~~~~
scan/sane/hpaio.c:540:13: note: declared here
 extern void sane_hpaio_cancel( SANE_Handle handle )
             ^~~~~~~~~~~~~~~~~
gmake: *** [Makefile:6712: libsane_hpaio_la-hpaio.lo] Error 1



Home | Main Index | Thread Index | Old Index