Subject: |
RE: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved] |
From: |
Mark Rivers <[email protected]> |
To: |
Heinz Junkes <[email protected]>, EPICS tech-talk <[email protected]> |
Date: |
Thu, 16 Oct 2014 10:29:11 +0000 |
Hi Heinz,
We are about to release ADCore R2-1, so I would like to get this resolved before we do.
I think I may see the problem.
ADCore/ADApp/commonDriverMakefile contains these lines:
PROD_LIBS_Linux += hdf5 sz
PROD_SYS_LIBS_Linux += tiff jpeg xml2 z m
PROD_LIBS_solaris += hdf5 sz
PROD_SYS_LIBS_solaris += tiff jpeg z
USR_LDFLAGS_Darwin += -framework CoreFoundation
PROD_LIBS_Darwin += hdf5 sz
PROD_SYS_LIBS_Darwin += tiff jpeg z
Note that on Linux PROD_SYS_LIBS includes xml2, but on Darwin it does not. This seems like a simple oversight, xml2 is now needed even when not using GraphicsMagick because the HDF5 file writer requires it.
Can you try changing this line:
PROD_SYS_LIBS_Darwin += tiff jpeg z
to this:
PROD_SYS_LIBS_Darwin += tiff jpeg xml2 z
and removing the line you added to RELEASE_LIBS.local and see if it works?
Thanks,
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Heinz Junkes [[email protected]]
Sent: Thursday, October 16, 2014 5:19 AM
To: EPICS tech-talk
Subject: Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved]
Adding
OP_SYS_LDLIBS += -lxml2
to
RELEASE_LIBS.local
solves the problem.
Heinz
On 16 Oct 2014, at 07:57, Heinz Junkes <[email protected]> wrote:
> Hi Lewis,
>
> I build it from source.
>
> Setting the env-vars like this:
>
> h1:iocSimDetector junkes$ export DYLD_LIBRARY_PATH=/opt/local
> h1:iocSimDetector junkes$ export LD_LIBRARY_PATH=/opt/local
>
> leads to the same error:
>
> h1:iocSimDetector junkes$ ../../bin/darwin-x86/simDetectorApp st.cmd.darwin
> dyld: Symbol not found: _xmlFree
> Referenced from: /Users/junkes/PARIS_14/EPICS/support/areaDetector/ADCore/lib/darwin-x86/libNDPlugin.3.14.12.dylib
> Expected in: flat namespace
> in /Users/junkes/PARIS_14/EPICS/support/areaDetector/ADCore/lib/darwin-x86/libNDPlugin.3.14.12.dylib
> Trace/BPT trap: 5
>
>
> Heinz
>
> On 15 Oct 2014, at 22:59, J. Lewis Muir <[email protected]> wrote:
>
>> On 10/15/14 3:44 PM, Heinz Junkes wrote:
>>> _xmlFree can be found in /opt/local/libxml2.dylib
>>> …
>>> 00000000000f2b28 D _xmlFree
>>> …
>>>
>>> Pointing LD_LIBRARY_PATH and DYLD_LIBRARY_PATH to this dir will not
>>> solve the problem:
>>>
>>> LD_LIBRARY_PATH=/opt/local/lib
>>> DYLD_LIBRARY_PATH=/opt/local/lib
>>>
>>> Any idea?
>>
>> Hi, Heinz.
>>
>> Did you build from source, or are you using the pre-built binary
>> version? If you're using the pre-built binary, then there is likely
>> something wrong with it since it should include any libraries it needs.
>>
>> Moving beyond that, you said the symbol _xmlFree can be found in
>> /opt/local/libxml2.dylib, but then you set LD_LIBRARY_PATH and
>> DYLD_LIBRARY_PATH to /opt/local/lib. Note that the path ends in a
>> directory named "lib". If the libxml2.dylib library is in /opt/local,
>> then you'd need to set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH to
>> /opt/local, not /opt/local/lib.
>>
>> Lewis
>
- References:
- areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree Heinz Junkes
- Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree J. Lewis Muir
- Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved] Heinz Junkes
- Navigate by Date:
- Prev:
Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved] Heinz Junkes
- Next:
Re: Usage of the dbNameToAddr funciton ZHANG Zhaohong
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved] Heinz Junkes
- Next:
Support for hivolt power supply Emma Shepherd
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|