Jump to content


p4api Macintosh Linking Error

p4api linking macosx x86_64

  • Please log in to reply
1 reply to this topic

#1 dkollmann

dkollmann

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 11 May 2014 - 12:36 AM

When I try to link against the macosx x86_64 I get errors of missing symbols.

ClientUser::~ClientUser()
Error::~Error()
StrDict::SetVar(char const*)
StrDict::SetArgv(int, char* const*)
ClientApi::Run(char const*, ClientUser*)
ClientApi::Init(Error*)
ClientApi::Final(Error*)
ClientApi::SetUi(ClientUser*)
ClientApi::GetPort()
ClientApi::GetUser()
ClientApi::SetTrans(int, int, int, int)
ClientApi::GetClient()
ClientApi::ClientApi()
ClientApi::~ClientApi()
vtable for ClientUser

This error occurs with the following versions:
http://ftp.perforce....acosx105x86_64/
http://ftp.perforce....acosx105x86_64/
http://ftp.perforce....acosx105x86_64/
http://ftp.perforce....acosx105x86_64/
http://ftp.perforce....acosx105x86_64/

This indicates that this is a general issue. I found reports of this issue even from 2008 so I wonder what the problem is. I added all four link files to my project.

It would be great if someone could point me in the right direction.

Daniel

#2 P4Matt

P4Matt

    Advanced Member

  • Members
  • PipPipPip
  • 1383 posts

Posted 13 May 2014 - 10:40 PM

Here's what I run to build the included sample project on Mavericks:

g++ -c -o objects/p4api.o -DNDEBUG -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5 -fvisibility-inlines-hidden -DCASE_INSENSITIVE -fpascal-strings -arch x86_64 -fwrapv -DCASE_INSENSITIVE -O2 -DOS_MACOSX -DOS_MACOSX106 -DOS_MACOSXX86_64 -DOS_MACOSX106X86_64 -I. -I../include/p4 -Imsgs -Isupport -Isys p4api.cc


g++ -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5 -Wl,-no_compact_linkedit -arch x86_64 -o p4api  objects/p4api.o ../lib/libclient.a ../lib/librpc.a ../lib/libsupp.a ../lib/libp4sslstub.a -framework ApplicationServices -framework Foundation -framework CoreServices

ld: warning: option -no_compact_linkedit is obsolete and being ignored

chmod +rx,go-w p4api






Also tagged with one or more of these keywords: p4api, linking, macosx, x86_64

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users