Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239586 - dev-java/flyingsaucer-7 fails to build
Summary: dev-java/flyingsaucer-7 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 247975 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-04 17:48 UTC by Evil Compile Person
Modified: 2008-11-21 15:26 UTC (History)
5 users (show)

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


Attachments
Patches the deprecated getters/setters for >=dev-java/itext-2.1 (flyingsaucer-7-itext-2.1.patch,3.04 KB, patch)
2008-10-23 21:42 UTC, Arttu Valo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-10-04 17:48:38 UTC
>>> Compiling source in /var/tmp/portage/dev-java/flyingsaucer-7/work ...          
Rewriting attributes                                                               
Rewriting ./build.xml                                                              
 * Disabling all optional ANT_TASKS                                                
Buildfile: build.xml                                                               

properties:
     [echo] Loading any properties found in '/root/.flyingsaucer/flyingsaucer.build.properties'                                                                       
     [echo] Loading any properties found in '/var/tmp/portage/dev-java/flyingsaucer-7/work/build.properties'                                                          

init:
    [mkdir] Created dir: /var/tmp/portage/dev-java/flyingsaucer-7/work/build
    [mkdir] Created dir: /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes                                                                                  
    [mkdir] Created dir: /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/css                                                                    
    [mkdir] Created dir: /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/conf                                                                   
    [mkdir] Created dir: /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/schema                                                                 

resources.core:
     [copy] Copying 1 file to /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/css                                                               
     [copy] Copying 1 file to /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/conf                                                              
     [copy] Copying 85 files to /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes/resources/schema                                                          

compile:
[javac-full] Compiling 243 source files to /var/tmp/portage/dev-java/flyingsaucer-7/work/build/classes                                                                
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextFSImage.java:34: cannot find symbol                                    
[javac-full] symbol  : method plainWidth()                                         
[javac-full] location: class com.lowagie.text.Image                                
[javac-full]         return (int)_image.plainWidth();                              
[javac-full]                           ^                                           
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextFSImage.java:34: inconvertible types                                   
[javac-full] found   : com.lowagie.text.Image.plainWidth                           
[javac-full] required: int                                                         
[javac-full]         return (int)_image.plainWidth();                              
[javac-full]                                      ^                                
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextFSImage.java:38: cannot find symbol                                    
[javac-full] symbol  : method plainHeight()                                        
[javac-full] location: class com.lowagie.text.Image                                
[javac-full]         return (int)_image.plainHeight();                             
[javac-full]                           ^                                           
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextFSImage.java:38: inconvertible types                                   
[javac-full] found   : com.lowagie.text.Image.plainHeight                          
[javac-full] required: int                                                         
[javac-full]         return (int)_image.plainHeight();                             
[javac-full]                                       ^                               
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextRenderer.java:237: cannot find symbol                                  
[javac-full] symbol  : method height()                                             
[javac-full] location: class com.lowagie.text.Rectangle                            
[javac-full]         _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.height());                                                                 
[javac-full]                                                                              ^                                                                           
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextRenderer.java:257: cannot find symbol                                  
[javac-full] symbol  : method height()                                             
[javac-full] location: class com.lowagie.text.Rectangle                            
[javac-full]                         writer.getDirectContent(), nextPageSize.height());                                                                               
[javac-full]                                                                ^      
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java:63: cannot find symbol                                  
[javac-full] symbol  : method width()                                              
[javac-full] location: class com.lowagie.text.Rectangle                            
[javac-full]                         image.setInitialWidth(rect.width()*_outputDevice.getDotsPerPoint());                                                             
[javac-full]                                                   ^                   
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java:64: cannot find symbol                                  
[javac-full] symbol  : method height()                                             
[javac-full] location: class com.lowagie.text.Rectangle                            
[javac-full]                         image.setInitialHeight(rect.height()*_outputDevice.getDotsPerPoint());                                                           
[javac-full]                                                    ^                  
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java:87: cannot find symbol                                  
[javac-full] symbol  : method plainWidth()                                         
[javac-full] location: class com.lowagie.text.Image                                
[javac-full]         image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor);                                                                  
[javac-full]                                  ^                                    
[javac-full] /var/tmp/portage/dev-java/flyingsaucer-7/work/src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java:87: cannot find symbol                                  
[javac-full] symbol  : method plainHeight()                                        
[javac-full] location: class com.lowagie.text.Image                                
[javac-full]         image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor);                                                                  
[javac-full]                                                               ^       
[javac-full] Note: Some input files use or override a deprecated API.              
[javac-full] Note: Recompile with -Xlint:deprecation for details.                  
[javac-full] 10 errors                                                             

BUILD FAILED
/var/tmp/portage/dev-java/flyingsaucer-7/work/build.xml:55: Compile failed; see the compiler error output for details.                                                

