Opened 13 years ago

Closed 13 years ago

Last modified 3 years ago

#31474 closed defect (fixed)

transmission: Undefined symbols: ___gxx_personality_v0

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mnick@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: royliu@…
Port: transmission

Description

transmission build fails with this error:

Undefined symbols:
  "___gxx_personality_v0", referenced from:
      no_read(void*, unsigned char const*, unsigned long)in libtransmission.a(utp.o)
      no_write(void*, unsigned char*, unsigned long)in libtransmission.a(utp.o)
      no_rb_size(void*) in libtransmission.a(utp.o)
      no_state(void*, int)in libtransmission.a(utp.o)
      no_error(void*, int)in libtransmission.a(utp.o)
      no_overhead(void*, bool, unsigned long, int)in libtransmission.a(utp.o)
      _UTP_SetCallbacks in libtransmission.a(utp.o)
      _UTP_SetSockopt in libtransmission.a(utp.o)
      UTP_Free(UTPSocket*)    in libtransmission.a(utp.o)
      _UTP_GetPeerName in libtransmission.a(utp.o)
      send_to_addr(void (*)(void*, unsigned char const*, unsigned long, sockaddr const*, unsigned int), void*, unsigned char const*, unsigned long, PackedSockAddr const&)in libtransmission.a(utp.o)
      UTPSocket::send_rst(void (*)(void*, unsigned char const*, unsigned long, sockaddr const*, unsigned int), void*, PackedSockAddr const&, unsigned int, unsigned short, unsigned short, unsigned char)in libtransmission.a(utp.o)
      SizableCircularBuffer::grow(unsigned long, unsigned long)in libtransmission.a(utp.o)
      UTPSocket::selective_ack_bytes(unsigned int, unsigned char const*, unsigned char, long long&)in libtransmission.a(utp.o)
      UTPSocket::ack_packet(unsigned short)in libtransmission.a(utp.o)
      UTPSocket::send_data(PacketFormat*, unsigned long, bandwidth_type_t)in libtransmission.a(utp.o)
      UTPSocket::apply_ledbat_ccontrol(unsigned long, unsigned int, long long)in libtransmission.a(utp.o)
      UTPSocket::send_ack(bool) in libtransmission.a(utp.o)
      _UTP_RBDrained in libtransmission.a(utp.o)
      UTPSocket::is_writable(unsigned long)in libtransmission.a(utp.o)
      UTPSocket::send_packet(OutgoingPacket*)       in libtransmission.a(utp.o)
      _UTP_Connect in libtransmission.a(utp.o)
      UTPSocket::selective_ack(unsigned int, unsigned char const*, unsigned char)in libtransmission.a(utp.o)
      _UTP_Create in libtransmission.a(utp.o)
      UTP_ProcessIncoming(UTPSocket*, unsigned char const*, unsigned long, bool)in libtransmission.a(utp.o)
      _UTP_IsIncomingUTP in libtransmission.a(utp.o)
      UTPSocket::flush_packets()      in libtransmission.a(utp.o)
      UTPSocket::check_timeouts()      in libtransmission.a(utp.o)
      _UTP_CheckTimeouts in libtransmission.a(utp.o)
      UTPSocket::write_outgoing_packet(unsigned long, unsigned int)in libtransmission.a(utp.o)
      _UTP_Close in libtransmission.a(utp.o)
      _UTP_Write in libtransmission.a(utp.o)
      ___tcf_1 in libtransmission.a(utp.o)
      ___tcf_0 in libtransmission.a(utp.o)
      __static_initialization_and_destruction_0(int, int)in libtransmission.a(utp.o)
      global constructors keyed to _Z25UTP_GetGlobalUTPBytesSentPK8sockaddrjin libtransmission.a(utp.o)
      DelayHist::add_sample(unsigned int)in libtransmission.a(utp.o)
      PackedSockAddr::get_sockaddr_storage(unsigned int*) constin libtransmission.a(utp.o)
      PackedSockAddr::PackedSockAddr(sockaddr_storage const*, unsigned int)in libtransmission.a(utp.o)
      Array<UTPSocket*, 16ul>::Resize(unsigned long)in libtransmission.a(utp.o)
      Array<RST_Info, 16ul>::Resize(unsigned long)in libtransmission.a(utp.o)
      UTPSocket::get_udp_overhead() const in libtransmission.a(utp.o)
      UTPSocket::get_udp_mtu() const in libtransmission.a(utp.o)
      CIE in libtransmission.a(utp.o)
      UTP_GetUDPMTU(sockaddr const*, unsigned int)in libtransmission.a(utp_utils.o)
      UTP_GetUDPOverhead(sockaddr const*, unsigned int)in libtransmission.a(utp_utils.o)
      UTP_DelaySample(sockaddr const*, int)in libtransmission.a(utp_utils.o)
      UTP_Random()     in libtransmission.a(utp_utils.o)
      GetMicroseconds()      in libtransmission.a(utp_utils.o)
      UTP_GetMicroseconds()     in libtransmission.a(utp_utils.o)
      UTP_GetMilliseconds()     in libtransmission.a(utp_utils.o)
      CIE in libtransmission.a(utp_utils.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

I'm using Mac OS X 10.6.8 and Xcode 3.2.6. main.log attached.

Attachments (2)

main.log.bz2 (42.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
patch-patch-xcodebuild.diff.diff (1.6 KB) - added by royliu@… 13 years ago.
The xcodebuild patch patch.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 13 years ago by royliu@…

Hi Ryan,

My bad. I committed the update, as the Port was open maintainer. Interestingly, the bug doesn't arise for Lion, which uses the LLVM GCC compiler. I've attached a patch that should make the problem go away.

-Roy

Changed 13 years ago by royliu@…

The xcodebuild patch patch.

comment:2 Changed 13 years ago by royliu@…

Cc: royliu@… added

Cc Me!

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

That works for me; committed in r84783, hoping it still works on Lion / llvm / clang.

comment:4 in reply to:  2 Changed 3 years ago by barracuda156

Replying to royliu@…:

Cc Me!

Has it ever been fixed for 10.6.8 and gcc?

comment:5 Changed 3 years ago by kencu (Ken)

the usual cause for this error is trying to link c++ code using the C compiler instead of the C++ compiler.

These symbols are defined in a library that is linked in automatically by the C++ compiler when it calls the linker.

Note: See TracTickets for help on using tickets.