pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: graphics/librsvg



On Fri, Feb 10, 2017 at 12:50:25PM +0000, Patrick Welche wrote:
> On Fri, Feb 10, 2017 at 12:43:19PM +0000, Patrick Welche wrote:
> > On Fri, Feb 10, 2017 at 01:40:23PM +0100, Martin Husemann wrote:
> > > Can't we just patch glib to add __NetBSD__ to the  #ifdef __BIONIC__
> > > case?
> > 
> > 
> > That was my suggestion in the bugzilla - no response as to whether that is
> > good for everyone...
> 
> ah - it might be the wrong path: we have a filename in this case...

Get a coredump with

#include <err.h>
#include <dlfcn.h>
#include <stdio.h>

#define RSVG "/tmp/pkgsrc/graphics/librsvg/work.x86_64/librsvg-2.40.15/gdk-pixbuf-loader/.libs/libpixbufloader-svg.so"

int main()
{
        void *handle, *fn;

        handle = dlopen (RSVG, RTLD_GLOBAL | RTLD_NOW);
        if (handle == NULL)
                errx(1, "dlopen of libm failed (%s)", dlerror());

        fn = dlsym (handle, "sin");
        if (fn == NULL)
                errx(1, "sin() not found (%s)", dlerror());

        fn = dlsym (handle, "fill_info");
        if (fn == NULL)
                errx(1, "fill_info() not found (%s)", dlerror());

        fn = dlsym (handle, "fill_vtable");
        if (fn == NULL)
                errx(1, "fill_info() not found (%s)", dlerror());

        if (dlclose(handle) != 0)
                errx(1, "error on close (%s)", dlerror());

        return 0;
}


but not with RSVG=/usr/lib/libm.so


Home | Main Index | Thread Index | Old Index