Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455414 - dev-libs/libmix-2.05-r6 with clang-3.2 - aes/saferp.c:22:8: error: redefinition of 'expf' as different kind of symbol
Summary: dev-libs/libmix-2.05-r6 with clang-3.2 - aes/saferp.c:22:8: error: redefiniti...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: systemwide-clang
  Show dependency tree
Reported: 2013-02-04 11:26 UTC by Stephen Shkardoon
Modified: 2014-07-05 15:59 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

Build log (libmix.log,10.65 KB, text/plain)
2013-02-04 11:27 UTC, Stephen Shkardoon

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Shkardoon 2013-02-04 11:26:35 UTC
The issue is the naming of variables after standard C functions, such as logf and expf.
The issue would apply whether specifying c89 or not (see:
A fix is to add some sed to the ebuild:
sed -i -e's/logf/logf_alt/g' aes/saferp.c || die 'sed failed'
sed -i -e's/expf/expf_alt/g' aes/saferp.c || die 'sed failed'

The upstream link from the ebuild is dead, so I cannot report it there.

Reproducible: Always
Comment 1 Stephen Shkardoon 2013-02-04 11:27:13 UTC
Created attachment 337904 [details]
Build log
Comment 2 Pacho Ramos gentoo-dev 2014-01-03 15:55:44 UTC
Is this a bug in libmix or in clang?
Comment 3 Stephen Shkardoon 2014-01-03 19:59:59 UTC
(In reply to Pacho Ramos from comment #2)
> Is this a bug in libmix or in clang?

It could be fixed in either, though I'm inclined to say it's a bug in clang/llvm. That being said, I can't imagine it good form to do what libmix is doing), so it might be a good idea to get it changed there too/instead.

Given the amount of time it's been in the clang bug tracker already, I don't think it likely to be "fixed" there any time soon.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-05 15:59:27 UTC
Fixed in -r7 by adding those sed scripts from comment #0.