Thread: [Java-gnome-developer] configure problem with CVS version.
Brought to you by:
afcowie
From: Nicholas R. <ni...@mn...> - 2004-10-25 14:40:14
|
I've been having problems trying to compile java-gnome from source. I have tried both the 2.7.4 tarball and the CVS version (by hand and via jhbuild). Here's what i get when running configure in libgtk-java: me: /usr/local/src/java-gnome/libgtk-java> ./configure loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking how to run the C preprocessor... cc -E checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /bin/install -c checking for db2html... nocommand checking for docbook2html... /usr/bin/docbook2html checking if /opt/blackdown-jdk-1.4.2/bin/javac works... yes checking if /opt/blackdown-jdk-1.4.2/bin/javac works... (cached) yes checking for javadoc... javadoc checking for jar... jar ./configure: line 2420: syntax error: unexpected end of file when running autogen.sh i get this: me: /usr/local/src/java-gnome/libgtk-java> ./autogen.sh Illegal variable name. can anyone point me in the right direction? thanks in advance for your help, Nick |
From: Mark H. <mh...@ti...> - 2004-10-25 18:53:33
|
On Mon, Oct 25, 2004 at 04:40:05PM +0200, Nicholas Rahn wrote: > me: /usr/local/src/java-gnome/libgtk-java> ./autogen.sh > Illegal variable name. Is that really the only error you get? What version of aclocal and autoconf are you using? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Andrew C. <an...@op...> - 2004-10-25 21:48:53
|
On Mon, 2004-10-25 at 16:40 +0200, Nicholas Rahn wrote: > ./configure: line 2420: syntax error: unexpected end of file I ran into this yesterday.=20 For some time now, I've had to build java-gnome WITHIN a jhbuild environment, that is: $ cd ~/cvs/gnome2/java-gnome/libgtk-java $ jhbuild shell % ./autogen --prefix=3D/opt/gnome2 And then it works. I had forgotten this, and yesterday was getting the problem you quote. I think my specific problem is that because I had a different prefix, I had to set PKG_CONFIG_PATH set to include the alternate prefix's .pc files. ie,=20 export PKG_CONFIG_PATH=3D/opt/gnome2/lib/pkgconfig:/usr/lib/pkgconf= ig =20 and THEN autogen worked. [Notably, one of the other results of all this is that I have to run eclipse as=20 $ jhbuild run /opt/eclipse/eclipse or, rather, as LD_LIBRARY_PATH=3D/opt/gnome2/lib /opt/eclipse/eclipse which is really annoying; but one thing which makes me happy is that I figured out the linker syntax -Wl,--rpath=3D/opt/gnome2/lib So when I'm generating binaries with gcj there are no enviornment variable issues at all. To be honest, this is all a horrid kludge. In part its borne of the fact that I have at present a gnome 2.6 installation and haven't gotten around to upgrading to gnome 2.8, and needed the gnome 2.8 libraries to build java-gnome.] AfC Toronto --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Nicholas R. <ni...@mn...> - 2004-10-26 09:52:31
|
I finally got everything to compile (except libbonobo but i'm not much interested in that at the moment) and run from CVS. Now even the gtkhtml problem i had from the other thread has gone away. Here are some things i had to do: 1. I needed to add a '!' on the first line of autogen.sh to complete the "#!/bin/bash" line. Without this, autogen.sh did not run on the command line or in jhbuild. Adding it made the the "illegal variable name" error go away. Once libgtk-java successfully compiled, the other modules did not show this problem (when compiled in jhbuild), even though they did not have the '!' either. It is very strange to me that the autogen.sh script would have such a "bug" in it. I'm sure it's not there for a reason (like jhbuild doesn't like it or something), but not having autogen.sh be a standard script seems problematic to me. 2. I needed to set my WANT_AUTOCONF environment variable to "2.5". Without this set, autoconf used v2.13 by default and the configure script was not properly generated (hence the "unexpected end of file" error). 3. in libgtk-java, in the file org_gnu_gtk_ActionGroup.c, i had to move the static function internalHandleActionCallback to just after the typedef in order to get it to compile. perhaps this is an issue with newer gccs (i have gcc-3.4.2)? these small issues i've had in the last few days aside, i really like java-gnome. I've been able to develop a prototype application very quickly using libglade and some of my existing Java libraries. Thanks again for your help and keep up the good work! nick ps. is this also the forum to submit patches/new-features? On Mon, 2004-10-25 at 19:52 +0100, Mark Howard wrote: > On Mon, Oct 25, 2004 at 04:40:05PM +0200, Nicholas Rahn wrote: > > me: /usr/local/src/java-gnome/libgtk-java> ./autogen.sh > > Illegal variable name. > > Is that really the only error you get? > What version of aclocal and autoconf are you using? > -- |
From: Mark H. <mh...@ti...> - 2004-10-26 11:05:15
|
Hi, This is excellent news that you're getting on so well with java-gnome and liking it. Please do keep us informed os your progress and if possible add details of any apps you write to our website . Quoting Nicholas Rahn <ni...@mn...>: > 1. I needed to add a '!' on the first line of autogen.sh to complete the > "#!/bin/bash" line. Without this, autogen.sh did not run on the command > line or in jhbuild. Adding it made the the "illegal variable name" > error go away. Once libgtk-java successfully compiled, the other > modules did not show this problem (when compiled in jhbuild), even > though they did not have the '!' either. This is terrible. I guess most ppl use bash and it seems to work, hence it was not picked up earlier. I'll fix it tonight. > It is very strange to me that the autogen.sh script would have such a > "bug" in it. I'm sure it's not there for a reason (like jhbuild doesn't > like it or something), but not having autogen.sh be a standard script > seems problematic to me. Me too. Unfortunately nobody with any knowledge of autotools has been helping out with java-gnome. I've been reading a lot of it myself. I think we need to convert to automake before we can use a standard autogen. This is a wishlist item, but I don't really have time myself and it would be better done by somebody who knows what they're doing. > 2. I needed to set my WANT_AUTOCONF environment variable to "2.5". > Without this set, autoconf used v2.13 by default and the configure > script was not properly generated (hence the "unexpected end of file" > error). I'll change this in cvs. > 3. in libgtk-java, in the file org_gnu_gtk_ActionGroup.c, i had to move > the static function internalHandleActionCallback to just after the > typedef in order to get it to compile. perhaps this is an issue with > newer gccs (i have gcc-3.4.2)? I've not seen it before, but making the change is easy enough and shouldn't affect other ppl. -- .""`. Mark Howard : :" : `. `" http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Luca De R. <pie...@fa...> - 2004-10-26 13:13:19
|
> ps. is this also the forum to submit patches/new-features? Patches and bug reports go in bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=3Djava-gnome Thanks for your interest! --=20 Luca De Rugeriis <pie...@fa...> |