This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cygwin, W98 and gcj


	Thanks in advance to anybody who have time to waste.
Loading last version of Cygwin on W98
Loading all http://www.cs.bris.ac.uk/~jb7216/libgcj/

standard@OEMCOMPUTER ~
$ cat bonjour.c
main(){
         printf("Hello\n");
}

standard@OEMCOMPUTER ~
$ gcc bonjour.c -o bonjour

standard@OEMCOMPUTER ~
$ ./bonjour
Hello

standard@OEMCOMPUTER ~
$ cat Hello.java
public class Hello{
         public static void main(String[] args){
                 System.out.println("Hello \n");
         }
}

standard@OEMCOMPUTER ~
$ gcj --main=Hello  -o Hello Hello.java

standard@OEMCOMPUTER ~
$ ./hello
// Nothing is printed !!!!!!!!!!!!!!!!!!!!
standard@OEMCOMPUTER ~
$ strace ./bonjour|less
....
   140  164042 [main] BONJOUR 1255 dll_list::init: here
   166  164208 [main] BONJOUR 1255 dll_crt0_1: user_data->main 0x401048
  1015  165223 [main] BONJOUR 1255 sig_send: pid 1255, signal -2, its_me 1
  1503  166726 [main] BONJOUR 1255 sig_send: ReleaseSemaphore succeeded
   650  167376 [main] BONJOUR 1255 sig_send: Waiting for thiscomplete 0x80
   215  167591 [sig] BONJOUR 1255 wait_sig: awake
   183  167774 [sig] BONJOUR 1255 wait_sig: processing signal -2
   169  167943 [sig] BONJOUR 1255 wait_sig: looping
   155  168098 [main] BONJOUR 1255 sig_send: returning 0 from sending signal -2
  4140  172238 [main] BONJOUR 1255 time: 968682175 = time (0)
   848  173086 [main] BONJOUR 1255 _fstat: 0 = fstat (1, 253FA20)
  3962  177048 [main] BONJOUR 1255 isatty: 0 = isatty (1)
  2884  179932 [main] BONJOUR 1255 _write: write (1, 0x45710F0, 6)
Hello
   170  180102 [main] BONJOUR 1255 fhandler_base::write: after write, name 
{stdou
t}, rpos 6
  1960  182062 [main] BONJOUR 1255 _write: 6 = write (1, 0x45710F0, 6)
   850  182912 [main] BONJOUR 1255 do_exit: do_exit (6)
   164  183076 [main] BONJOUR 1255 void: 0x0 = signal (20, 0x1)
  1232  184308 [main] BONJOUR 1255 void: 0x0 = signal (1, 0x1)
   914  185222 [main] BONJOUR 1255 void: 0x0 = signal (2, 0x1)
   163  185385 [main] BONJOUR 1255 void: 0x0 = signal (3, 0x1)
   676  186061 [main] BONJOUR 1255 _close: close (0)
....

standard@OEMCOMPUTER ~
$ strace ./Hello|less
....
   139  130104 [main] HELLO 1281 dll_list::init: here
   138  130242 [main] HELLO 1281 dll_crt0_1: user_data->main 0x40111C
   155  130397 [main] HELLO 1281 sig_send: pid 1281, signal -2, its_me 1
   150  130547 [main] HELLO 1281 sig_send: ReleaseSemaphore succeeded
   145  130692 [sig] HELLO 1281 wait_sig: awake
   198  130890 [sig] HELLO 1281 wait_sig: processing signal -2
   175  131065 [sig] HELLO 1281 wait_sig: looping
  -334  130731 [main] HELLO 1281 sig_send: Waiting for thiscomplete 0x88
   616  131347 [main] HELLO 1281 sig_send: returning 0 from sending signal -2
37500  168847 [main] HELLO 1281 do_exit: do_exit (0)
Hello

   260  169107 [main] HELLO 1281 void: 0x0 = signal (20, 0x1)
  1977  171084 [main] HELLO 1281 void: 0x0 = signal (1, 0x1)
   151  171235 [main] HELLO 1281 void: 0x0 = signal (2, 0x1)
   139  171374 [main] HELLO 1281 void: 0x0 = signal (3, 0x1)
   668  172042 [main] HELLO 1281 _close: close (0)
   938  172980 [main] HELLO 1281 fhandler_base::set_io_handle: set handle 
to 0xFF
FFFFFF
  1323  174303 [main] HELLO 1281 _close: 0 = close (0)
....

Thanks a lot
Christian CORMIER
cormier@u-picardie.fr

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]