Everytime i run selfupdate in console after i install fink i get this right at the very end.
configure: error: C++ preprocessor "/lib/cpp" fails sanity check ### execution of /var/tmp/tmp.4.zJjc0H failed, exit code 1 Failed: compiling ncurses-5.3-20031018-2 failed
This is a symptom that shows that something is wrong with the functioning of your cpp executable (it is in /usr/bin, not in /lib, the latter is just configure's fallback value if no working cpp is found).
What is wrong cannot be guessed from the distance; there are several different possibilities. From the list archives:
In November, I asked someone who reported this problem:
Could you look in the config.log file for more details? It is in
/sw/src/ncurses-5.3-20031018-2/ncurses-5.3 and at the end it should show
you why the commands "$CC -E" and "$CC -E -traditional-cpp" failed for
you. You must have something unusual in your installation.
Some guesses: Do you set the environment variable CC in one of your shell startup scripts? Or is your Fink installed in /usr/local instead of /sw? Or does your partition have spaces in its name?
No answer, so I don't know if one of the guesses was right.
Here is what I replied to someone in January:
Could you have a look at the end of the config.log file in the build directory /sw/src/ncurses-5.3-20031018-2/ncurses-5.3-20031018/ncurses-5.3/ ? The fact that it tries to run the non-existent /lib/cpp indicates that some test for finding the real preprocessor failed, but this can have any of quite a few different causes.
Unfortunately, there was no response. Someone else did respond a couple of weeks earlier, and Alexander looked at his config.log file and wrote
Now, there's a suspicious thing in your config.log: the lack of stdio.h, types.h, and stat.h. This suggest that you are missing the DevSDK package from your Developer Tools installation.
No further response there in the list archives either. In another case in December, this cause seemed probable, too. I wrote
You may find more clues about what is wrong by inspecting the end of the file config.log in the directory /sw/src/ncurses-5.3-20031018-2/ncurses-5.3/ In particular, what comes after the line configure:10062: checking how to run the C++ preprocessor
Java Dude Replied:
Here is the section from the config.log:
configure:10062: checking how to run the C++ preprocessor
configure:10084: /usr/bin/g++ -E -I/sw/include -D_GNU_SOURCE -DNDEBUG conftest.cc
In file included from configure:10080:
/usr/include/gcc/darwin/3.3/assert.h:14:20: stdlib.h: No such file or directory
Whereupon I wrote:
The file /usr/include/stdlib.h is installed from the DevSDK.pkg. If you don't have this file, you won't get very far in compiling things. Reinstall DevSDK.pkg from your Xcode CD.
I hope you'll tell us how you get this to work!
-- Martin
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
