594 - One Little, Two Little, Three Little Endians

All about problems in Volume 5. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

ChrisIzquierdo
New poster
Posts: 4
Joined: Sun Jan 06, 2002 2:00 am

Post by ChrisIzquierdo » Wed Jan 16, 2002 8:54 am

I submitted this Java program to the online judge and got lots of error back. Is there anything wrong with it?

Thanks

Java Program:

/* @JUDGE_ID: 16561WW 594 JAVA "bitwise" */
import java.io.* ;

class Main extends Object {

public Main() {
}

static String ReadLn (int maxLg)
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line = "";

try
{
while (lg < maxLg)
{
car = System.in.read();
if ((car < 0) || (car == 'n')) break;
lin [lg++] += car;
}
}
catch (IOException e)
{
return (null);
}

if ((car < 0) && (lg == 0)) return (null);
return (new String (lin, 0, lg));
}

public static void main(String args[]) throws Exception {

String newLine = Main.ReadLn(20);
while (newLine != null) {
if (newLine.endsWith("r")) newLine = newLine.substring(0, newLine.length() - 1);
int number = Integer.parseInt(newLine) ;

int firstByte = (number << 24 ) ;
int secondByte = (number << 8 ) & 0x00FF0000 ;
int thirdByte = (number >> 8 ) & 0x0000FF00 ;
int fourthByte = (number >>> 24) ;

int newNumber = firstByte | secondByte | thirdByte | fourthByte;

System.out.println(number + " converts to " + newNumber);
newLine = Main.ReadLn(20) ;
}

}

}

Errors from online Judge:

