Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 455414

Summary: dev-libs/libmix-2.05-r6 with clang-3.2 - aes/saferp.c:22:8: error: redefinition of 'expf' as different kind of symbol
Product: Gentoo Linux Reporter: Stephen Shkardoon <ss23>
Component: [OLD] LibraryAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal CC: jer, mgorny, ryao, voyageur
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: Build log

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.