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:
Quote:
Quote:
Code:
Compiling checkpassword.c Code:
In file included from authlib/authstaticlistsearch.c:9: 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 /usr/include/stdio.h: Code:
387 #ifdef __USE_XOPEN2K8 |
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 : http://archive.debian.org/debian-arc...arge5_i386.deb > courier-imap_3.0.8-4sarge5_i386.deb Building courier-imap-3.0.8 : cd courier-imap-3.0.8/ && zcat courier_0.47-4sarge5.diff.gz | patch -p1 http://archive.debian.org/debian-arc...sarge5.diff.gz export CC=gcc-3.3 && ./configure && make : Compiling authstaticlistsearch.c In file included from authstaticlistsearch.c:9: /usr/include/stdio.h:397: error: syntaksfejl before '&&' token make[2]: *** [authstaticlistsearch.o] Error 1 |
Wasn't able to compile the file with gcc 4.* so I use
Code:
apt-get install courier-imap courier-imap-ssl courier-authlib-ldap courier-webadmin Thanks all for your help |
All times are GMT -5. The time now is 01:08 PM. |