Opened 3 years ago

Closed 3 years ago

#63222 closed defect (fixed)

libmemcache @1.4.0.rc2: error: undefined symbols for architecture x86_64

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: libmemcache

Description

This might be that same libtool bug that's been mentioned in tickets for other ports:

/bin/sh ../libtool --tag=CC --mode=link /usr/bin/clang  -O3 -std=c99 -Wall -pipe -Wpacked -Wdisabled-optimization  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -o libmemcache.la -rpath /opt/local/lib -version-info 4:0:4 memcache.lo buffer.lo  
/usr/bin/clang -dynamiclib  -o .libs/libmemcache.0.4.0.dylib  .libs/memcache.o .libs/buffer.o  -L/opt/local/lib  -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -install_name  /opt/local/lib/libmemcache.0.dylib -Wl,-compatibility_version -Wl,5 -Wl,-current_version -Wl,5.0
Undefined symbols for architecture x86_64:
  "_mcm_buf_len", referenced from:
      _mcm_server_send_cmd in memcache.o
  "_mcm_buf_remain_off", referenced from:
      _mcm_get_line in memcache.o
      _mcm_fetch_cmd in memcache.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libmemcache.la] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmemcache/libmemcache/work/libmemcache-1.4.0.rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmemcache/libmemcache/work/libmemcache-1.4.0.rc2'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmemcache/libmemcache/work/libmemcache-1.4.0.rc2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmemcache/libmemcache/work/libmemcache-1.4.0.rc2" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build libmemcache: command execution failed
DEBUG: Error code: CHILDSTATUS 9444 2

Attachments (2)

libmemcache_main.log (37.1 KB) - added by cooljeanius (Eric Gallager) 3 years ago.
main.log for libmemcache
libmemcache_config.log (86.2 KB) - added by cooljeanius (Eric Gallager) 3 years ago.
config.log for libmemcache

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by cooljeanius (Eric Gallager)

Attachment: libmemcache_main.log added

main.log for libmemcache

Changed 3 years ago by cooljeanius (Eric Gallager)

Attachment: libmemcache_config.log added

config.log for libmemcache

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 49e437a123133de5ebd02f40e421fbcb65ae2ce0/macports-ports (master):

libmemcache: macOS 11+ libtool bugfix; other fixes

Fix the macOS 11+ libtool bug. Fix implicit function declarations.

Closes: #63222

Honor MacPorts CFLAGS; therefore increase revision because this changes
which optimization flags are used. It also fixes the universal variant.

Modernize checksums. Use leading 0 for octal numbers. Indicate which C
language standard is needed.

Note: See TracTickets for help on using tickets.