Re: gcj exception compiling
On 2011-11-07 03:05:48 +0100, Yaakov (Cygwin/X) said: On Sun, 2011-11-06 at 21:16 +0100, Philipp Kraus wrote: If I try to compile a java code with "gcj mysource.java" I get the error: /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status http://gcc.gnu.org/java/faq.html#4_1 In a posting earlier I have written, that the class does not have any main method, so the information to setup the --main flag does not help. In my project there are only abstract classes, interface classes and classes without main methods, so I would like to compile the sources to *.class files Phil -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: gcj exception compiling
On Sun, 2011-11-06 at 21:16 +0100, Philipp Kraus wrote: > If I try to compile a java code with "gcj mysource.java" I get the error: > > /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): > > > undefined reference to `_WinMain@16' > collect2: ld returned 1 exit status http://gcc.gnu.org/java/faq.html#4_1 Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: gcj exception compiling
On 2011-11-06 02:28:12 +0100, Yaakov (Cygwin/X) said: On Sat, 2011-11-05 at 19:13 +0100, Kraus Philipp wrote: Hello, I try to build a Java class with the gcj under Cygwin. I get this error message: Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.inter nal.compiler.batch.GCCMain at gnu.java.lang.MainThread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.b atch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu. gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at gnu.java.lang.MainThread.run(Unknown Source) You're missing the ECJ jar. Either download ftp://sourceware.org/pub/java/ecj-4.5.jar and install it to /usr/share/java/ecj.jar or install java-ecj from Cygwin Ports. Thanks, but under /usr/sbin/ should be a script like download_ecj.sh for downloading and installing, but in my Cygwin version the script does not exists The class does not have any main function. On the default gcj installation, it creates this error first: /usr/lib/gcc/i686-pc-cygwin/4.5.3/ecj1.exe: error while loading shared libraries : cyggcj-11.dll: cannot open shared object file: No such file or directory So I install the gcj-11 library, the setup installs gcj-9 on default. How can I create a working installation? Install libgcj11. (P.S. Dave Korn: I took the liberty of fixing this on sourceware.) If I try to compile a java code with "gcj mysource.java" I get the error: /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status How can I solve the linker problem? (I have installed the newest version of Cygwin) Thanks Phil -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: What does mean 'obsolete' category?
Oleksandr Gavenko sent the following at Saturday, November 05, 2011 7:37 PM >Search: > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=xorg-x11-xwin > >take: > xorg-x11-xwin/xorg-x11-xwin-7.4-1 Obsolete package > >From setup.ini: > @ xorg-x11-xwin > sdesc: "Obsolete package" > ldesc: "Obsolete package" > category: _obsolete > >That mean 'obsolete' for package? > >I search for docs in: > Cygwin Package Contributor's Guide > Cygwin User's Guide > http://sourceware.org/cygwin-apps/setup-head.ini.html > >but does not found any relevant docs for 'obsolete' keyword. > >Do this mean that package deprecated and I need avoid its uses? > >Or it is for a long time does not updated and can have known bugs? > >I will be glad if docs updated with appropriate texts. They are how obsolete packages are removed and replaced by their successors. Lets look at the setup.ini entry for ash. @ ash sdesc: "Replaced by dash" ldesc: "OBSOLETE PKG: replaced by dash" category: _obsolete requires: dash cygwin version: 20040127-5 install: release/ash/ash-20040127-5.tar.bz2 46 c616cffee0f344c37fd4e045a7a87054 source: release/ash/ash-20040127-5-src.tar.bz2 46 c616cffee0f344c37fd4e045a7a87054 [prev] version: 20040127-4 install: release/ash/ash-20040127-4.tar.bz2 47178 26b04e64b710f4e9592258446920a992 source: release/ash/ash-20040127-4-src.tar.bz2 140516 7fa68e8ed663ac77b484079aab026ed8 Note that both the install and source tarballs are effectively empty - only 46 bytes. When setup updates, it first removes the previous version, here ash-20040127-4.tar.bz2, before trying to install the non-existent contents of ash-20040127-5.tar.bz2. The requires line then tells setup to install dash, the replacement of ash. I could be wrong about this, but it seems to me that one other thing that "_obsolete" does is to move the directory of the package in setup.exe's local package cache to be a subdirectory of .../release/_obsolete/. So the category _obsolete means "do not install this" and "you cannot use this because it is not here", which is a bit stronger than "deprecated" and "avoid". I hope that helps. (I also hope that that was correct. :-) ) - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Copying HDD to another HDD
I don't know if this is what you are going to try, but if you change the of the partition on the src drive to something small enough to fit on the new drive, you can use clonezilla to clone the partition instead of the whole drive. Just make the partition on the new drive the same size or a bit larger. Just to be safe, I would copy off all the data files from the old drive that you can to a backup somewhere. You should be able to do the with a gparted CD. LMH Mike Brown wrote: On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote: Some random notes. fsarchiver also allows for flexibility on size. I'm downloading the iso for SystemRescueCD, which contains fsarchiver. I just might be able to use fsarchiver to do the trick. Thanks for the tip. MB -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Copying HDD to another HDD
On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote: > Some random notes. fsarchiver also allows for flexibility on size. I'm downloading the iso for SystemRescueCD, which contains fsarchiver. I just might be able to use fsarchiver to do the trick. Thanks for the tip. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII [I've been to Earth. I know where it is. ] \ / Ribbon Campaign [And I'm gonna take us there.Starbuck 3/25/07] X Against Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Copying HDD to another HDD
On 11/6/2011 10:35 PM, Mike Brown wrote: On Sun, Nov 06, 2011 at 09:19:52AM -0500, LMH wrote: I think you want to use a disk clone to do this, something like the clonezilla live CD. As long as the drives are the same size, or the target drive is larger, clonezilla will just copy one drive to the other. It does a bit by bit clone, so it doesn't care about files and permissions and such. Unfortunately the original is larger. Even if you could copy with cp, you need the boot sector and such to get the OS up, so that wouldn't work. [snip snip] An interesting thought just came to mind. If I can get all of the XP stuff copied over and get it to boot and finish the XP upgrade, I can then copy over the remainder of the files for all of the other stuff, as I'll now have the permissions I need. Some random notes. fsarchiver also allows for flexibility on size. But I have mostly used partimage from systemrescuecd in practice for the bootable partition, for: (a) moving from IDE to SATA, (b) moving from SATA to a larger SATA, and (c) restoring older partition image due to flakey 780G support in new ATI drivers. Restoring using partimage onto a larger partition area gives a partition of the old size, which can then be expanded using gparted. gparted can shrink NTFS too, I think, but I have never used it since I size boot partitions rather small. IIRC, I moved cygwin folders by cutting-and-pasting folders while both drives are installed. Since I use the traditional simple security scheme, I cannot say for sure whether any of the above will work in all cases. -- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Copying HDD to another HDD
On Sun, Nov 06, 2011 at 09:19:52AM -0500, LMH wrote: > I think you want to use a disk clone to do this, something like the > clonezilla live CD. As long as the drives are the same size, or the target > drive is larger, clonezilla will just copy one drive to the other. It does > a bit by bit clone, so it doesn't care about files and permissions and > such. Unfortunately the original is larger. > Even if you could copy with cp, you need the boot sector and such to get > the OS up, so that wouldn't work. Actually it would. There are two ways to do that. First, which is what I did in order to find out if the new mobo would boot anything, is to install XP on the IDE drive. That created the MBR. I just erased everything that was installed on the disk. The other way is to copy the files over and run the XP boot disk repair console and run the fixmbr program, which will drop a new MBR on the drive. So, I'm stuck with two drives of different sizes, which adds to the problem. An interesting thought just came to mind. If I can get all of the XP stuff copied over and get it to boot and finish the XP upgrade, I can then copy over the remainder of the files for all of the other stuff, as I'll now have the permissions I need. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII [I've been to Earth. I know where it is. ] \ / Ribbon Campaign [And I'm gonna take us there.Starbuck 3/25/07] X Against Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Copying HDD to another HDD
I think you want to use a disk clone to do this, something like the clonezilla live CD. As long as the drives are the same size, or the target drive is larger, clonezilla will just copy one drive to the other. It does a bit by bit clone, so it doesn't care about files and permissions and such. Even if you could copy with cp, you need the boot sector and such to get the OS up, so that wouldn't work. LMH Mike Brown wrote: I'm in a situation where a new mobo refuses to boot the SATA boot HDD, but it will boot an IDE drive. So, I'm trying to copy all of the files from the SATA drive to the IDE drive, but I'm hitting a roadblock where there are files with 10-digit user/group IDs and file persmissions of 700, which means I can't copy the files because the Windblows IDs are different. It is XP Pro - 32 bit. What can I do that will allow me to do this: cd h: (cd g:/ ; tar cf -)|tar xvpf- and get all of the files copied from the SATA drive (g:) to the IDE drive (h:)? Thanks. Oh, and yes, the normal Windblows copy fails as well. Even though I am the only user on the system and should have 100% administrative permission, there are file that I can't copy. MB -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Copying HDD to another HDD
I'm in a situation where a new mobo refuses to boot the SATA boot HDD, but it will boot an IDE drive. So, I'm trying to copy all of the files from the SATA drive to the IDE drive, but I'm hitting a roadblock where there are files with 10-digit user/group IDs and file persmissions of 700, which means I can't copy the files because the Windblows IDs are different. It is XP Pro - 32 bit. What can I do that will allow me to do this: cd h: (cd g:/ ; tar cf -)|tar xvpf- and get all of the files copied from the SATA drive (g:) to the IDE drive (h:)? Thanks. Oh, and yes, the normal Windblows copy fails as well. Even though I am the only user on the system and should have 100% administrative permission, there are file that I can't copy. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII [I've been to Earth. I know where it is. ] \ / Ribbon Campaign [And I'm gonna take us there.Starbuck 3/25/07] X Against Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Can't get sshd to work
S. Cowles wrote: > > On Fri, 4 Nov 2011, gabier wrote: >> >> $ssh gabriel@freennas >> Password etc... Welcome... OK >> $scp gabriel@192.168.1.103:/cygdrive/E/gabriel/testfile.txt >> ~/gabriel/testfile.txt >> >> Now the connection is established but there is a password problem >> >> Permission denied, please try again. >> Permission denied, please try again. >> Permission denied (publickey,password,keyboard-interactive). > > > i think there is a chance this is not a password problem. from what is > shown, here, > it appears to be a typographical error. instead of: > > $scp gabriel@192.168.1.103:/cygdrive/E/gabriel/testfile.txt > ~/gabriel/testfile.txt > > maybe you should have typed the following? > > $scp gabriel@192.168.1.103:/cygdrive/E/gabriel/testfile.txt > ~gabriel/testfile.txt > > the error "permission denied" would arise because there is no such > directory: ~/gabriel. > > bonne chance avec la solution, monsieur. > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > As I explained in the EDIT in my preceding post it was indeed a typographical error, but not the one you guessed. It was a Gabriel/gabriel problem due to windows pecularities. Anyway, it works now Thank you for considering my problem :) gabier -- View this message in context: http://old.nabble.com/Can%27t-get-sshd-to-work-tp32779981p32788675.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple