Linked by Eugenia Loli on Wed 23rd Mar 2005 23:18 UTC, submitted by adel
Permalink for comment
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/18/13 21:06 UTC
Linked by Thom Holwerda on 05/18/13 7:37 UTC
Linked by fran on 05/18/13 1:38 UTC
Linked by Thom Holwerda on 05/17/13 23:35 UTC, submitted by kragil
Linked by MOS6510 on 05/17/13 22:22 UTC
Linked by Thom Holwerda on 05/17/13 22:15 UTC, submitted by Tom
Linked by Thom Holwerda on 05/16/13 21:41 UTC
Linked by Thom Holwerda on 05/16/13 17:04 UTC
Linked by Thom Holwerda on 05/16/13 13:17 UTC
Linked by Thom Holwerda on 05/16/13 12:06 UTC
More News »
Sponsored Links



I only saw a problem as regards:
@XTHREADS_CFLAGS@
not:
@XTHREADS_LIBS@
I won't even pretend to understand how the software works. All I did was do some basic pattern recognition and guessed-and guessed right!-which is more a matter of luck than knowledge.
I cannot tell you:
a) the difference between @XTHREADS_CFLAGS@ and -DXTHREADS
b) the difference between @XTHREADS_LIBS@ and @XTHREADS_CFLAGS@
my working assumption is that when you see a gcc error message, or a Makefile, referencing somthething surrounded by @ symbols, that this means that the autogen.sh/configure process failed to resolve whatever is found between the @ symbols.
I was building with jhbuild and got the @XTHREADS_CFLAGS@ error as reported by gcc. jhbuild offered me a choice of options as to what to do next. I chose '4' which dropped me back to a shell in the working directory where the compile failed. I then looked around in the configure file to see if I could see what was going on-somewhere I saw a reference to -DXTHREAD and thought, hmmm, that naming convention isn't purely coincidental is it? so I opened up the Makefile in a text editor(nano) and searched for. Sure enough I found 2 references to @XTHREADS_LIBS@. I then replaced each occurence with -DXTHREAD and then exited (exit)the shell landing back in the jhbuild menu and chose 1 to restart the compilation. Some of the packages consist of mulitple subdirectories each with their own Makefile- xserver for example- in which case I edited each of the Makefiles making the substitution described above. Luckily I only had to edit and change about 6 or 7 Makefiles total...
I imagine you could just switch into your JHBUILD_ROOT_PATH, which by me was /root/cvs/gnome2 and simply do something like the following(note I haven't tried this-so don't shoot me if it doesn't work)
find . -name 'Makefile' -exec sed -i 's/@XTHREADS_CFLAGS@/-DXTHREADS/g' {} ;
find . -name 'Makefile' -exec sed -i 's/@XTHREADS_LIBS@/-DXTHREADS/g' {} ;
notes:
1) not sure about my sed syntax here....don't know if @ or _ is a special charachter....
2) I know this works for @XTHREADS_CFLAGS@ -but I am not sure about @XTHREADS_LIBS@-try it-if it doesn't compile I was wrong