Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.utils.bug > #2274

Re: [sharutils] Does not compile with -fno-common

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Bruce Korb <bruce.korb@gmail.com>
Newsgroups gnu.utils.bug
Subject Re: [sharutils] Does not compile with -fno-common
Date Tue, 28 Jan 2020 18:06:53 -0800
Lines 27
Approved bug-gnu-utils@gnu.org
Message-ID <mailman.1.1580263625.2384.bug-gnu-utils@gnu.org> (permalink)
References <dc59915b-005b-12fd-d990-96a483cdb6b4@suse.de> <20200123151904.GA16884@dhcp-0-146.brq.redhat.com> <90678e4f-ff76-213e-f96c-28830197148b@gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1580263625 19700 209.51.188.17 (29 Jan 2020 02:07:05 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-gnu-utils@gnu.org
Envelope-to bug-gnu-utils@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=9Tz01ysfZbAYAaxXRrVMJm8B/l2gSWC79LIxNtg0h0U=; b=FVAibifgb6ZC6tbylLA560FZMpsTdAhsWePS3Z3eQkxEOLpH+6AH0XVoJfsKIdN/YX m4rfQQH4bIX4UlkOMDlPhm1e8iyCR67pOYl0JphoUqvqV0la0jMsQIgS1Kiv2r35DoJn DPgEkDzuq+O+xUxfLi5YRv8huFeMAMtW9uRcJbEFZ9vS+vEP6mlmMU2aHpfLc59Io1EL kGIFBo3lwk0jUAqqT9U/XEZsKNaZIJvVKwnjSH13ka1uqFDU4C/rMLKFRyHITNSbMWOJ DyW0z4PyGxi/wBnFDc47avs4OMGAY3I2PCcL7ti3F7PmXhd6VnTTyimmHRB5el59mqXA QI8w==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9Tz01ysfZbAYAaxXRrVMJm8B/l2gSWC79LIxNtg0h0U=; b=GdQnzVUN30xuR4/in9KEQdiUqvr+T7/6prCM34cVIBPmuVEnRxJ+jFTwrKq79aZTeP JXCbsevL2JTPV7KZ6rTX1bmIKzOPCDGdOfBP6jKW9oyWNrPlXxBkFyYfDd2IC9uIHnol dJ6yCey5sT5iG6KuIZxifALY5UWTAL+XuJSzi8u/Ni4Hs2wXjkKhnT2poTGDI087Vz6c oj/3UcORBvjz0pgYEGkBb7v0JfHqPto5dzfgK9EaF/yafGZ5dqg0gOnGBo/PtdMufjeC GnhylQdk8XcFTEDcBXv1M/UAUxv3CW8Zep9xBP1ippiHSYPf9HSJGuACADxm2uOxRmyl SDZw==
X-Gm-Message-State APjAAAWQiu0KwSZsEN28ags5nMhgR+QFllb4TyhviT0Wd8fRl/vkydJZ MDvEMSfO/R2MJ0Blk7kSaEy9LLmv
X-Google-Smtp-Source APXvYqyojzrpiBGwZcoC23g7s9sfF+vbaBotNfkPnp8S/+jsvhoaDSLFOr2TYCeYVOI9Z7cfcGj6sw==
X-Received by 2002:a17:90a:c301:: with SMTP id g1mr8148868pjt.88.1580263614659; Tue, 28 Jan 2020 18:06:54 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1
In-Reply-To <20200123151904.GA16884@dhcp-0-146.brq.redhat.com>
Content-Language en-US
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::644
X-BeenThere bug-gnu-utils@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU utilities <bug-gnu-utils.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-gnu-utils>
List-Post <mailto:bug-gnu-utils@gnu.org>
List-Help <mailto:bug-gnu-utils-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <90678e4f-ff76-213e-f96c-28830197148b@gmail.com>
X-Mailman-Original-References <dc59915b-005b-12fd-d990-96a483cdb6b4@suse.de> <20200123151904.GA16884@dhcp-0-146.brq.redhat.com>
Xref csiph.com gnu.utils.bug:2274

Show key headers only | View raw


On 1/23/20 7:19 AM, Petr Pisar wrote:
> On Mon, Jan 20, 2020 at 07:47:15PM +0100, Christian Voegl wrote:
>> Trying to build sharutils 4.15.2 with  -fno-common fails with
>>
>>    [   30s]
>>    /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
>>    shar-opts.o:(.data.rel.ro.local+0x0): multiple definition of
>>    `program_name'; shar.o:(.rodata+0x10): first defined here
>>    [   30s]
>>    /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
>>    ../lib/libgnu.a(md5.o): in function `md5_stream':
>>    [   30s] md5.c:(.text+0x15d): multiple definition of `md5_stream';
>>    shar.o:shar.c:(.text+0x28): first defined here
>>
>>
>> As -fno-common is going to be the default, I think this should be fixed.
>>
> Please try the two patches attached. The first one should fix the program_name
> symbol. The second the md5_stream symbol. I was able to reproduce the first
> one, but not the second one. (Depiste tha fact I do not link to openssl.)
> 
> -- Petr

Thank you guys. I'll queue this up for when I can figure out how to
re-run "autoreconf" once again. Meanwhile, use Petr's patch.

Back to gnu.utils.bug | Previous | Next | Find similar


Thread

Re: [sharutils] Does not compile with -fno-common Bruce Korb <bruce.korb@gmail.com> - 2020-01-28 18:06 -0800

csiph-web