From: Grant Grundler <grundler@parisc-linux.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] xfree86 4.2.1-9 build problem
Date: Mon, 11 Aug 2003 13:09:14 -0600 [thread overview]
Message-ID: <20030811190914.GA25311@dsl2.external.hp.com> (raw)
In-Reply-To: <200308111730.h7BHUf9S018795@hiauly1.hia.nrc.ca>
[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]
On Mon, Aug 11, 2003 at 01:30:40PM -0400, John David Anglin wrote:
> It's not clear what's going on. Possibly, linking with libgcc.a
> is interacting in a bad way with shared libraries linked with
> libgcc_s.so. You can get more info by adding `-Wl,-v' to the link
> command. Adding `-Wl,-debug' to the gcc link command will show
> the full `ld' command.
-debug output is attached.
`-Wl,-v' only shows the "ld" command. The -debug output has that too.
What's interesting is the "ld" command has "-lgcc-eh" which is where
the missing symbols are defined:
grundler <512>nm libgcc_eh.a | grep _Unwind_SjLj_Resume
0000079c T _Unwind_SjLj_Resume
000008d0 T _Unwind_SjLj_Resume_or_Rethrow
grundler <513>pwd
/usr/lib/gcc-lib/hppa-linux/3.3.1
> I am certain that the symbols are defined in libgcc_s.so. It may
> be that the linker isn't looking for dependent libraries correctly.
I wonder if "-Wl,-rpath-link,../../exports/lib" is the problem.
I'd normally expect an application to use "-L" to specify additional
lib search paths.
> Using the g++ driver or adding `-shared-libgcc' to the link command
> should work around the problem. But I don't think that it should
> be necessary.
ok
thanks,
grant
[-- Attachment #2: glxinfo.debug --]
[-- Type: text/plain, Size: 4092 bytes --]
grundler@gsyprf11:/usr/src/xfree86-4.2.1/build-tree/xc/programs/glxinfo$ gcc -o glxinfo -g -O -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -L../../exports/lib glxinfo.o -lGLU -lGL -lXext -lX11 -lpthread -lm -lgcc_eh -Wl,-rpath-link,../../exports/lib -Wl,-debug
Convert string '/usr/lib/gcc-lib/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/:/usr/lib/gcc/hppa-linux/3.3.1/:/usr/lib/gcc/hppa-linux/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/' into prefixes, separator = ':'
- add prefix: /usr/lib/gcc-lib/hppa-linux/3.3.1/
- add prefix: /usr/lib/gcc-lib/hppa-linux/3.3.1/
- add prefix: /usr/lib/gcc-lib/hppa-linux/
- add prefix: /usr/lib/gcc/hppa-linux/3.3.1/
- add prefix: /usr/lib/gcc/hppa-linux/
- add prefix: /usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/hppa-linux/3.3.1/
- add prefix: /usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/
Convert string '/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/grundler/bin' into prefixes, separator = ':'
- add prefix: /usr/local/bin/
- add prefix: /usr/bin/
- add prefix: /bin/
- add prefix: /usr/bin/X11/
- add prefix: /usr/games/
- add prefix: /home/grundler/bin/
Looking for 'real-ld'
Looking for 'collect-ld'
Looking for 'ld'
Looking for 'ld'
Looking for 'gnm'
Looking for 'gnm'
Looking for 'nm'
Looking for 'nm'
Looking for 'gstrip'
Looking for 'gstrip'
Looking for 'strip'
Looking for 'strip'
Looking for 'gcc'
Looking for 'gcc'
collect2 version 3.3.1 (Debian) (hppa)
ld_file_name = /usr/bin/ld
c_file_name = /usr/bin/gcc
nm_file_name = /usr/bin/nm
strip_file_name = /usr/bin/strip
c_file = /tmp/ccAA0Eun.c
o_file = /tmp/cc0QBMNA.o
COLLECT_GCC_OPTIONS = '-o' 'glxinfo' '-g' '-O' '-ansi' '-pedantic' '-Wall' '-Wpointer-arith' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wmissing-declarations' '-Wredundant-decls' '-Wnested-externs' '-Wundef' '-L../../exports/lib'
COLLECT_GCC = gcc
COMPILER_PATH = /usr/lib/gcc-lib/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/:/usr/lib/gcc/hppa-linux/3.3.1/:/usr/lib/gcc/hppa-linux/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/bin/
LIBRARY_PATH = /usr/lib/gcc-lib/hppa-linux/3.3.1/:/usr/lib/gcc/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/lib/hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../../hppa-linux/lib/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../hppa-linux/3.3.1/:/usr/lib/gcc-lib/hppa-linux/3.3.1/../../../:/lib/hppa-linux/3.3.1/:/lib/:/usr/lib/hppa-linux/3.3.1/:/usr/lib/
/usr/bin/ld --eh-frame-hdr -dynamic-linker /lib/ld.so.1 -o glxinfo /usr/lib/gcc-lib/hppa-linux/3.3.1/../../../crt1.o /usr/lib/gcc-lib/hppa-linux/3.3.1/../../../crti.o /usr/lib/gcc-lib/hppa-linux/3.3.1/crtbegin.o -L../../exports/lib -L/usr/lib/gcc-lib/hppa-linux/3.3.1 -L/usr/lib/gcc-lib/hppa-linux/3.3.1/../../.. glxinfo.o -lGLU -lGL -lXext -lX11 -lpthread -lm -lgcc_eh -rpath-link ../../exports/lib -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/gcc-lib/hppa-linux/3.3.1/crtend.o /usr/lib/gcc-lib/hppa-linux/3.3.1/../../../crtn.o
../../exports/lib/libGLU.so: undefined reference to `_Unwind_SjLj_Resume@GCC_3.0'
../../exports/lib/libGLU.so: undefined reference to `_Unwind_SjLj_Register@GCC_3.0'
/usr/bin/../lib/libstdc++.so.5: undefined reference to `_Unwind_SjLj_RaiseException@GCC_3.0'
../../exports/lib/libGLU.so: undefined reference to `_Unwind_SjLj_Unregister@GCC_3.0'
/usr/bin/../lib/libstdc++.so.5: undefined reference to `_Unwind_SjLj_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
[Leaving /tmp/ccAA0Eun.c]
[Leaving /tmp/cc0QBMNA.o]
[Leaving /tmp/ccGtmF6N.ld]
[Leaving glxinfo]
grundler@gsyprf11:/usr/src/xfree86-4.2.1/build-tree/xc/programs/glxinfo$
next prev parent reply other threads:[~2003-08-11 19:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 4:34 [parisc-linux] xfree86 4.2.1-9 build problem Grant Grundler
2003-08-11 7:11 ` Joel Soete
2003-08-11 14:07 ` Carlos O'Donell
2003-08-11 14:24 ` John David Anglin
2003-08-11 15:24 ` Grant Grundler
2003-08-11 16:41 ` Joel Soete
2003-08-11 17:30 ` John David Anglin
2003-08-11 19:09 ` Grant Grundler [this message]
2003-08-11 19:25 ` John David Anglin
2003-08-11 20:21 ` Carlos O'Donell
2003-08-11 20:41 ` John David Anglin
2003-08-11 19:27 ` Carlos O'Donell
2003-08-11 19:12 ` Grant Grundler
2003-08-11 20:38 ` John David Anglin
2003-08-11 20:55 ` John David Anglin
2003-08-11 22:39 ` Grant Grundler
2003-08-11 22:58 ` John David Anglin
2003-08-11 23:55 ` John David Anglin
2003-08-13 17:53 ` Grant Grundler
2003-08-13 20:11 ` James Bottomley
2003-08-13 21:32 ` Grant Grundler
2003-08-13 22:53 ` James Bottomley
2003-08-14 0:12 ` Alan Cox
2003-08-14 5:12 ` Grant Grundler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030811190914.GA25311@dsl2.external.hp.com \
--to=grundler@parisc-linux.org \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.