Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48671 - inkscape-0.38.1: compile failure in libnr/nr-maybe.h
Summary: inkscape-0.38.1: compile failure in libnr/nr-maybe.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Graphics Project
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 04:30 UTC by Ed Catmur
Modified: 2004-06-14 08:54 UTC (History)
1 user (show)

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


Attachments
One liner patch (string.patch,489 bytes, patch)
2004-04-22 04:35 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2004-04-22 04:30:58 UTC
In file included from ../libnr/nr-rect.h:24,
from ../libnr/nr-macros.h:23,
from ../libnr/nr-matrix.h:22,
from ../libnr/nr-types.h:23,
from nr-types.cpp:1:
../libnr/nr-maybe.h: In constructor
`NR::IsNot<T>::IsNot()':
../libnr/nr-maybe.h:27: error: there are no arguments
to `string' that depend on a template parameter, so a
declaration of `string' must be available
../libnr/nr-maybe.h:27: error: (if you use
`-fpermissive', G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
In file included from ../libnr/nr-rect.h:24,
from nr-macros.h:23,
from nr-values.cpp:5:
../libnr/nr-maybe.h: In constructor
`NR::IsNot<T>::IsNot()':
../libnr/nr-maybe.h:27: error: there are no arguments
to `string' that depend on a template parameter, so a
declaration of `string' must be available
../libnr/nr-maybe.h:27: error: (if you use
`-fpermissive', G++ will accept your code, but allowing
the use of an undeclared name is deprecated)

Link is upstream. Patch to follow.
Comment 1 Ed Catmur 2004-04-22 04:35:56 UTC
Created attachment 29809 [details, diff]
One liner patch

Idiot-programmer-forgetting-to-use-namespace-std-for-string. Aargh.

Developers should be forced to compile their own code with -pedantic and
-Werror.
Comment 2 Hanno Böck gentoo-dev 2004-06-14 08:39:53 UTC
*** Bug 52918 has been marked as a duplicate of this bug. ***
Comment 3 Hanno Böck gentoo-dev 2004-06-14 08:54:17 UTC
added your patch.
Did you already send it to the inkscape-devs?
Comment 4 Hanno Böck gentoo-dev 2004-06-14 08:54:33 UTC
done