3 messages in com.perforce.perforce-user[p4] problems building (linking actua...| From | Sent On | Attachments |
|---|---|---|
| Trent Mick | 02 Apr 2001 15:15 | |
| John Marshall | 02 Apr 2001 16:05 | |
| Trent Mick | 02 Apr 2001 16:21 |
| Subject: | [p4] problems building (linking actually) samplemain.cc in p4api.tar on linux![]() |
|---|---|
| From: | Trent Mick (tre...@ActiveState.com) |
| Date: | 04/02/2001 03:15:15 PM |
| List: | com.perforce.perforce-user |
I am having difficulty building the samplemain.cc file that comes with the p4api.tar packages on linux. Specifically I get stuck when trying to link. I get the following error:
g++ -DOS_LINUX52X86 r00.2/bin.linux52x86/samplemain.cc -o samplemain
-Ir00.2/bin.linux52x86 -Lr00.2/bin.linux52x86 -lclient -lrpc -lsupp
r00.2/bin.linux52x86/libclient.a(clientapi.o): In function
`ClientApi::ClientApi(void)':
clientapi.o(.text+0x58): undefined reference to `__eh_pc'
clientapi.o(.text+0x72): undefined reference to `__eh_pc'
r00.2/bin.linux52x86/libclient.a(clientapi.o): In function
`ClientApi::ClientApi(ClientUser *)':
clientapi.o(.text+0xec): undefined reference to `__eh_pc'
clientapi.o(.text+0x106): undefined reference to `__eh_pc'
r00.2/bin.linux52x86/libclient.a(clientuser.o): In function
`ClientUser::Prompt(StrPtr const &, StrBuf &, int, Error *)':
clientuser.o(.text+0x207): undefined reference to `__eh_pc'
r00.2/bin.linux52x86/libclient.a(clientuser.o)(.text+0x2c5): more undefined
references to `__eh_pc' follow
collect2: ld returned 1 exit status
make: *** [samplemain] Error 1
I cannot find any library that exports this symbol. I tried this build on a number of different linux installations (RedHat 6.2, RedHat 7.0, Debian 2.2) and with different versions of the api (r00.1, r00.2, bin.linux[45]2x86) and I my guess is that "__eh_pc" is a symbol exported by old versions of gcc:
> nm -C ./gcc-lib/i386-glibc20-linux/egcs-2.90.29/libgcc.a ... 00000004 C __eh_pc U __eh_pc U __eh_pc U __eh_pc ...
However, this symbol is not exported by later versions of gcc (which are the default versions on RH6.2, RH7.0, Debian 2.2).
Is anybody else encoutering the same problems? Any help would be appreciated.
Thanks, Trent
-- Trent Mick TrentM at ActiveState.com




