Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

My sister opened a computer store in Hawaii. She sells C shells down by the seashore.


computers / alt.os.linux.slackware / Problem compiling Dean Jones' eMail program

SubjectAuthor
* Problem compiling Dean Jones' eMail programChris Elvidge
`* Re: Problem compiling Dean Jones' eMail programRalph Spitzner
 `* Re: Problem compiling Dean Jones' eMail programRichard Kettlewell
  +* Re: Problem compiling Dean Jones' eMail programRalph Spitzner
  |`- Re: Problem compiling Dean Jones' eMail programRichard Kettlewell
  `* Re: Problem compiling Dean Jones' eMail programChris Elvidge
   `- Re: Problem compiling Dean Jones' eMail programRichard Kettlewell

1
Problem compiling Dean Jones' eMail program

<smbhde$sq9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=739&group=alt.os.linux.slackware#739

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.slackware
Subject: Problem compiling Dean Jones' eMail program
Date: Mon, 8 Nov 2021 15:57:33 +0000
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <smbhde$sq9$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Nov 2021 15:57:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="317f49989cb5de2fdb32f4f67211378c";
logging-data="29513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QNKj/NC+gf2x0xFIfwNbcscEN+ONZMgs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:GStAuniQWBKoEchwV9uNU08fY7c=
Content-Language: en-GB
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Chris Elvidge - Mon, 8 Nov 2021 15:57 UTC

Slackware15

Linux slack15.local 5.15.1 #1 SMP PREEMPT Sat Nov 6 14:39:05 CDT 2021
x86_64 GNU/Linux

I'm trying to install Dean Jones' email program -
https://github.com/deanproxy/eMail

Compiles OK on Raspbian and LMDE4

On Slackware (and VOID) I am getting errors from the linker - ld - like
this:

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

These messages repeat for each .o file in src/

addr_parse.o addy_book.o conf.o error.o execgpg.o file_io.o message.o
mimeutils.o processmail.o progress_bar.o remotesmtp.o sig_file.o
smtpcommands.o utils.o

Any ideas what could be wrong? Anyone else tried compiling this program?

Later: I transferred all the installed files from the LMDE computer to
the Slackware computer, and it seems to work, so at least I've got a
working program.

Thanks

--
Chris Elvidge
England

Re: Problem compiling Dean Jones' eMail program

<smca7i$38o$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=740&group=alt.os.linux.slackware#740

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rasp@spitzner.org (Ralph Spitzner)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 9 Nov 2021 00:01:03 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <smca7i$38o$1@dont-email.me>
References: <smbhde$sq9$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Nov 2021 23:01:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d978ee0970259b5e138e2ce4051f8558";
logging-data="3352"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yG2pLZSCYjDbRTUIGNQbfk2N2dHW/kSo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.9.1
Cancel-Lock: sha1:3BaF1rDz3CySliJmYqIo6Vr1rNw=
In-Reply-To: <smbhde$sq9$1@dont-email.me>
 by: Ralph Spitzner - Mon, 8 Nov 2021 23:01 UTC

Chris Elvidge wrote on 11/8/21 4:57 PM:
> Slackware15
>
> Linux slack15.local 5.15.1 #1 SMP PREEMPT Sat Nov 6 14:39:05 CDT 2021 x86_64 GNU/Linux
>
> I'm trying to install Dean Jones' email program - https://github.com/deanproxy/eMail
>
> Compiles OK on Raspbian and LMDE4
>
[...]

don't know why this is on slackware, but anyway:
change include/email.h from line 81 to:
/* Globally defined vars */
extern dhash table;
extern char *conf_file;

extern struct mailer_options {
bool verbose;
bool encoding;
short html;
short priority;
short receipt;
short blank;
GpgCallType gpg_opts;
char *subject;
dlist attach;
dlist headers;
dlist to;
dlist cc;
dlist bcc;
} Mopts

and insert into src.email.c (after the #inlude... lines):
dhash table;
char *conf_file;

struct mailer_options Mopts ;

maybe this guy should read a book about C :-P

Re: Problem compiling Dean Jones' eMail program

<87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=741&group=alt.os.linux.slackware#741

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 09 Nov 2021 09:50:31 +0000
Organization: terraraq NNTP server
Message-ID: <87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>
References: <smbhde$sq9$1@dont-email.me> <smca7i$38o$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="29876"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:X/SNCYbR5i9MGxb1tkQmuJtAyMw=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Tue, 9 Nov 2021 09:50 UTC

Ralph Spitzner <rasp@spitzner.org> writes:
> Chris Elvidge wrote on 11/8/21 4:57 PM:
>> Slackware15
>>
>> Linux slack15.local 5.15.1 #1 SMP PREEMPT Sat Nov 6 14:39:05 CDT
>> 2021 x86_64 GNU/Linux
>>
>> I'm trying to install Dean Jones' email program -
>> https://github.com/deanproxy/eMail
>>
>> Compiles OK on Raspbian and LMDE4
>
> [...]
>
> don't know why this is on slackware, but anyway:

> change include/email.h from line 81 to:
[...]
> maybe this guy should read a book about C :-P

It used to work (and presumably can still work if you turn -fcommon back
on).

https://gcc.gnu.org/gcc-10/porting_to.html

--
https://www.greenend.org.uk/rjk/

Re: Problem compiling Dean Jones' eMail program

<smdisp$5hi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=742&group=alt.os.linux.slackware#742

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rasp@spitzner.org (Ralph Spitzner)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 9 Nov 2021 11:35:04 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <smdisp$5hi$1@dont-email.me>
References: <smbhde$sq9$1@dont-email.me> <smca7i$38o$1@dont-email.me>
<87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 9 Nov 2021 10:35:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d978ee0970259b5e138e2ce4051f8558";
logging-data="5682"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7gm5ouc4GzytpT02lo4XQMotMW+3JsQU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.9.1
Cancel-Lock: sha1:/5lW4M5lLRxXyBGmw7xsonoje4E=
In-Reply-To: <87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>
 by: Ralph Spitzner - Tue, 9 Nov 2021 10:35 UTC

Richard Kettlewell wrote on 11/9/21 10:50 AM:

> It used to work (and presumably can still work if you turn -fcommon back
> on).
>

ah, ok, "CFLAGS=-fcommon ./configure"

does do it.

cite from gnu.org:
"It is mainly useful to enable legacy code to link without errors."

what standard is this (legacy) k&r ?

-rasp

Re: Problem compiling Dean Jones' eMail program

<87czn9r4mw.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=743&group=alt.os.linux.slackware#743

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 09 Nov 2021 10:43:19 +0000
Organization: terraraq NNTP server
Message-ID: <87czn9r4mw.fsf@LkoBDZeT.terraraq.uk>
References: <smbhde$sq9$1@dont-email.me> <smca7i$38o$1@dont-email.me>
<87ilx1r72w.fsf@LkoBDZeT.terraraq.uk> <smdisp$5hi$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="31026"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:PNJjbeeffyHPzTwVsTcVNCHVAyo=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Tue, 9 Nov 2021 10:43 UTC

Ralph Spitzner <rasp@spitzner.org> writes:
> Richard Kettlewell wrote on 11/9/21 10:50 AM:
>
>> It used to work (and presumably can still work if you turn -fcommon back
>> on).
>>
>
> ah, ok, "CFLAGS=-fcommon ./configure"
>
> does do it.
>
> cite from gnu.org:
> "It is mainly useful to enable legacy code to link without errors."
>
> what standard is this (legacy) k&r ?

No standard. Even first edition K&R forbids the duplication (s11.2 para
2). It’s just something that mostly worked for a long time.

--
https://www.greenend.org.uk/rjk/

Re: Problem compiling Dean Jones' eMail program

<smdls4$ron$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=744&group=alt.os.linux.slackware#744

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 9 Nov 2021 11:25:55 +0000
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <smdls4$ron$1@dont-email.me>
References: <smbhde$sq9$1@dont-email.me> <smca7i$38o$1@dont-email.me>
<87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 9 Nov 2021 11:25:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ceea3db092e2fb23a0d75f8efd59be53";
logging-data="28439"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18O0fzmODHOwqdBRqqkb4393sSjsmCV3gY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:MfLcx9PavoR34FPvZWt3/QY1SO8=
In-Reply-To: <87ilx1r72w.fsf@LkoBDZeT.terraraq.uk>
Content-Language: en-GB
 by: Chris Elvidge - Tue, 9 Nov 2021 11:25 UTC

On 09/11/2021 09:50 am, Richard Kettlewell wrote:
> Ralph Spitzner <rasp@spitzner.org> writes:
>> Chris Elvidge wrote on 11/8/21 4:57 PM:
>>> Slackware15
>>>
>>> Linux slack15.local 5.15.1 #1 SMP PREEMPT Sat Nov 6 14:39:05 CDT
>>> 2021 x86_64 GNU/Linux
>>>
>>> I'm trying to install Dean Jones' email program -
>>> https://github.com/deanproxy/eMail
>>>
>>> Compiles OK on Raspbian and LMDE4
>>
>> [...]
>>
>> don't know why this is on slackware, but anyway:
>
>> change include/email.h from line 81 to:
> [...]
>> maybe this guy should read a book about C :-P
>
> It used to work (and presumably can still work if you turn -fcommon back
> on).
>
> https://gcc.gnu.org/gcc-10/porting_to.html
>

Thanks for that.
It was the change to GCC that caused it.
Slackware 15 is on 11.2, Debian is still on 8.3

--
Chris Elvidge
England

Re: Problem compiling Dean Jones' eMail program

<871r3pqxey.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=745&group=alt.os.linux.slackware#745

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: Problem compiling Dean Jones' eMail program
Date: Tue, 09 Nov 2021 13:19:17 +0000
Organization: terraraq NNTP server
Message-ID: <871r3pqxey.fsf@LkoBDZeT.terraraq.uk>
References: <smbhde$sq9$1@dont-email.me> <smca7i$38o$1@dont-email.me>
<87ilx1r72w.fsf@LkoBDZeT.terraraq.uk> <smdls4$ron$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="705"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:BmSq4Js4IZc/n7MMvCfsEW6jYqU=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Tue, 9 Nov 2021 13:19 UTC

Chris Elvidge <chris@mshome.net> writes:
> It was the change to GCC that caused it.
> Slackware 15 is on 11.2, Debian is still on 8.3

Debian stable has GCC 10.

https://packages.debian.org/bullseye/gcc

--
https://www.greenend.org.uk/rjk/

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor