Debian Bug report logs - #51267
-lieee -lm cannot generate shared binaries

version graph

Package: libc6-dev; Maintainer for libc6-dev is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6-dev is src:glibc (PTS, buildd, popcon).

Reported by: Samuel Tardieu <sam@debian.org>

Date: Thu, 25 Nov 1999 16:48:01 UTC

Severity: normal

Found in version 2.1.2-10

Done: GOTO Masanori <gotom@debian.or.jp>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Joel Klecker <debian-glibc@lists.debian.org>:
Bug#51267; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Samuel Tardieu <sam@debian.org>:
New Bug report received and forwarded. Copy sent to Joel Klecker <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Samuel Tardieu <sam@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: -lieee -lm cannot generate shared binaries
Date: Thu, 25 Nov 1999 17:46:26 +0100
Package: libc6-dev
Version: 2.1.2-10
Severity: normal

-lm -lieee cannot be used in shared mode. This prevents Erlang from building
cleanly.

% gcc -shared -o t.so t.c -lm
% gcc -shared -o t.so t.c -lieee
% gcc -shared -o t.so t.c -lieee -lm
% gcc -shared -o t.so t.c -lm -lieee
ld: t.so: undefined versioned symbol name _LIB_VERSION@@GLIBC_2.0
ld: failed to set dynamic section sizes: Bad value

  Sam

-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux antinea 2.2.13 #1 Mon Nov 8 12:40:02 CET 1999 i686

Versions of packages libc6-dev depends on:
ii  libc6                         2.1.2-10   GNU C Library: Shared libraries an



Reply sent to GOTO Masanori <gotom@debian.or.jp>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Samuel Tardieu <sam@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 51267-done@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: Samuel Tardieu <sam@debian.org>, 51267-done@bugs.debian.org, debian-glibc@lists.debian.org
Subject: Re: -lieee -lm cannot generate shared binaries
Date: Tue, 07 Jan 2003 01:32:21 +0900
> -lm -lieee cannot be used in shared mode. This prevents Erlang from building
> cleanly.
> 
> % gcc -shared -o t.so t.c -lm
> % gcc -shared -o t.so t.c -lieee
> % gcc -shared -o t.so t.c -lieee -lm
> % gcc -shared -o t.so t.c -lm -lieee
> ld: t.so: undefined versioned symbol name _LIB_VERSION@@GLIBC_2.0
> ld: failed to set dynamic section sizes: Bad value

No, -lieee have to place prior to -lm.  -lieee forces IEEE error 
handling rules for math functions in linking with -lm.  So, if you
put -lieee after -lm, it's meaningless.

If you think this matter should be in libc info, please tell us.
But I wonder why you use -lieee without any knowledge of its role.
I guess -lieee is needed for compiling on another archs/OSes...

Regards,
-- gotom



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 24 22:53:01 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.