FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 02-23-2012, 06:44 PM
Jonathan Nieder
 
Default Bug#584572: libstdc++6: symbol lookup error: undefined symbol

severity 584572 wishlist
tags 584572 = patch
quit

Eugene V. Lyubimkin wrote:

> A possible reason: https://bugzilla.novell.com/show_bug.cgi?id=637202#c8

Witold Baryluk wrote:

> So it looks that current unstable libstdc++6 should have updated
> version in Depends: libc6, or other libc6 releated package.

Yup, thanks. Upgrades skipping a major Debian release are not
supported, so adjusting severity. Thanks to Eugene for figuring it
out.

STB_GNU_UNIQUE handling was added in glibc 2.11. How about this patch
(untested)?

debian/changelog | 7 +++++++
debian/control.m4 | 2 +-
debian/rules.conf | 6 ++----
3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9668cc2b..2f2ae498 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gcc-4.6 (4.6.2-15.1) local; urgency=low
+
+ * libstdc++ depends on libc (>= 2.11) for STB_GNU_UNIQUE support
+ (Eugene V. Lyubimkin). Closes: #584572.
+
+ -- Jonathan Nieder <jrnieder@gmail.com> Thu, 23 Feb 2012 13:34:28 -0600
+
gcc-4.6 (4.6.2-15) unstable; urgency=low

* Update to SVN 20120219 (r184373) from the gcc-4_6-branch.
diff --git a/debian/control.m4 b/debian/control.m4
index 9d793b44..cbae8a86 100644
--- a/debian/control.m4
+++ b/debian/control.m4
@@ -1827,7 +1827,7 @@ Package: libstdc++CXX_SO`'LS
Architecture: ifdef(`TARGET',`all',`any')
Section: ifdef(`TARGET',`devel',`libs')
Priority: ifdef(`TARGET',`extra',PRI(required))
-Depends: BASEDEP, ${shlibsepends}, ${miscepends}
+Depends: BASEDEP, ${dep:libc}, ${shlibsepends}, ${miscepends}
ifdef(`TARGET',`Provides: libstdc++CXX_SO-TARGET-dcv1',
ifdef(`MULTIARCH', `Multi-Arch: same
Pre-Depends: multiarch-support
diff --git a/debian/rules.conf b/debian/rules.conf
index 719c34d8..0c0de980 100644
--- a/debian/rules.conf
+++ b/debian/rules.conf
@@ -145,11 +145,8 @@ endif
#BINUTILS_BUILD_DEP += , binutils-gold (>= $(BINUTILSV)) [$(gold_archs)]

# libc-dev dependencies
-libc_ver := 2.5
+libc_ver := 2.11
libc_dev_ver := $(libc_ver)
-ifneq (,$(findstring gnat,$(PKGSOURCE)))
- libc_ver := 2.9-21
-endif
ifeq ($(with_multiarch_lib),yes)
ifeq ($(distribution),Debian)
libc_dev_ver := 2.13-5
@@ -784,6 +781,7 @@ substvars-file:
echo 'binutils:Version=$(BINUTILSV)';
echo 'dep:libgcc=$(LIBGCC_DEP)';
echo 'dep:libgccbiarch=$(LIBGCC_BIARCH_DEP)';
+ echo 'dep:libc=$(LIBC_DEP) (>= $(libc_ver)';
echo 'dep:libcdev=$(LIBC_DEV_DEP)';
echo 'dep:libcbiarch=$(LIBC_BIARCH_DEP)';
echo 'dep:libcbiarchdev=$(LIBC_BIARCH_DEV_DEP)';
--
1.7.9.2




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120223194457.GA30869@burratino">http://lists.debian.org/20120223194457.GA30869@burratino
 
Old 02-24-2012, 07:42 AM
Jonathan Nieder
 
Default Bug#584572: libstdc++6: symbol lookup error: undefined symbol

Jonathan Nieder wrote:

> How about this patch
> (untested)?
[...]
> +++ b/debian/rules.conf
[...]
> @@ -784,6 +781,7 @@ substvars-file:
> echo 'binutils:Version=$(BINUTILSV)';
> echo 'dep:libgcc=$(LIBGCC_DEP)';
> echo 'dep:libgccbiarch=$(LIBGCC_BIARCH_DEP)';
> + echo 'dep:libc=$(LIBC_DEP) (>= $(libc_ver)';

Ok, the build finally finished. Missing closing paren. Everything
else seems to have gone fine. Revised patch attached.
debian/changelog | 7 +++++++
debian/control.m4 | 2 +-
debian/rules.conf | 6 ++----
3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9668cc2b..ed44ff09 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gcc-4.6 (4.6.2-15.1) local; urgency=low
+
+ * libstdc++ depends on libc (>= 2.11) for STB_GNU_UNIQUE support
+ (Eugene V. Lyubimkin). Closes: #584572.
+
+ -- Jonathan Nieder <jrnieder@gmail.com> Fri, 24 Feb 2012 02:38:01 -0600
+
gcc-4.6 (4.6.2-15) unstable; urgency=low

* Update to SVN 20120219 (r184373) from the gcc-4_6-branch.
diff --git a/debian/control.m4 b/debian/control.m4
index 9d793b44..cbae8a86 100644
--- a/debian/control.m4
+++ b/debian/control.m4
@@ -1827,7 +1827,7 @@ Package: libstdc++CXX_SO`'LS
Architecture: ifdef(`TARGET',`all',`any')
Section: ifdef(`TARGET',`devel',`libs')
Priority: ifdef(`TARGET',`extra',PRI(required))
-Depends: BASEDEP, ${shlibsepends}, ${miscepends}
+Depends: BASEDEP, ${dep:libc}, ${shlibsepends}, ${miscepends}
ifdef(`TARGET',`Provides: libstdc++CXX_SO-TARGET-dcv1',
ifdef(`MULTIARCH', `Multi-Arch: same
Pre-Depends: multiarch-support
diff --git a/debian/rules.conf b/debian/rules.conf
index 719c34d8..23bfa1b9 100644
--- a/debian/rules.conf
+++ b/debian/rules.conf
@@ -145,11 +145,8 @@ endif
#BINUTILS_BUILD_DEP += , binutils-gold (>= $(BINUTILSV)) [$(gold_archs)]

# libc-dev dependencies
-libc_ver := 2.5
+libc_ver := 2.11
libc_dev_ver := $(libc_ver)
-ifneq (,$(findstring gnat,$(PKGSOURCE)))
- libc_ver := 2.9-21
-endif
ifeq ($(with_multiarch_lib),yes)
ifeq ($(distribution),Debian)
libc_dev_ver := 2.13-5
@@ -784,6 +781,7 @@ substvars-file:
echo 'binutils:Version=$(BINUTILSV)';
echo 'dep:libgcc=$(LIBGCC_DEP)';
echo 'dep:libgccbiarch=$(LIBGCC_BIARCH_DEP)';
+ echo 'dep:libc=$(LIBC_DEP) (>= $(libc_ver))';
echo 'dep:libcdev=$(LIBC_DEV_DEP)';
echo 'dep:libcbiarch=$(LIBC_BIARCH_DEP)';
echo 'dep:libcbiarchdev=$(LIBC_BIARCH_DEV_DEP)';
--
1.7.9.2
 

Thread Tools




All times are GMT. The time now is 08:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org