Page 1 of 1

trouble compiling on linux....

Posted: Fri Apr 08, 2005 8:38 pm
by doh7
I have the ircd working fine on windows... I am trying to install it on Fedora Core 3 now...

I get this error when it tries to compile Config:
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking if gcc has a working -pipe... yes
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for touch... /bin/touch
checking for openssl... /usr/bin/openssl
checking for install... /usr/bin/install
checking for gmake... gmake
checking for gmake... /usr/bin/gmake
checking for gunzip... /usr/bin/gunzip
checking for pkg-config... /usr/bin/pkg-config
checking for crypt in -ldescrypt... no
checking for crypt in -lcrypt... yes
checking for socket in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
| |
| UnrealIRCd Compile-Time Config |
|_______________________________________________________________________|
|_______________________________________________________________________|
| |
| Now all you have to do is type 'make' and let it compile. When that's |
| done, you will receive other instructions on what to do next. |
| |
|_______________________________________________________________________|
|_______________________________________________________________________|
| - The UnrealIRCd Team - |
| |
| * Stskeeps [email protected] |
| * codemastr [email protected] |
| * Syzop [email protected] |
|_______________________________________________________________________|
also, which file do I make?
# make
make: *** No targets specified and no makefile found. Stop.

Posted: Fri Apr 08, 2005 10:44 pm
by codemastr
Looks like your gcc (well specifically, the preprocessor) is broken. Try reinstalling it.

Posted: Sat Apr 09, 2005 10:20 am
by AngryWolf
Additionally, you can't do 'make' until ./Config finishes without errors. That script is what generates the 'Makefile' for you, which is needed by 'make'.

Posted: Sat Apr 09, 2005 5:50 pm
by doh7
I reinstalled gcc, and still no luck.

Posted: Sat Apr 09, 2005 8:19 pm
by codemastr
Then I'd suggest contacting the gcc support team and asking them why your preprocessor does not work.

Posted: Sat Apr 09, 2005 10:12 pm
by AngryWolf
Oh, I think I've got an idea: see config.log, it should provide you with some details about the error. Possibly helps. (That's all we can do, because what is supported here is strictly UnrealIRCd, not operating systems and other kind of things unrelated to it.)