One more note, it seems that the problem is with the CDPATH variable. 
For some reason "cd" behaves differently in the shell, where leaving out 
the "./" in front of a folder name causes no harm. Anyway, the mystery 
got solved by removing the CDPATH variable from the environment and then 
I can build without further changes.

The same problem also occurred with other sources, not just Valgrind. 
This is what made me suspicious.


// Oliver


On 2010-02-16 21:15, Oliver Schneider wrote:
> Alright, I got it to build by using a dirty trick. I did test this up
> front with a single goal from the make file and then with all.
>
> Before running "./configure" I did this from inside the source directory:
>
> find -name 'Makefile.in' -exec sed -i 's/cd \$\$subdir/cd
> \$(CURDIR)\/\$\$subdir/' {} \;
>
> The idea is to make all occurrences of of 'cd $$subdir' in all
> Makefile.in files absolute paths instead of the (default) relative
> directory. Strangely enough this does the job. But it is still odd that
> make would act up, since the "pwd" output from my previous post clearly
> showed that the current directory was the correct one ...
>
> But it's beyond me why "cd" failed. Anyway, perhaps this line above (no
> line breaks, though) will help others having similar issues (remember to
> call ./configure after it, though) ...
>
>
> // Oliver

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to