Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576260 - media-libs/svgalib-1.9.25-r5 Fails to Build
Summary: media-libs/svgalib-1.9.25-r5 Fails to Build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Savchenko
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 15:17 UTC by Todd Goodman
Modified: 2016-05-25 07:57 UTC (History)
1 user (show)

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


Attachments
Patch that works for me in /usr/portage/patches/media-libs/svgalib (redef.patch,662 bytes, patch)
2016-03-02 15:18 UTC, Todd Goodman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Goodman 2016-03-02 15:17:01 UTC
svgalib gets multiple redefinition errors of the form:

quickmath.o: In function `fsqr':
quickmath.c:(.text+0x0): multiple definition of `fsqr'
3dinit.o:3dinit.c:(.text+0x0): first defined here
quickmath.o: In function `lsqr':
quickmath.c:(.text+0x10): multiple definition of `lsqr'
3dinit.o:3dinit.c:(.text+0x10): first defined here
quickmath.o: In function `fmax':
quickmath.c:(.text+0x20): multiple definition of `fmax'
3dinit.o:3dinit.c:(.text+0x20): first defined here
quickmath.o: In function `fmin':
quickmath.c:(.text+0x40): multiple definition of `fmin'
3dinit.o:3dinit.c:(.text+0x40): first defined here
quickmath.o: In function `fsgn':
quickmath.c:(.text+0x60): multiple definition of `fsgn'
3dinit.o:3dinit.c:(.text+0x60): first defined here
quickmath.o: In function `dot':
quickmath.c:(.text+0xb0): multiple definition of `dot'
3dinit.o:3dinit.c:(.text+0xb0): first defined here
quickmath.o: In function `cross':
quickmath.c:(.text+0xd0): multiple definition of `cross'
3dinit.o:3dinit.c:(.text+0xd0): first defined here
quickmath.o: In function `plus':
quickmath.c:(.text+0x120): multiple definition of `plus'
3dinit.o:3dinit.c:(.text+0x120): first defined here
quickmath.o: In function `minus':
quickmath.c:(.text+0x150): multiple definition of `minus'
3dinit.o:3dinit.c:(.text+0x150): first defined here
quickmath.o: In function `times':
quickmath.c:(.text+0x180): multiple definition of `times'

this may be related to building with gcc-5.3.0?

It looks like Fedora and RedHat have experienced this problem.

I'll attach a patch that works for me (but should be cleaned up.)

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 media-libs/svgalib
2.
3.
Actual Results:  
Build fails with errors about redefinitions in quickmath.h

Expected Results:  
Build is successful
Comment 1 Todd Goodman 2016-03-02 15:18:31 UTC
Created attachment 427226 [details, diff]
Patch that works for me in /usr/portage/patches/media-libs/svgalib
Comment 2 Andrew Savchenko gentoo-dev 2016-05-24 20:23:34 UTC
Yep, this is gcc-5.3 related issue (new C11 standard is enforced by default).
Comment 3 Andrew Savchenko gentoo-dev 2016-05-25 07:57:30 UTC
Fixed in tree, no patch is needed: -fgnu89-inline is sufficient (and recommended by GCC-5 porting guide).

No version bump, refetch tree if necessary.