/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(_eh.o): In function `eh_context_free':
/usr/src/build/40410-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/../../gcc/libgcc2.c(.text+0x114): undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(_eh.o): In function `eh_threads_initialize':
/usr/src/build/40410-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/../../gcc/libgcc2.c(.text+0x231): undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(_eh.o): In function `eh_context_specific':
/usr/src/build/40410-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/../../gcc/libgcc2.c(.text+0x38b): undefined reference to `pthread_getspecific'
/usr/src/build/40410-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/../../gcc/libgcc2.c(.text+0x3ab): undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(jni.o): In function `_Jv_JNI_AttachCurrentThread(_Jv_JavaVM *, java::lang::String *, void **, void *)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(jni.o): In function `_Jv_JNI_DestroyJavaVM(_Jv_JavaVM *)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(jni.o): In function `_Jv_JNI_DetachCurrentThread(_Jv_JavaVM *)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(jni.o): In function `_Jv_JNI_GetEnv(_Jv_JavaVM *, void **, int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(jni.o): In function `_Jv_GetJavaVM(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natThread.o):/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: more undefined references to `pthread_getspecific' follow
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_MarkObj':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:97: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:100: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:107: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:109: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:114: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:115: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:115: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:115: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:121: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:123: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:131: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:141: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:144: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:155: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:159: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:164: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:171: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:174: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:181: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:191: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:195: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:198: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:200: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:204: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:205: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:205: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:205: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:207: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:215: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:220: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:222: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:222: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:222: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:225: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:252: undefined reference to `GC_signal_mark_stack_overflow'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_MarkArray':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:283: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:286: undefined reference to `GC_signal_mark_stack_overflow'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_least_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_greatest_plausible_heap_addr'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_find_start'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_find_header'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_add_to_black_list_normal'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:292: undefined reference to `GC_signal_mark_stack_overflow'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_AllocObj(int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:305: undefined reference to `GC_generic_malloc'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_AllocArray(int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:313: undefined reference to `GC_generic_malloc'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_AllocBytes(int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:320: undefined reference to `GC_generic_malloc'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_RegisterFinalizer(void *, void (*)(java::lang::Object *))':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:342: undefined reference to `GC_register_finalizer_no_order'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_RunFinalizers(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:349: undefined reference to `GC_invoke_finalizers'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_RunAllFinalizers(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:355: undefined reference to `GC_finalize_all'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_RunGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:361: undefined reference to `GC_gcollect'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_GCSetInitialHeapSize(unsigned int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:379: undefined reference to `GC_get_heap_size'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:381: undefined reference to `GC_expand_hp'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_DisableGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:398: undefined reference to `GC_disable'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_EnableGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:406: undefined reference to `GC_enable'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_InitGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../boehm-gc/gc_priv.h:451: undefined reference to `GC_allocate_lock'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_InitGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:417: undefined reference to `GC_lock'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:427: undefined reference to `GC_java_finalization'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:432: undefined reference to `GC_generic_malloc_inner'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:435: undefined reference to `GC_n_mark_procs'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:435: undefined reference to `GC_n_mark_procs'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:438: undefined reference to `GC_n_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:439: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:436: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:438: undefined reference to `GC_n_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:441: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:442: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:440: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:449: undefined reference to `GC_generic_malloc_inner'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:452: undefined reference to `GC_n_mark_procs'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:452: undefined reference to `GC_n_mark_procs'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:455: undefined reference to `GC_n_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:453: undefined reference to `GC_arrays'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:455: undefined reference to `GC_n_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:458: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:459: undefined reference to `GC_obj_kinds'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:457: undefined reference to `GC_obj_kinds'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_InitGC(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../boehm-gc/gc_priv.h:560: undefined reference to `GC_allocate_lock'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../boehm-gc/gc_priv.h:560: undefined reference to `GC_allocate_lock'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_GCTotalMemory(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:367: undefined reference to `GC_get_heap_size'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_GCFreeMemory(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:373: undefined reference to `GC_get_free_bytes'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(boehm.o): In function `_Jv_GCSetMaximumHeapSize(unsigned int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/boehm.cc:387: undefined reference to `GC_set_max_heap_size'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(posix-threads.o): In function `_Jv_CondWait(_Jv_ConditionVariable_t *, _Jv_Mutex_t *, long long, int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:184: undefined reference to `pthread_getspecific'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/include/java-threads.h:177: undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(posix-threads.o): In function `_Jv_InitThreads(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/posix-threads.cc:286: undefined reference to `pthread_key_create'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/posix-threads.cc:287: undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(posix-threads.o): In function `really_start(void *)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/posix-threads.cc:336: undefined reference to `pthread_setspecific'
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/posix-threads.cc:337: undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(posix-threads.o): In function `_Jv_ThreadStart(java::lang::Thread *, _Jv_Thread_t *, void (*)(java::lang::Thread *))':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/posix-threads.cc:394: undefined reference to `GC_pthread_create'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(ltdl.lo): In function `sys_dl_open':
ltdl.lo(.text+0x44): undefined reference to `GC_dlopen'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natInflater.o): In function `java::util::zip::Inflater::end(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/java/util/zip/natInflater.cc:53: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natInflater.o): In function `java::util::zip::Inflater::inflate(JArray<char> *, int, int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/java/util/zip/natInflater.cc:107: undefined reference to `inflate'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natInflater.o): In function `java::util::zip::Inflater::reset(void)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/java/util/zip/natInflater.cc:146: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natInflater.o): In function `java::util::zip::Inflater::setDictionary(JArray<char> *, int, int)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/gcj/array.h:41: undefined reference to `inflateSetDictionary'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcj.a(natInflater.o): In function `java::util::zip::Inflater::init(bool)':
/usr/src/build/36296-i386/BUILD/libgcj/obj-i386-redhat-linux/i386-redhat-linux/libjava/../../../libjava/java/util/zip/natInflater.cc:195: undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status

sacra
New poster
Posts: 8
Joined: Sun Oct 27, 2002 9:36 pm
Location: Coimbra, Portugal
Contact:

help

Post by sacra » Thu Nov 14, 2002 8:39 pm

read the thread "Giving up on gcj"...

razibcse
New poster
Posts: 50
Joined: Mon Jul 22, 2002 3:17 am
Location: SUST,BANGLADESH
Contact:

594 - One Little, Two Little, Three Little Endians

Post by razibcse » Tue Dec 10, 2002 4:53 pm

Code: Select all

#include <stdio.h>
#include <math.h>
#include <string.h>

void dec_to_bin(long num);
void dec_to_bin_2s_complement(long num);
long binary_to_decimal(long num[],long l);
void main()
{
long num;
while(scanf("%ld",&num)==1)
 {
 printf("%ld ",num);
 if(num>=0)
 dec_to_bin(num);
 else if(num<0)
 dec_to_bin_2s_complement((-1)*num);    //for 2's complement,number       //is made positive...
 }
}

void dec_to_bin(long num)
{
long converted_form,re,i,j,k,h,bin[40],ind[40];

//make binary by dividing by 2 repeatedly...

i=0;
for(;;)
  {
  h=num/2;
  re=num%2;
  bin[i++]=re;
  if(h==0) break;
  num=h;
  }
for(j=i;j<32;j++)
 bin[j]=0;     //make 32 digits
for((j=0,k=31);j<32;(j++,k--))
 ind[k]=bin[j];  //reverse the positions of the binary digits.

//Group the binary digits into bytes(8 bits)
for((j=0,k=24);j<8;(j++,k++))
  bin[k]=ind[j];
for((j=8,k=16);j<16;(j++,k++))
  bin[k]=ind[j];
for((j=16,k=8);j<23;(j++,k++))
  bin[k]=ind[j];
for((j=24,k=0);j<32;(j++,k++))
  bin[k]=ind[j];

converted_form=binary_to_decimal(bin,32);

printf("converts to %ld\n",converted_form);
}

void dec_to_bin_2s_complement(long num)
{
long converted_form,re,i,j,h,bin[40],sum,ind[40];
i=0;
for(;;)
  {
  h=num/2;
  re=num%2;
  bin[i++]=re;
  if(h==0) break;
  num=h;
  }
for(j=i;j<32;j++)
 bin[j]=0;

//reverse the 1's to 0's & 0's to 1's...
for(j=31;j>=0;j--)
  {
  if(bin[j]==0)
   bin[j]=1;
  else if(bin[j]==1)
   bin[j]=0;
  }

re=0;
sum=1;
for(j=0;;j++)       //add 1 to the inverted digits...
  {
  sum+=bin[j];
  if(sum==2)
    {
    ind[j]=0;
    re=1;
    }
  else
    {
    ind[j]=sum;
    break;
    }
  sum=re;
  }
//the digits are same when the remainder is 0...
for(i=j+1;i<32;i++)
 ind[i]=bin[i];

//again inverse 1's to 0's & vice versa to make the number decimal...
for(j=31;j>=0;j--)
  {
  if(ind[j]==0)
   ind[j]=1;
  else if(ind[j]==1)
   ind[j]=0;
  }

//group them into bytes...
for((i=0,j=7);i<8;(i++,j--))
 bin[j]=ind[i];
for((i=8,j=15);i<16;(i++,j--))
 bin[j]=ind[i];
for((i=16,j=23);i<24;(i++,j--))
 bin[j]=ind[i];
for((i=24,j=31);i<32;(i++,j--))
 bin[j]=ind[i];


//again add 1...
re=0;
sum=1;
for(j=31;;j--)
  {
  sum+=bin[j];
  if(sum==2)
    {
    ind[j]=0;
    re=1;
    }
  else
    {
    ind[j]=sum;
    break;
    }
  sum=re;
  }

for(i=j-1;i>=0;i--)
 ind[i]=bin[i];


converted_form=binary_to_decimal(ind,32);
if(converted_form>0)
printf("converts to -%ld\n",converted_form);
else if(converted_form<0)
printf("converts to %ld\n",converted_form);
}

long binary_to_decimal(long num[],long l)
{
long s,a,b;
s=0;
for((a=0,b=l-1);a<=(l-1);(a++,b--))
 {
 s+=num[a]*pow(2,b);
 }
return s;
}
[c][/c]

abyssinian
New poster
Posts: 13
Joined: Wed Jan 01, 2003 1:25 pm

594 : little endians...need more sample input 'n output

Post by abyssinian » Wed Jan 01, 2003 1:32 pm

:-?
i'm confused?!...can someone give me more input and output samples for one little, two little, three little endians (594)?......

i keep getting "wrong answer" from online judge...but i got the right answer when i test it on my computer...........


#include<stdio.h>
#include<math.h>

int main(){
signed long int angka,angka1,angka2;
int bit[32],endian[32],j,kali,i;

while(scanf("%li",&angka1)==1){


for(i=0;i<32;i++){
bit=0;
}

i=0;
angka2=0;

if(angka1<0) angka=(-angka1)-1;
else angka=angka1;
while(angka!=0){
bit[i++]=angka%2;
angka/=2;
}

if(angka1<0){
for(i=0;i<32;i++){
bit=1-(bit*1);
}
}

j=7,kali=1;
for(i=31;i>=0;i--){
endian[j]=bit;
if(kali==8) {j+=16;kali=0;}
++kali;--j;
}

for(i=0;i<32;i++){
angka2+=endian*pow(2,i);
}

printf("\n%li converts to %li",angka1,angka2);

}

return 0;
}

abyssinian
New poster
Posts: 13
Joined: Wed Jan 01, 2003 1:25 pm

594 endians....ask for test cases plzzzz....

Post by abyssinian » Tue Jan 14, 2003 10:40 am

hello...i need some test cases for ole little, two little, three little endians coz i keep getting WA....can anybody help me??


/* @begin_of_source_code */

#include<stdio.h>
#include<math.h>

int main(){
signed long int angka,angka1,angka2;
int bit[32],endian[32],j,kali,i;

#ifndef ONLINE_JUDGE
freopen("594.in", "r", stdin);
freopen("594.out", "w", stdout);
#endif

while(scanf("%li",&angka1)==1){

for(i=0;i<32;i++){
bit=0;
}

i=0;
angka2=0;

if(angka1<0) angka=(-angka1)-1;
else angka=angka1;
while(angka!=0){
bit[i++]=angka%2;
angka/=2;
}

if(angka1<0){
for(i=0;i<32;i++){
bit=1-(bit*1);
}
}

j=7,kali=1;
for(i=31;i>=0;i--){
endian[j]=bit;
if(kali==8) {j+=16;kali=0;}
++kali;--j;
}

for(i=0;i<32;i++){
angka2+=endian*pow(2,i);
}

printf("%li converts to %li\n",angka1,angka2);

}

return 0;
}
/* @end_of_source_code */

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

594 - One little , two little , three little endians

Post by Almost Human » Wed Apr 23, 2003 3:23 pm

I don't get the problems.

I tought that we should just reverse all the 32-bit ... but I was wrong...

somebody can help me ?

turuthok
Experienced poster
Posts: 193
Joined: Thu Sep 19, 2002 6:39 am
Location: Indonesia
Contact:

Post by turuthok » Wed Apr 23, 2003 8:09 pm

Make sure you reverse it 8-bits at a time ...

-turuthok-
The fear of the LORD is the beginning of knowledge (Proverbs 1:7).

deddy one
Experienced poster
Posts: 120
Joined: Tue Nov 12, 2002 7:36 pm

594 : about negative number

Post by deddy one » Mon May 05, 2003 4:31 pm

How do you convert a negative number into
base 2 number (32 bit) ?

Red Scorpion
Experienced poster
Posts: 192
Joined: Sat Nov 30, 2002 5:14 am

Post by Red Scorpion » Wed May 07, 2003 12:28 pm

You don't need to convert decimal to binary. Just using shift right - shift left to solve this problem. Or using "memcpy". I think that can break this problem easily.

hope this helps. :lol: :lol:

Ronald29
New poster
Posts: 15
Joined: Sat May 24, 2003 3:57 am

594 - Test Case please

Post by Ronald29 » Sun May 25, 2003 2:11 pm

I need a test case for problem 594, I'm new here, so please help me, cause I get WA. but my program works fine with the sample input, thx...

Ronald29
New poster
Posts: 15
Joined: Sat May 24, 2003 3:57 am

Post by Ronald29 » Wed May 28, 2003 2:12 pm

Here's a great hint for you, USE UNION.
Hope that help... :D

ayaw
New poster
Posts: 18
Joined: Fri May 23, 2003 3:52 pm
Contact:

Post by ayaw » Wed May 28, 2003 2:44 pm

^_^

i use char pointer....
and reverse it....

u'll solve it just in several lines of code

peace....
peace...

anupam
A great helper
Posts: 405
Joined: Wed Aug 28, 2002 6:45 pm
Contact:

Post by anupam » Wed May 28, 2003 2:49 pm

just using a litte right & left shift and union may solve the problem..
--
anupam
"Everything should be made simple, but not always simpler"

globi
New poster
Posts: 15
Joined: Wed Apr 23, 2003 2:44 pm
Location: Warsaw
Contact:

594 - problem with converting

Post by globi » Wed Jun 11, 2003 4:15 pm

Hello.

If I have understood problem number 594 I should only reverse all the bytes in the data. So, I convert the data into binary ( in the string of course ), then reverse each 8-bits blocks and for half of examples I receive good answer. What's wrong in my thinking?

Exaple:

input: x output: y

x ( bit representation ) = 11111111 00000000 10101010 01010101

after reverse....

y ( bit representation ) = 01010101 10101010 00000000 11111111

;

there's a few question's:

1) Is it good ?? :)
2) What shall I do if the x is smaller then 0 ( I tried to change the most left bit, but it doesn't worked ) ?
3) I heard that I could use unions to solve that problem, but I can't understand that. Shall I make union like this:

union { int input; bool subst[4]; } x, y;
scanf(x.input);
y.subst[3] = x.subst[0];
y.subst[2] = x.subst[1];
y.subst[1] = x.subst[2];
y.subst[0] = x.subst[3];
printf(y.input)

???

4) I also heard that I can use shifting using unions. How ???

Thank's a lot for answering my question's.

User avatar
the LA-Z-BOy
Learning poster
Posts: 94
Joined: Wed Jul 31, 2002 12:44 pm
Location: Dacca, Bangladesh
Contact:

Post by the LA-Z-BOy » Sun Jun 15, 2003 12:02 pm

well, unions might be a better solution for this problem, but nothing wrong with `reversing each 8 bit block' and i wonder why should it not be working when x is smaller than 0... when i first solved this problem i used similar approach...

Code: Select all

long endianSolBits(long x){
	long temp = 0;	// variable to hold result
	int j;

	for (j=0; j<32; j++){
		if (x&(1<<j)){	// check every bits
			temp|= 1<<(3-j/8)*8+(j%8);	// set bits accordingly ;)
		}
	}
	return temp;
}
...and this works fine.
moreover for unions; it's much easier and fun to solve it with unions with the compiler left everything to do and you are to code just a little:

Code: Select all

union{
	long data;	// 4bytes
	char bit[4];	// 1byte each*4 = 4bytes
}x, y;

while(scanf("%ld", &x.data)==1){

	// swap 0th and 3rd bytes
	y.bit[3]=x.bit[0];
	y.bit[0]=x.bit[3];

	// swap 1st and 2nd bytes
	y.bit[1]=x.bit[2];
	y.bit[2]=x.bit[1];

	printf("%ld converts to %ld\n", x.data, y.data);
}
Greetings
Istiaque Ahmed [the LA-Z-BOy]

Post Reply

Return to “Volume 5 (500-599)”