Closed pgnd closed 3 months ago
Maybe you should build and link against pappl-1.4.x.
Note that up to now pappl-retrofit got only tested against PAPPL 1.4.x. PAPPL 2.x as a new API generation has changes in the API and support this needs to get added to pappl-retrofit.
@tillkamppeter
can you confirm which version of PAPPL the cups3 snaps are currently built with? sounds like !v2x, but v1x ...
Which "cups3 Snaps"?
Generally, to know hat a Snap is composed of, check the Snap's GIT repository and see the snapcraft.yaml
.
Which "cups3 Snaps"?
and there's the basis for my self-inflicted problems.
i misunderstood that the cups snaps WERE 'cups3', based on libcup3/pappl2 already. my bad; not the case, yet.
The current CUPS Snap (repository "cups-snap") is the current stable CUPS 2.x release, 2.4.7. The Snap gets automatically updated every time if one of its components has a new release, but generation changes (for example CUPS 2.x -> 3.x) are excluded from auto-updating.
is the current stable CUPS 2.x release, 2.4.7
thx for the clarification.
i'd already tried a build against the 2x-family master branch(es)
i got through the prereqs ok, but @ pappl-retrofit, still
./configure ...
...
==============================================================================
Environment settings:
CFLAGS: -I. -I/builddir/build/BUILD/work.out/include -I/usr/local/include -I/usr/include -Wall -std=gnu11 -D_GNU_SOURCE
LDFLAGS: -L/builddir/build/BUILD/work.out/lib64 -L/usr/local/lib64 -L/usr/lib64 -lcrypto -lssl
Build configuration:
libcups: 2.5b1
cups-config: system
legacy-printer-app as daemon: yes
legacy-printer-app w/ PAPPL backends: yes
systemd unitdir: /usr/lib/systemd/system
log file: -
server options: multi-queue,web-interface
auth service: none
admin group: none
==============================================================================
make
...
config.status: creating config.h
config.status: config.h is unchanged
CC pappl-retrofit/libpappl_retrofit_la-pappl-retrofit.lo
CC legacy/printer_app-legacy-printer-app.o
CC pappl-retrofit/libpappl_retrofit_la-print-job.lo
CC pappl-retrofit/libpappl_retrofit_la-cups-backends.lo
CC pappl-retrofit/libpappl_retrofit_la-web-interface.lo
In file included from legacy/legacy-printer-app.c:19:
./pappl-retrofit/libcups2-private.h:62:6: error: redeclaration of ‘enum http_resolve_e’
62 | enum http_resolve_e // @link httpResolveURI@ options bit values
| ^~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/work.out/include/cups/ipp.h:14,
from /builddir/build/BUILD/work.out/include/cups/cups.h:23,
from /builddir/build/BUILD/work.out/include/pappl/base.h:12,
from /builddir/build/BUILD/work.out/include/pappl/device.h:12,
from /builddir/build/BUILD/work.out/include/pappl/pappl.h:12,
from ./pappl-retrofit/pappl-retrofit.h:21,
from legacy/legacy-printer-app.c:18:
/builddir/build/BUILD/work.out/include/cups/http.h:185:6: note: originally defined here
185 | enum http_resolve_e // @link httpResolveURI@ options bit values
| ^~~~~~~~~~~~~~
./pappl-retrofit/libcups2-private.h:64:3: error: redeclaration of enumerator ‘HTTP_RESOLVE_DEFAULT’
64 | HTTP_RESOLVE_DEFAULT = 0, // Resolve with default options
| ^~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/work.out/include/cups/http.h:187:3: note: previous definition of ‘HTTP_RESOLVE_DEFAULT’ with type ‘enum http_resolve_e’
187 | HTTP_RESOLVE_DEFAULT = 0, // Resolve with default options
| ^~~~~~~~~~~~~~~~~~~~
./pappl-retrofit/libcups2-private.h:65:3: error: redeclaration of enumerator ‘HTTP_RESOLVE_FQDN’
65 | HTTP_RESOLVE_FQDN = 1, // Resolve to a FQDN
| ^~~~~~~~~~~~~~~~~
/builddir/build/BUILD/work.out/include/cups/http.h:188:3: note: previous definition of ‘HTTP_RESOLVE_FQDN’ with type ‘enum http_resolve_e’
...
i'll explore the snap build further, AND drop further back to the stable releases, and give that a try.
generation changes (for example CUPS 2.x -> 3.x) are excluded from auto-updating
noted.
closing this for now.
on the way to building snap-less cups3 hplip-printer-app on linux, i've built & installed
installed tree,
next, attempting build of
build fails at
with
where (automatically set),
cc: @metabiswadeep