New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared library issue on OSX #6
Comments
Hi Arman, Sorry to hear that. By "does not work" do you mean "did not build" or do you mean "does not execute successfully"? Could you give some details: By the way, in my 4.4 build (which was done while on Mountain Lion, but whose build products continue to work on Yosemite), the outcome is: EPICS-CPP-4.4.0/pvAccessCPP] greg% ls lib/darwin-x86/ |
Hi Greg, Thank you for the reply. We did build it from the distribution. and we did follow the instructions. Others in my group with Macs have identical issues and we were able to regenerate the problem on different work stations with OSX Yosemite. I have used pvaPy on Mountain Lion w/o any issues as well. I have tried the build using the python from homebrew(not sure what others used but I can verify once I talk to them). |
[Autoconf experts, some help would be appreciated with how to get autoconf to be more verbose Hi Arman, Well, I tried to reproduce your issue. I have a Mac running Yosemite on which I had But I didn’t get even as far as you. After installing prerequisites autoconf and boost, I get pvaPy greg$ make configure My base installation has the libs, as .dylib $ ls $EPICS_BASE/lib/$EPICS_HOST_ARCH/ I can see the code in pvaPy/tools/autoconf/configure which is failing, but I don’t know how to If someone can tell me how to run make configure with verbose output, I’ll try to continue. Cheers
|
Hi Arman, Does applying this patch solve the problem? diff --git a/src/pvaccess/Makefile b/src/pvaccess/Makefile
index c873f2d..ef8f5fb 100644
--- a/src/pvaccess/Makefile
+++ b/src/pvaccess/Makefile
@@ -10,6 +10,9 @@ include $(TOP)/configure/CONFIG
LOADABLE_LIBRARY_HOST += pvaccess
LOADABLE_SHRLIB_PREFIX =
+ifeq ($(OS_CLASS),Darwin)
+LOADABLE_SHRLIB_SUFFIX = .so
+endif
#PROD_HOST_linux-x86_64 += testClient
PROD_HOST += $(PROD_HOST_$(T_A)) |
Hi Andrew and Arman, If Arman was able to make symlink manually and got it working this patch I also wonder why "LOADABLE_SHRLIB_PREFIX =" does not seem to work and Sinisa On 8/11/2015 3:47 PM, Andrew Johnson wrote:
|
You should be able to find what you are looking for in config.log file On 8/10/2015 5:24 PM, Greg White wrote:
|
Hello Andrew, Yes, the patch solves the problem. Will you be submitting a PR? Arman |
FYI, the master does not build correctly. I tested it with my old pvaPy that comes with the 4.4.0 distro and checked out the latest master from git.The master from git
|
|
Hi Ralph, I doubt that it is the issue since stable version from distro has the same -I/include flag. Seems like there are some changes to the other v4 modules and I tried to build it against the old ones from the distro 📦 . So this is not an issue with pvaPy. I need to rebuild the other modules of v4 from github with the latest changes Dave has merged 🎯 |
Matej added a new copy API after the 4.4 release.
This was the breaking API change I referred to at MSU which meant we couldn't do a 4.4.1 release. |
Sinisa wrote:
I don't think that will be a problem, all the Mac python versions I have access to use
It does work, the I don't intend to submit a pull request, I'll leave you to apply the patch yourself. |
Andrew, Right, I guess I should learn the difference between suffix and prefix, and In any case, this patch has been applied. Arman, Could you please verify things now work, and whether this can be closed? Thanks, Sinisa On Wed, Aug 12, 2015 at 10:44 AM, Andrew Johnson notifications@github.com
|
Hi Sinisa, The patch does work. Should we add this to README (btw, the documentation rocks) or would you like me to submit a PR? We have at least 5 users here on Yosemite that are either using/will start using pvaPy very shortly. I am doing my best to urge people to use it here since most are just building their beamlines. It is my goal to make all of them adopt v4 and python seems like the easiest path for their very first applications. |
Arman, Sinisa, If you update the repo with the patch and Ernest’s discovered updates for the README, I’ll We’re about to have a number of physicists and operators use it, many on Yosemite, so Cheers
|
Greg, Patch is already in the repo. I still need to go over the README file to Sinisa On Wed, Aug 12, 2015 at 1:08 PM, Greg White notifications@github.com
|
Commit 24511ad closes this issue |
The shared library pvaccess.dylib does not work on OSX Yosemite(not sure about other OSX versions but we tested on 4 different machines). The issue goes away if .dylib -> .so linked manually.
The text was updated successfully, but these errors were encountered: