Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193690 - sci-electronics/oregano - print.c:280: error: ‘paper’ undeclared (first use in this function)
Summary: sci-electronics/oregano - print.c:280: error: ‘paper’ undeclared (first use i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
: 248353 249812 273256 (view as bug list)
Depends on:
Blocks: 325169
  Show dependency tree
 
Reported: 2007-09-24 22:00 UTC by craven
Modified: 2010-07-24 06:23 UTC (History)
11 users (show)

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


Attachments
oregano-0.40.5-gnomeprint.patch (oregano-0.40.5-gnomeprint.patch,324 bytes, patch)
2008-01-15 22:05 UTC, Fabio Rossi
Details | Diff
build.log sci-electronics/oregano-0.40.5 from Teun (build.log,38.21 KB, text/plain)
2008-04-09 20:52 UTC, Teun Blok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description craven 2007-09-24 22:00:48 UTC
sci-electronics/oregano-0.40.5 and sci-electronics/oregano-0.60.0 are not compatible to the versions of gnome-base/libgnomeprint available in portage

the file src/print.c uses the type GnomePrintPaper but does not include the needed header. Inserting the line

#include <libgnomeprint/gnome-print-paper.h>

at the top of the file fixes the problems. There is a new version of oregano (0.69.0) that is not yet in portage but still suffers from the same problem.
Comment 1 Fabio Rossi 2008-01-15 22:05:40 UTC
Created attachment 141010 [details, diff]
oregano-0.40.5-gnomeprint.patch

Yes, oregano compiles with the suggested patch :-)
Comment 2 Niklas Närhinen 2008-01-20 05:27:45 UTC
also -0.60.0 compiles fine with this patch. (Fails without it).
Comment 3 Charles Stewart 2008-04-09 06:07:02 UTC
What's a man gotta do to get this patch submitted to CVS?
Comment 4 Teun Blok 2008-04-09 20:51:19 UTC
sci-electronics/oregano-0.40.5 does not compile on my x86 also.
I included the message i received, buildlog (attachement) and emerge info.



This is the message i received:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DGNOMELOCALEDIR=\""/usr/share/locale"\" 		-I/usr/include 		  -DOREGANO_GLADEDIR=\""/usr/share/oregano/glade"\"	  -DOREGANO_LIBRARYDIR=\""/usr/share/oregano/libraries"\" 	-DOREGANO_MODELDIR=\""/usr/share/oregano/models"\" 	-DDATADIR=\""/usr/share"\" 	-DORBIT2=1 -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/gtksourceview-1.0 -I/usr/include/libgnomeprintui-2.2      -march=pentium4 -O3 -pipe -c save-schematic.c
print.c:166: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
print.c: In function ‘print_schematic’:
print.c:280: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
print.c:280: error: ‘paper’ undeclared (first use in this function)
print.c:280: error: (Each undeclared identifier is reported only once
print.c:280: error: for each function it appears in.)
make[3]: *** [print.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/sci-electronics/oregano-0.40.5/work/oregano-0.40.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-electronics/oregano-0.40.5/work/oregano-0.40.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-electronics/oregano-0.40.5/work/oregano-0.40.5'
make: *** [all-recursive-am] Error 2
 * 
 * ERROR: sci-electronics/oregano-0.40.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2045:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-electronics/oregano-0.40.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/oregano-0.40.5/temp/environment'.
 * 

 * Messages for package sci-electronics/oregano-0.40.5:

 * 
 * ERROR: sci-electronics/oregano-0.40.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2045:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-electronics/oregano-0.40.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/oregano-0.40.5/temp/environment'.
 * 
#





My emerge info is:

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Timestamp of tree: Wed, 09 Apr 2008 15:04:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apache2 arts asf avahi berkdb cairo cdda cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss other_var1 other_var2 pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl session spell spl sse sse2 ssl svg tcpd tiff truetype unicode usb v4l v4l2 vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa fbdev v4l v4l2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Teun Blok 2008-04-09 20:52:41 UTC
Created attachment 149235 [details]
build.log sci-electronics/oregano-0.40.5 from Teun
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-05 01:07:39 UTC
*** Bug 248353 has been marked as a duplicate of this bug. ***
Comment 7 Rafał Mużyło 2008-12-05 02:10:47 UTC
*** Bug 249812 has been marked as a duplicate of this bug. ***
Comment 8 Sebastian Luther (few) 2009-06-09 08:11:58 UTC
*** Bug 273256 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Beierlein gentoo-dev 2010-06-23 20:00:40 UTC
oregano-0.69.0 compiles without problems on stable as well as on unstable amd64 chroot.

Looking into it, there is no print.c at all and no reference to the mentioned functions and header files. Printing works as expected. 
Comment 10 Thomas Beierlein gentoo-dev 2010-07-24 06:23:58 UTC
(In reply to comment #9)
> oregano-0.69.0 compiles without problems on stable as well as on unstable amd64
> chroot.
> 
> Looking into it, there is no print.c at all and no reference to the mentioned
> functions and header files. Printing works as expected. 
> 
Closing as oregano-0.69.0 is stable for all arches.