Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653172 - net-print/cnijfilter-3.80-r2::bar failed to compile
Summary: net-print/cnijfilter-3.80-r2::bar failed to compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tokiclover
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-14 19:13 UTC by destroyedlolo
Modified: 2019-05-05 02:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cnijfilter-3.80-r2.ebuild.patch (cnijfilter-3.80-r2.ebuild.patch,571 bytes, patch)
2019-05-04 22:12 UTC, Evert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description destroyedlolo 2018-04-14 19:13:31 UTC
Hi all,

net-print/cnijfilter-3.80-r2::bar failed to compile with the following errors :

x86_64-pc-linux-gnu-gcc  -O2 -L../../405/libs_bin64 -Wl,-O1 -Wl,--as-needed -o cif bjferror.o bjfilter.o bjfimage.o bjfoption.o bjfpos.o bjfrcaccess.o getipc.o bjflist.o -lcnbpcmcm405 -lcnbpess405 -lm -ldl -ltiff -lpng -lcnbpcnclapi405 -lcnbpcnclbjcmd405 -lcnbpcnclui405 -lpopt 
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpcmcm405
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpess405
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:361: cif] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.80-r2/work/cnijfilter-3.80/mg4200/cnijfilter/src'

but guilty files exists :

PSet /var/tmp/portage/net-print/cnijfilter-3.80-r2 # find . -name '*cnbpcmcm405*'
./work/cnijfilter-3.80/405/libs_bin64/libcnbpcmcm405.so
./work/cnijfilter-3.80/405/libs_bin64/libcnbpcmcm405.so.8.10.1
./work/cnijfilter-3.80/405/libs_bin32/libcnbpcmcm405.so
./work/cnijfilter-3.80/405/libs_bin32/libcnbpcmcm405.so.8.10.1

My system is :

$ emerge --info
Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-5.4.0, glibc-2.25-r10, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:     8093340 total,   5744124 free
KiB Swap:     524284 total,    524284 free
Timestamp of repository gentoo: Fri, 23 Mar 2018 13:00:01 +0000
Head commit of repository gentoo: 7a47296aa274c077f413f1523a18e814bd3fc61c
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://torchwood.local/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

crossdev
    location: /usr/local/portage
    masters: gentoo

bar
    location: /var/lib/layman/bar
    sync-type: laymansync
    sync-uri: https://github.com/tokiclover/bar-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en"
MAKEOPTS="-j8 -l9.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi avcodec avformat berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvbpsi dvd dvdr emboss encode exif fam ffmpeg flac fontconfig fortran frei0r gcrypt gdbm gif glamor gpm gtk gtk3+ httpd iconv jpeg jpeg2k lcms ldap libcaca libnotify lm_sensors lua mad matroska mng modules mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 readline sdl seccomp smp spell ssl startup-notification svg swscale tcpd theora tiff truetype udev udisks unicode upower usb v4l vlm vorbis wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics joystick keyboard mouse" KERNEL="linux" L10N="fr en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Thanks

Laurent
Comment 1 Jonas Stein gentoo-dev 2018-08-16 17:37:17 UTC
sent ping to him on github https://github.com/tokiclover/bar-overlay/issues/36
Comment 2 tokiclover 2018-09-02 19:48:46 UTC
I've looked the other day and everything seems fine. The library are named with printer ID and this may confuse ld(1) when linking. The versioned library are symlinked to the library. So, it should work as before. I will look at it again when I have some free time.

Sorry for the delay.
Comment 3 Evert 2019-05-04 22:12:49 UTC
Created attachment 575224 [details, diff]
cnijfilter-3.80-r2.ebuild.patch

Compilation for mg4200 fixed, see attachment for the patch.
However, after using this patch, you will bumb into the same issue as bug #685038.

I suggest you apply the attached ebuild patch and install the modified eclass/ecnij.eclass from bug #685038 or you will end up missing a lot of files.

Note: I don't have a mg4200, I just wanted to try my modified eclass on a different cnijfilter version and my presumption appears to be true; the broken ecnij.eclass affects other cijfilter versions too.

@Tokiclover: Can you apply the attached patch please and take a look into bug #685038. It will simply be a copy, patch & git commit ;-)
Comment 4 Evert 2019-05-05 00:10:03 UTC
@Tokiclover

You may also want to take a look at cnijfilter-3.90-r2.ebuild
According to README and maintenance/configure.in
-PRINTER_MODEL=( "mx720" "mx920" "mx390" "mx450" "mx520" "e660" )
+PRINTER_MODEL=( "mx720" "mx920" "mx390" "mx450" "mx520" "e610" )
Comment 5 Evert 2019-05-05 02:06:34 UTC
also cnijfilter-3.80-r2.ebuild:
-PRINTER_MODEL=( "mp430" "mg2200" "e510" "mg3200" "mg4200" "ip7200" "mg5400" "mg6300" )
+PRINTER_MODEL=( "mp230" "mg2200" "e510" "mg3200" "mg4200" "ip7200" "mg5400" "mg6300" )
including the patch above:
-PRINTER_ID=( "401" "402" "403" "405" "406" "407" "408" )
+PRINTER_ID=( "401" "402" "403" "404" "405" "406" "407" "408" )