Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96383 - net-print/omni-0.9.1 fails to compile
Summary: net-print/omni-0.9.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Other
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 07:28 UTC by Andrés Becerra Sandoval
Modified: 2005-07-13 10:47 UTC (History)
1 user (show)

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


Attachments
omni-0.9.1.ebuild.patch (omni-0.9.1.patch,368 bytes, patch)
2005-06-26 13:34 UTC, Stian Skjelstad
Details | Diff
omni-0.9.1.errno.patch (omni-0.9.1.errno.patch,454 bytes, patch)
2005-06-27 07:59 UTC, Stian Skjelstad
Details | Diff
Omni-0.9.1.cxx.patch (Omni-0.9.1.cxx.patch,493 bytes, patch)
2005-06-27 16:48 UTC, Stian Skjelstad
Details | Diff
Omni-0.9.1.cxx.patch (Omni-0.9.1.cxx.patch,436 bytes, patch)
2005-07-10 09:08 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2005-06-17 07:28:50 UTC
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
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2005-06-17 08:04:40 UTC
what about omni-0.9.2? 
Comment 2 Andrés Becerra Sandoval 2005-06-17 08:35:55 UTC
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
Comment 3 Stian Skjelstad 2005-06-17 09:16:23 UTC
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.
Comment 4 Andrés Becerra Sandoval 2005-06-17 09:22:07 UTC
I tried :
LANG=C emerge net-print/omni
and I get the same error, autoconf is 2.59
Comment 5 Stian Skjelstad 2005-06-17 09:23:46 UTC
Can you glue in the output from autoconf --version (so I can run the same test
as the script does).
Comment 6 Stian Skjelstad 2005-06-17 09:29:24 UTC
LANG=C LC_ALL=C emerge net-print/omni

forgot about LC_ALL (don't use locales much myself)
Comment 7 Andrés Becerra Sandoval 2005-06-17 09:58:09 UTC
With LANG=C LC_ALL=C  emerge net-print/omni
I get the same errors in versions 0.9.1 and 0.9.2
Comment 8 Stian Skjelstad 2005-06-17 17:23:12 UTC
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.
Comment 9 Andrés Becerra Sandoval 2005-06-20 07:34:17 UTC
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'
Comment 10 Stian Skjelstad 2005-06-26 13:34:50 UTC
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.
Comment 11 Andrés Becerra Sandoval 2005-06-27 07:04:20 UTC
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.
Comment 12 Stian Skjelstad 2005-06-27 07:59:12 UTC
Created attachment 62055 [details, diff]
omni-0.9.1.errno.patch

something like this I would guess fix the errno problem
Comment 13 Andrés Becerra Sandoval 2005-06-27 09:00:19 UTC
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&)
Comment 14 Stian Skjelstad 2005-06-27 16:48:54 UTC
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.
Comment 15 Andrés Becerra Sandoval 2005-06-28 08:13:41 UTC
Thanks Stian, this patch solves the problem, do we report this issues to omni 
developers?

Comment 16 Stian Skjelstad 2005-06-28 09:25:20 UTC
That could be an idee, and for the printer herd to make a 0.9.1-r1 or 0.9.2-r1 :-p
Comment 17 Andrés Becerra Sandoval 2005-06-29 06:41:08 UTC
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?
Comment 18 Stian Skjelstad 2005-06-29 06:55:10 UTC
(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.
Comment 19 Heinrich Wendel (RETIRED) gentoo-dev 2005-07-10 08:55:08 UTC
do these patches affect 0.9.2 as well? 
 
any idea about bug #95871 
Comment 20 Stian Skjelstad 2005-07-10 09:01:49 UTC
(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.
Comment 21 Stian Skjelstad 2005-07-10 09:08:36 UTC
Created attachment 63074 [details, diff]
Omni-0.9.1.cxx.patch
Comment 22 Stian Skjelstad 2005-07-10 09:09:39 UTC
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.
Comment 23 Heinrich Wendel (RETIRED) gentoo-dev 2005-07-13 10:47:37 UTC
thx, applied