FWD: undefined reference to main
"Michael F. Sprague" <[email protected]> Tue, 21 Sep 2004 10:53:25 -0400
| Newsgroups | gmane.mail.exim.exiscan.user |
|---|---|
| Message-ID | <[email protected]> |
After more thought, I figured this question was more relevant on the exim-users list. I asked there and the simple answer is to remove the build-* directory (if it exists) after installing the exiscan patch and before running make. thanks, mikeS ----- Forwarded message from "Michael F. Sprague" <[email protected]> ----- Date: Mon, 20 Sep 2004 17:05:50 -0400 To: [email protected] From: "Michael F. Sprague" <[email protected]> Subject: undefined reference to main Hi folks, I'm trying to compile exim-4.42 with the latest exiscan patch (-27) on a Debian sarge build. I had some compile errors having to do with SRC and Brightmail (which I don't use) and I was able to work around that. Now I get this error near the end of the build: awk '{ print ($1+1) }' cnumber.h > cnumber.temp rm -f cnumber.h; mv cnumber.temp cnumber.h gcc -c -O -DSPF -I/usr/local/include version.c rm -f exim gcc -o exim version.o \ pcre/libpcre.a \ routers/routers.a transports/transports.a lookups/lookups.a \ auths/auths.a \ -lresolv -lnsl -lcrypt \ -L/usr/local/lib -lspf2 -ldb -ldb -lmysqlclient -lssl -lcrypto /usr/lib/gcc-lib/i486-linux/3.3.4/../../../crt1.o(.text+0x18): In function `_start': ./sysdeps/i386/elf/start.S:98: undefined reference to `main' version.o(.text+0x9): In function `version_init': : undefined reference to `version_cnumber' version.o(.text+0x2f): In function `version_init': : undefined reference to `version_string' version.o(.text+0x39): In function `version_init': : undefined reference to `exiscan_version_string' version.o(.text+0x6a): In function `version_init': : undefined reference to `version_date' version.o(.text+0xa4): In function `version_init': : undefined reference to `version_date' version.o(.text+0xc0): In function `version_init': : undefined reference to `version_date' version.o(.text+0xd5): In function `version_init': : undefined reference to `version_date' version.o(.text+0xea): In function `version_init': : undefined reference to `version_date' collect2: ld returned 1 exit status make[1]: *** [exim] Error 1 make[1]: Leaving directory `/usr/local/src/mail/exim-4.42/build-Linux-i386' make: *** [go] Error 2 I've tried 3 different versions of gcc and I always get this error. Can anyone point me in the right direction? Thanks, mikeS -- Michael Sprague | [email protected] Partner | System and Network Engineering (SaNE), LLC use STD::disclaimer; ----- End forwarded message ----- -- Michael Sprague | [email protected] Partner | System and Network Engineering (SaNE), LLC use STD::disclaimer;