Package Details: cups-bjnp 2.0.3-3

Git Clone URL: (read-only, click to copy)
Package Base: cups-bjnp
Description: CUPS back-end for the canon printers using the proprietary USB over IP BJNP protocol
Upstream URL:
Licenses: GPL
Submitter: None
Maintainer: guoxh
Last Packager: guoxh
Votes: 58
Popularity: 0.121087
First Submitted: 2008-11-29 06:34 (UTC)
Last Updated: 2022-05-27 09:07 (UTC)

Latest Comments

piater commented on 2022-05-28 07:37 (UTC)

@dreieck: I got the same error. To me, writing 1 byte into a region of size 0 looks like a scary bug, and the fact that LTO stumbles over it prompted me to try turning this off first. But the real issue and why it is not flagged without LTO merit further investigation.

dreieck commented on 2022-05-27 16:16 (UTC)

I think somewhere an option -Wno-error=stringop-overflow= or just a general -Wno-error needs to be explicitly added to the gcc options (i.e. the CFLAGS/ CXXFLAGS). I get a -Werror=stringop-overflow= compilation error, and I have not set manually any -Werror option:

gcc -Wall  -Werror  -g0 -march=x86-64 -mtune=native -O3 -flto -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC  -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o bjnp bjnp-bjnp.o bjnp-bjnp-runloop.o bjnp-bjnp-io.o bjnp-bjnp-debug.o bjnp-bjnp-utils.o bjnp-bjnp-discover.o bjnp-bjnp-commands.o bjnp-bjnp-levels.o -lcups 
In function ‘bjnp_backendGetDeviceID’,
    inlined from ‘bjnp_backendRunLoop’ at bjnp-runloop.c:256:29,
    inlined from ‘main’ at bjnp.c:394:18:
bjnp-io.c:505:31: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  505 |     device_id[device_id_size] = '\0';
      |                               ^
bjnp-runloop.c: In function ‘main’:
bjnp-runloop.c:74:10: note: at offset 1024 into destination object ‘dev_id’ of size 1024
   74 |     char dev_id[BJNP_IEEE1284_MAX];       /* IEEE1284 device id */
      |          ^
In function ‘bjnp_backendGetDeviceID’,
    inlined from ‘bjnp_backendRunLoop’ at bjnp-runloop.c:256:29,
    inlined from ‘main’ at bjnp.c:394:18:
bjnp-io.c:508:33: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  508 |     make_model[make_model_size] = '\0';
      |                                 ^
bjnp-runloop.c: In function ‘main’:
bjnp-runloop.c:73:10: note: at offset 64 into destination object ‘model’ of size 64
   73 |     char model[BJNP_MODEL_MAX];           /* printer make & model */
      |          ^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed

For me the problem was mitigated with adding

  CFLAGS+=' -Wno-error'
  CXXFLAGS+=' -Wno-error'
  export CFLAGS
  export CXXFLAGS

before the ./configure call.

Btw., I could compile it with LTO.

Thanks for maintaining!

piater commented on 2022-05-27 08:17 (UTC)

Compilation fails with LTO enabled (which is the default, at least on my system). A workaround is to add the line "options=('!lto')" to the PKGBUILD.

ported commented on 2019-07-28 18:29 (UTC)

Compiling on GCC 8.1+ is fixed, many thanks to @ThoSTe and sorry for the delay.

ThoSTe commented on 2019-07-16 08:00 (UTC)

When I try to install the package I get a compile warning/error. (

This can be avoided by disabling Werror complie option in PKBUILD ./configure --prefix='/usr' --disable-Werror

brice83 commented on 2014-09-07 19:42 (UTC)

vesion 2 released in sourcefore

alucryd commented on 2013-03-16 08:59 (UTC)

tomxtobin: Thx, new package is up.

commented on 2013-03-15 16:19 (UTC)

Version 1.2.1 is available.

alucryd commented on 2012-12-19 08:25 (UTC)

@tomxtobin: Thx! Package updated.

commented on 2012-12-19 03:03 (UTC)

Version 1.2 is available.

alucryd commented on 2012-11-15 15:17 (UTC)

Woops, bjnp needs to be executable.

commented on 2012-07-06 09:55 (UTC)

no more canon ...

commented on 2012-06-16 18:08 (UTC)

Never mind. It was easy enough to download it directly from Sourceforge and compile and install it.

commented on 2012-06-16 17:18 (UTC)

I have tries this twice, today. "makepkg -s" results in: ==> Validating source files with md5sums... cups-bjnp-1.0.tar.gz ... FAILED ==> ERROR: One or more files did not pass the validity check! Is this package still good? Thanks.

Blubaur commented on 2011-07-07 12:19 (UTC)

does bjnp itself call 'pstoraster'? It seems to not exist in cups anymore, and when I try to print something I get Unable to execute /usr/lib/cups/filter/pstoraster: No such file or directory