Total time: 3 seconds
 *
 * ERROR: dev-java/flyingsaucer-7 failed.

Portage 2.2_rc11 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-hardened-r4 x86_64)                                                           
=================================================================                  
System uname: Linux-2.6.25-hardened-r4-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-glibc2.2.5                                                                    
Timestamp of tree: Fri, 03 Oct 2008 15:15:02 +0000                                 
ccache version 2.4 [disabled]                                                      
app-shells/bash:     3.2_p39                                                       
dev-java/java-config: 1.3.7, 2.1.6-r1                                              
dev-lang/python:     2.5.2-r8                                                      
dev-python/pycrypto: 2.0.1-r6                                                      
dev-util/ccache:     2.4-r8                                                        
sys-apps/baselayout: 2.0.0                                                         
sys-apps/openrc:     0.2.5                                                         
sys-apps/sandbox:    1.2.18.1-r3                                                   
sys-devel/autoconf:  2.63                                                          
sys-devel/automake:  1.10.1-r1                                                     
sys-devel/binutils:  2.18-r3                                                       
sys-devel/gcc-config: 1.4.0-r4                                                     
sys-devel/libtool:   2.2.6a                                                        
virtual/os-headers:  2.6.26                                                        
ACCEPT_KEYWORDS="amd64 ~amd64"                                                     
CBUILD="x86_64-pc-linux-gnu"                                                       
CFLAGS="-O2 -pipe"                                                                 
CHOST="x86_64-pc-linux-gnu"                                                        
CONFIG_PROTECT="/etc"                                                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/splash /etc/terminfo /etc/udev/rules.d"                                                                  
CXXFLAGS="-O2 -pipe"                                                               
DISTDIR="/usr/portage/distfiles"                                                   
FEATURES="buildpkg distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                             
GENTOO_MIRRORS="ftp://ftp.sunet.se/pub/Linux/distributions/gentoo"                 
LDFLAGS="-Wl,-O1"                                                                  
MAKEOPTS="-j4"                                                                     
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly objc openmp pampcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Arttu Valo 2008-10-05 13:50:28 UTC
It would seem that to get to this error one needs to have unstable dev-java/itext (i.e., v 2.1 or greater) installed. With the stable itext 2.0.8 I have no problems emerging flyingsaucer.

So, we probably need to fix the itext dependency in the ebuild from dev-java/itext:0 to <dev-java/itext-2.1* or so?
Comment 2 Pawel Wiejacha 2008-10-23 13:18:21 UTC
(In reply to comment #1)
> It would seem that to get to this error one needs to have unstable
> dev-java/itext (i.e., v 2.1 or greater) installed. With the stable itext 2.0.8

i have the same error with itext-2.1.3-r1
Comment 3 Arttu Valo 2008-10-23 14:31:14 UTC
Comparing itext 2.0.8 and 2.1.3 sources with diff -w -r I noticed that we are dealing with at least some deprecated (and since itext 2.1.x, removed) methods.

They are present in 2.0.8, but state their deprecation in their javadocs. E.g., right from the start, for the first one (com.lowagie.text.Image.plainWidth()):

* @deprecated As of iText 2.0.3, replaced by {@link #getPlainHeight()},

If all of those nonexistent method calls are just replaced by proper javabean getter/setter names then patching flyingsaucer-7 to use >=dev-java/itext-2.1 should be easy.
Comment 4 Arttu Valo 2008-10-23 21:42:51 UTC
Created attachment 169644 [details, diff]
Patches the deprecated getters/setters for >=dev-java/itext-2.1

Patches the compilation failing deprecated itext getters/setters in flyingsaucer-7. This should enable flyingsaucer-7 to compile against recent itext versions since about 2.0.3.

Tested compiling and running with itext 2.0.8 (amd64) and 2.1.3-r1 (~amd64), using dev-java/sun-jdk-1.6.0.10. Running was with a small ~10-line test program utilizing the XHTMLPanel class. Result: rendered the xhtml-compliant web page slowly, but fine in both cases.
Comment 5 Cameron Brunner 2008-11-19 06:31:08 UTC
hit the same problem trying to get netbeans installed (6.5rc from java-experimental), for now have masked 2.1+ of itext until fixed
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2008-11-21 12:24:18 UTC
(In reply to comment #4)
> Created an attachment (id=169644) [edit]
> Patches the deprecated getters/setters for >=dev-java/itext-2.1
> 
> Patches the compilation failing deprecated itext getters/setters in
> flyingsaucer-7. This should enable flyingsaucer-7 to compile against recent
> itext versions since about 2.0.3.
> 

Patch added. Thanks for the patch.

Comment 7 Serkan Kaba (RETIRED) gentoo-dev 2008-11-21 15:26:35 UTC
*** Bug 247975 has been marked as a duplicate of this bug. ***