Le 22 déc. 08 à 11:49, Andreas Höschler a écrit : > Hi Quentin, > > thanks for responding! > >>> since >>> >>> cd /usr/src/Etoile >>> make >>> >>> did not work on my Solaris box, I went into the subdirs >>> >>> cd /usr/src/Etoile/Frameworks/EtoileFoundation/EtoileThread >>> make >>> >>> -bash-3.00# make >>> /bin/sh: syntax error at line 1: `end of file' unexpected >>> make: *** [before-all] Error 2 >> >> Do you get this error only with Étoilé projects and not other >> projects >> which are also built with gnustep-make? > > I could built Affiche, Terminal and TextEdit without problems!
ok. Then this error comes from etoile.make command rules I think. Until now, etoile.make was using 'find' command with 'maxdepth' option and this option is not supported on Solaris, so I just rewrote it, see http://svn.gna.org/viewcvs/etoile?rev=4161&view=rev You can replace the etoile.make bundled with the 0.4 release by the version r4161 from trunk, and see whether that helps or not. Depending on your sh version, the etoile.make command rules (before- all::, after-all:: etc.) could need further adjustements. I remember that some comment lines within the command rules were giving me similar weird errors in the past. >>> Build Project: EtoileThread >>> >>> [snip] >>> method >>> ETThread.m:102: warning: local declaration of `thread' hides >>> instance >>> variable >>> make[1]: *** [obj/ETThread.m.o] Error 1 >>> make: *** [EtoileThread.all.framework.variables] Error 2 >>> >>> This still leaves me clueless. Help is appreciated! >> >> Looks like the problem is that ivars are exposed in the scope of >> class >> methods as explained here: >> http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02552.html >> Changing line 87 of ETThread.m to use another local variable name >> should fix the problem. For example: >> ETThread *newThread = [[ETThread alloc] init]; > > I have done that. It stops in ETThreadedObject now. > > [snip] > -bash-3.00# gcc --version > gcc (GCC) 3.4.4 > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There > is > NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > I built the above with "make messages=yes". I just don't understand > why > "make" always gives me > > /bin/sh: syntax error at line 1: `end of file' unexpected > make: *** [before-all] Error 2 That's an etoile.make and sh compatibility issue. Try to test with the changes I suggested above. > in the Etoile code tree? Should I upgrade to another gcc? Well I would suggest to upgrade to GCC 4.1 or higher and see whether that helps, 3.4 is a bit old you might get other problems when compiling the rest of the repository. We should probably update the INSTALL file to mention GCC 4.0 or higher is required… Quentin. _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
