Alan, I will add the patch and create a new package. Note that I sent the patch to libharu upstream and they included it. So the next version will no longer require the patch. https://github.com/libharu/libharu/commit/e6fae213911c28bc00bb788f3d5a42913e37fbbe
Johan On Thu, Oct 17, 2013 at 7:31 AM, Alan W. Irwin <[email protected]> wrote: > On 2013-10-11 16:16-0700 Alan W. Irwin wrote: > >> I did try the obvious step of building the Debian packages for libhpdf >> using "apt-src build libhpdf". All seemed well with that build, but >> when I installed the corresponding debs, none of the critical symbols >> for the library as revealed by >> >> objdump --dynamic-syms /usr/lib/libhpdf.so >> >> were available, and as a result all PLplot tests with the >> corresponding plot device failed. Is there something special >> I have to do to get "apt-src build" to work for this package? >> >> For this reason, I was unable to test the attached patch for the >> Debian source of version 2.2.1 of this library, but I am virtually >> positive this patch will work because it is only a two-line patch that >> does apply cleanly to 2.2.1. > > > I have now figured out the source of these unexpected objdump results. > Those were an artifact of having > > CFLAGS=-O3 -fvisibility=hidden > > defined as an environment variable for the PLplot build I was > doing at the same time. Sorry this issue obscured the simple > issue which I now repeat for clarity. > > The patch I attached to the original report applies cleanly to the > Debian version of the libharu (a.k.a., libhpdf) source code, the > apt-src build of that patched result proceeds cleanly, and when the > resulting debs are installed, they produce > > -rw-r--r-- 1 root root 747408 Oct 16 21:23 /usr/lib/libhpdf-2.2.1.so > lrwxrwxrwx 1 root root 16 Oct 16 21:23 /usr/lib/libhpdf.so -> > libhpdf-2.2.1.so > > The PLplot build of our pdf device against the above patched library > proceeds without issues as does all our tests of that device (which is > linked with the above device). In particular the segfault that > appeared for our example 24 in the unpatched case is now gone, and > valgrind shows no memory management errors for that example now. > > Therefore, please apply this patch when you create debs for libhpdf > from now on. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation for stellar interiors (freeeos.sf.net); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); the libLASi project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > and the Linux Brochure Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

