Ticket #118 (closed defect: worksforme)

Opened 3 years ago

Last modified 2 years ago

mac os x: Running varnishd results in dyld: lazy symbol binding failed: Symbol not found: _strndup

Reported by: oh Assigned to: des
Priority: normal Milestone:
Component: build Version: trunk
Severity: normal Keywords:
Cc:

Description

Running varnishd (trunk) on mac os x results in the following error message:

$ /opt/varnish/sbin/varnishd -a localhost:8080 -b localhost:80
dyld: lazy symbol binding failed: Symbol not found: _strndup
  Referenced from: /opt/varnish/lib/libvarnish.0.dylib
  Expected in: flat namespace

dyld: Symbol not found: _strndup
  Referenced from: /opt/varnish/lib/libvarnish.0.dylib
  Expected in: flat namespace

Trace/BPT trap

(os x does not have strndup())

Change History

02-07-2007 18:30:28 changed by andre

I also see this problem with current trunk.

24-07-2007 04:33:50 changed by vamoose

I'm also seeing this problem installed on mac osx tiger w/ Varnish 1.1. Does anyone have a solution for this?

24-07-2007 10:00:39 changed by des

  • status changed from new to assigned.

Weird - this did not show up in my testing last week. I'll investigate.

24-07-2007 10:11:18 changed by des

This seems to be a bug in libtool, which ignores -export-dynamic. Run autogen.sh and configure, then look for the following line in $(top_srcdir)/libtool:

export_dynamic_flag_spec=""

This should be changed to

export_dynamic_flag_spec="-flat_namespace"

Then run make clean; make install and it should work.

I'm not sure how to fix this properly.

20-06-2008 23:04:17 changed by phk

  • status changed from assigned to closed.
  • resolution set to worksforme.

This does not seem to be a varnish problem.