net-print/omni-0.9.1 fails to compile Reproducible: Always Steps to Reproduce: emerge -u omni Actual Results: Copying: libxml/UPDFFontParser.cpp Copying: libxml/XmlFile.hpp Copying: libxml/XmlFile.cpp Error: The current automake version is for. Please install version 2.52 or greater make: Entering directory `/var/tmp/portage/omni-0.9.1/work/Omni/Foomatic' make: *** No hay ninguna regla para construir el objetivo `generateFoomaticData'. Alto. make: Leaving directory `/var/tmp/portage/omni-0.9.1/work/Omni/Foomatic' !!! ERROR: net-print/omni-0.9.1 failed. !!! Function src_compile, Line 44, Exitcode 2 Expected Results: omni merged Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 15:09:15)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.9.5, 1.5, 1.6.3, 1.4_p6, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -funroll-loops -fprefetch-loop- arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3. 4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config / usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/ texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/ platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -funroll-loops -fprefetch-loop- arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://10.5.27.6/gentoo http://avispa.univalle.edu.co/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/ gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn. purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp:// mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp: //ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ ftp:// gentoo.mirrors.pair.com/ http://gentoo.seren.com/gentoo rsync://gentoo.seren. com/gentoo http://cudlug.cudenver.edu/gentoo/ ftp://cudlug.cudenver.edu/pub/ mirrors/distributions/gentoo/ rsync://cudlug.cudenver.edu/gentoo http://gentoo. ccccom.com ftp://gentoo.ccccom.com http://mirrors.tds.net/gentoo ftp://mirrors. tds.net/gentoo rsync://mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp:// gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.tucdemonic.org/ gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://128.213.5. 34/gentoo/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/source rsync:// lug.mtu.edu/distfiles ftp://gentoo.agsn.ca/ http://open-systems.ufl.edu/mirrors/ gentoo" LANG="es_CO.utf8" LC_ALL="es_CO.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://lucia.puj.edu.co/portage" USE="x86 X aalib alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups curl directfb emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype- fonts type1-fonts unicode vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
what about omni-0.9.2?
with omni-0.9.2 I get: Copying: libxml/XMLInterface.hpp Copying: libxml/XMLInterface.cpp Error: The current autoconf version is 2.59. Please install version 2.52 or grea ter
Can you provide use with autoconf --version since that is what setupOmni checks. 2.52 and higher should work. If you have 2.52 or higher, try to set LANG=C and try again. If that helps, awk has a LANG issue. Might be that is uses , and not . as a decimal komma.
I tried : LANG=C emerge net-print/omni and I get the same error, autoconf is 2.59
Can you glue in the output from autoconf --version (so I can run the same test as the script does).
LANG=C LC_ALL=C emerge net-print/omni forgot about LC_ALL (don't use locales much myself)
With LANG=C LC_ALL=C emerge net-print/omni I get the same errors in versions 0.9.1 and 0.9.2
But the complete output from configure would still be nice to see, since the script that fails parses the output, and it is compared as a floating point number, so something goes wrong iaround there.. A person who knows locales/nls should look at this.
This is the complete output: Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL' You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. CONFIGURE_ARGS=" --enable-jobdialog --enable-cups --disable-static" MAKE_ARGS="" NEW_DEVICES="" BUILD_COMPILED_DEVICE=0 BUILD_XML_DEVICE=1 BUILD_UPDF_DEVICE=0 BUILD_VENDORSUPPLIED=0 BUILD_TEST_DEVICE=0 XML_DEVICELIST=Brother~ Canon~ Epson~ HP_Las erJet~ IBM~ KS~ Kyocera~ Okidata ~ Panasonic~ Star~ XML_DEVICES=Brother~ Canon~ Epson~ HP_LaserJ et~ IBM~ KS~ Kyocera~ Okidata~ Panasonic~ Star~ BUILD_DEVICES= XMLDevice~ Linking "HP LaserJet" to "HPLaserJet" Missing: Makefile.am Copying: libxml/Makefile.am Copying: libxml/Main.cpp Copying: libxml/MyErrorHandler.hpp Copying: libxml/MyErrorHandler.cpp Copying: libxml/DeviceInfo.hpp Copying: libxml/OmniDomParser.hpp Copying: libxml/OmniDomParser.cpp Missing: Makefile.am Copying: libxml/Makefile.am Copying: libxml/UPDFFontParser.hpp Copying: libxml/UPDFFontParser.cpp Copying: libxml/XmlFile.hpp Copying: libxml/XmlFile.cpp Error: The current automake version is for. Please install version 2.52 or great er make: Entering directory `/var/tmp/portage/omni-0.9.1/work/Omni/Foomatic' make: *** No hay ninguna regla para construir el objetivo `generateFoomaticData' . Alto. make: Leaving directory `/var/tmp/portage/omni-0.9.1/work/Omni/Foomatic'
Created attachment 62004 [details, diff] omni-0.9.1.ebuild.patch LC_ALL is needed to be set, also setting LC_NUMERIC (since the reporter said setting LC_ALL to C wasn't enough for him. Could reporter please try this? And if that doesn't work, please post you entire output from either #export or #set since I'm not a locale expert, and need more input then.
I applied your patch succesfully, and I was to configure Omni for compilation!, however I got the following compiler warings, and one error: cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/Ob jC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/Ob jC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ DeviceScaling.cpp: In static member function `static bool DeviceScaling::getComp onents(const char*, const char**, int*, double*)': DeviceScaling.cpp:541: error: `errno' undeclared (first use this function) DeviceScaling.cpp:541: error: (Each undeclared identifier is reported only once for each function it appears in.) Thanks.
Created attachment 62055 [details, diff] omni-0.9.1.errno.patch something like this I would guess fix the errno problem
Ok, that solves the errno issue, but there is another error: OmniPDCProxy.cpp: In member function `virtual EOMNICLASS OmniPDCProxy::getOmniCl ass()': OmniPDCProxy.cpp:790: error: no matching function for call to `PrinterCommand::g etCommandInt(int)' PrinterCommand.hpp:59: note: candidates are: bool PrinterCommand::getCommandInt( int&)
Created attachment 62118 [details, diff] Omni-0.9.1.cxx.patch This fixes the compile problem mentioned in previous comment (typecasting to int is not enough or safe if the variable doesn't match (int) in size and isn't padded.
Thanks Stian, this patch solves the problem, do we report this issues to omni developers?
That could be an idee, and for the printer herd to make a 0.9.1-r1 or 0.9.2-r1 :-p
I've sent an email to omni developers, how do we ask for 0.9.1-r1 or 0.9.2-r1 to the printing herd?
(In reply to comment #17) > I've sent an email to omni developers, how do we ask for 0.9.1-r1 or 0.9.2-r1 to > the printing herd? This bug is assigned to printing@gentoo.org, so they get an email each time somebody writes here.
do these patches affect 0.9.2 as well? any idea about bug #95871
(In reply to comment #19) > do these patches affect 0.9.2 as well? > > any idea about bug #95871 According to comment #2, you need the ebuild patch atleast. I'm looking into the other two now.
Created attachment 63074 [details, diff] Omni-0.9.1.cxx.patch
cxx and errno patch are already upstream in 0.9.2: 0.9.1 needs ebuild, errno and cxx patch 0.9.2 just needs ebuild patch.
thx, applied