Failing to compile c file
Hello everyone, i trying to compile courier-imap-3.0.8 (no te latest version but that's a requirement) using gcc 4.4.5 (Debian 5) I ran:
How should I proceed? I' clueless. My stdio.h it's OK and not corrupted
How do I get more information? google didn't help much.
My first guess would be something included before stdio.h defined a macro that conflicts with some non macro declaration in stdio.h
I forget exact gcc options, but you can get the preprocessed intermediate step saved to a file and find the problem line in that file and see what if anything macro expansion did to that line.
More generally, compiling old open source projects in newer versions of gcc is often harder than it is worth. I understand you don't want to use a newer version of the original source code. What about using an older version of gcc? If installed correctly, an older version of gcc can be tied together with all its associated include files and co exist on your machine with the default version. You can set an environment variable to select the older version before running make on the old source code.
No solution, so far. These are my notes ...
A package, i386 :
Building courier-imap-3.0.8 :
cd courier-imap-3.0.8/ && zcat courier_0.47-4sarge5.diff.gz | patch -p1
export CC=gcc-3.3 && ./configure && make :
In file included from authstaticlistsearch.c:9:
/usr/include/stdio.h:397: error: syntaksfejl before '&&' token
make: *** [authstaticlistsearch.o] Error 1
Wasn't able to compile the file with gcc 4.* so I use
Thanks all for your help
|All times are GMT -5. The time now is 06:20 PM.|