[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The Hurd and gcc 3.4.x part #1
From: |
Alfred M. Szmidt |
Subject: |
The Hurd and gcc 3.4.x part #1 |
Date: |
Fri, 03 Sep 2004 15:46:19 +0200 |
The following pops up when compiling the Hurd with gcc 3.4:
../libstore/libstore.so: undefined reference to `__start_store_std_classes'
../libstore/libstore.so: undefined reference to `__stop_store_std_classes'
Index: libstore/ChangeLog
2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
* store.h (__start_store_std_classes, __stop_store_std_classes):
Declared attributes as weak.
* typed.c (store_find_class): Removed `#pragma weak' for
`__stop_store_std_classes' and `__start_store_std_classes'.
Index: libstore/store.h
===================================================================
RCS file: /cvsroot/hurd/hurd/libstore/store.h,v
retrieving revision 1.45
diff -u -r1.45 store.h
--- libstore/store.h 3 Dec 2002 17:47:06 -0000 1.45
+++ libstore/store.h 3 Sep 2004 13:44:54 -0000
@@ -1,6 +1,6 @@
/* Store I/O
- Copyright (C) 1995,96,97,98,99,2001,02 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2001,02,04 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -630,8 +630,9 @@
__attribute__ ((unused, section ("store_std_classes"))) \
= { &store_##name##_class }
-extern const struct store_class *const __start_store_std_classes[];
-extern const struct store_class *const __stop_store_std_classes[];
+
+extern const struct store_class *const __start_store_std_classes[]
__attribute__ ((weak));
+extern const struct store_class *const __stop_store_std_classes[]
__attribute__ ((weak));
/* Used to hold the various bits that make up the representation of a store
for transmission via rpc. See <hurd/hurd_types.h> for an explanation of
Index: libstore/typed.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libstore/typed.c,v
retrieving revision 1.8
diff -u -r1.8 typed.c
--- libstore/typed.c 4 Aug 2003 18:05:21 -0000 1.8
+++ libstore/typed.c 3 Sep 2004 13:44:55 -0000
@@ -1,6 +1,6 @@
/* Support for opening `typed' stores
- Copyright (C) 1997,1998,2001,2002,2003 Free Software Foundation, Inc.
+ Copyright (C) 1997,1998,2001,2002,2003,2004 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -53,8 +53,6 @@
If a dynamically-linked program has its own "store_std_classes"
section, e.g. by -lstore_TYPE objects included in the link, this will
be just that section and libstore.so itself is covered below. */
-# pragma weak __start_store_std_classes
-# pragma weak __stop_store_std_classes
for (cl = __start_store_std_classes; cl < __stop_store_std_classes; ++cl)
if (strlen ((*cl)->name) == (clname_end - name)
&& strncmp (name, (*cl)->name, (clname_end - name)) == 0)