[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#449608: cannot compile examples in /usr/share/doc/gcj-4.1-base/examples



Package: gcj-4.1-base
Version: 4.1.1-20
Severity: important


As root, the compilation of either example Makefile (Makefile.java2d or
Makefile.jawt) fails:

ve6wvc:/usr/share/doc/gcj-4.1-base/examples# make -f Makefile.java2d 
make: *** No rule to make target
`../../../../../src/libjava/classpath/examples/gnu/classpath/examples/java2d/bench.c',
needed by `all'.  Stop.

ve6wvc:/usr/share/doc/gcj-4.1-base/examples# make -f Makefile.jawt   
gcjh -jni gnu.classpath.examples.jawt.DemoJAWT -o DemoJAWT.h
make: gcjh: Command not found
make: *** [DemoJAWT.h] Error 127

The "swing demo" described in the README also fails:

ve6wvc:/usr/share/doc/gcj-4.1-base/examples# gcj -o swingdemo --main=gnu.classpath.examples.swing.Demo \
>       gnu/classpath/examples/swing/Demo.java \
>       gnu/classpath/examples/swing/GNULookAndFeel.java
/tmp/ccIC2bYw.o: In function `void gnu::classpath::examples::swing::Demo$PopupAction::actionPerformed(java::awt::event::ActionEvent*)':
ccAAmJOpjx:(.text+0x441): undefined reference to `gnu::classpath::examples::swing::DemoFactory::class$'
/tmp/ccIC2bYw.o: In function `javax::swing::JMenuBar* gnu::classpath::examples::swing::Demo::mkMenuBar()':
ccAAmJOpjx:(.text+0x1226): undefined reference to `gnu::classpath::examples::swing::DemoFactory* gnu::classpath::examples::swing::ButtonDemo::createDemoFactory()'
-------------many lines deleted----------
/tmp/ccIC2bYw.o: In function `javax::swing::JDesktopPane* gnu::classpath::examples::swing::Demo::createDesktop()':
ccAAmJOpjx:(.text+0x326d): undefined reference to `gnu::classpath::examples::swing::DemoDesktop::class$'
ccAAmJOpjx:(.text+0x327c): undefined reference to `gnu::classpath::examples::swing::DemoDesktop::DemoDesktop()'
/tmp/ccIC2bYw.o:(.data+0xc74): undefined reference to `gnu::classpath::examples::swing::DemoFactory::class$'
collect2: ld returned 1 exit status

When I installed "gcj", I also got the following installed:

antlr ecj-bootstrap ecj-bootstrap-gcj fastjar gappletviewer-4.1 gcj-4.1
gjdoc java-common java-gcj-compat java-gcj-compat-dev libgcj-doc libgcj7-dev

I hope that i"ve provided sufficient information for you to make diagnosis.
Contact me for further information: dprovins@alumni.ucalgary.ca

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.2_September_8_2007
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

-- no debconf information




Reply to: