deanproxy / eMail

Command line SMTP client
https://www.deanproxy.com/code
GNU General Public License v2.0
135 stars 46 forks source link

Compile/link error - multiple definitions of Mops, table, conf_file #57

Closed chris-elvidge closed 2 years ago

chris-elvidge commented 2 years ago

I get this error (from the linker) when compiling (Slackware 15 and/or Void Linux)

/usr/bin/ld: addr_parse.o:/home/chris/eMail/include/email.h:81: multiple definition of Mopts'; email.o:/home/chris/eMail/include/email.h:81: first defined here /usr/bin/ld: addr_parse.o:/home/chris/eMail/include/email.h:65: multiple definition ofconf_file'; email.o:/home/chris/eMail/include/email.h:65: first defined here /usr/bin/ld: addr_parse.o:/home/chris/eMail/include/email.h:64: multiple definition of `table'; email.o:/home/chris/eMail/include/email.h:64: first defined here

This repeats for all the .o files Anything I can do? See attached for configure and make. Cheers make-errors.txt

chris-elvidge commented 2 years ago

It compiles OK on LMDE. (And Raspbian. Is Debian a requirement?) The compiled program will then run when transferred to Slackware box.

chris-elvidge commented 2 years ago

OK. The problem occurs because of changed defaults when compiling with GCC 10 or greater. Debian is still on 8. Change ./configure line to CFLAGS=-fcommon ./configure