Subject: "Invalid shared object handle"
To: None <netbsd-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 08/09/2007 09:38:18
I'm trying to package alltray (http://alltray.sourceforge.net/).  When
I run it, though, I get three instances of the message

	"Invalid shared object handle"

I had to grep /usr/src to see where it came from; the answer is
libexec/ld.elf_so/rtld.c.  What I don't understand is what the message
means or what I can do to make it go away.

I based the package on the FreeBSD port.  Here's the ldd output for
my version:

/usr/pkg/bin/alltray:
        -lintl.0 => /usr/lib/libintl.so.0
        -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
        -lgmodule-2.0.0 => /usr/pkg/lib/libgmodule-2.0.so.0
        -lgobject-2.0.0 => /usr/pkg/lib/libgobject-2.0.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lpthread.0 => /usr/lib/libpthread.so.0
        -lgdk_pixbuf-2.0.0 => /usr/pkg/lib/libgdk_pixbuf-2.0.so.0
        -lX11.6 => /usr/pkg/xorg/lib/libX11.so.6
        -lXext.6 => /usr/pkg/xorg/lib/libXext.so.6
        -lXi.6 => /usr/pkg/xorg/lib/libXi.so.6
        -lpango-1.0.0 => /usr/pkg/lib/libpango-1.0.so.0
        -lz.1 => /usr/lib/libz.so.1
        -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
        -lexpat.1 => /usr/pkg/lib/libexpat.so.1
        -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
        -lglitz.1 => /usr/pkg/lib/libglitz.so.1
        -lpng12.0 => /usr/pkg/lib/libpng12.so.0
        -lXrender.1 => /usr/pkg/lib/libXrender.so.1
        -lICE.6 => /usr/pkg/xorg/lib/libICE.so.6
        -lSM.6 => /usr/pkg/xorg/lib/libSM.so.6
        -lcairo.2 => /usr/pkg/lib/libcairo.so.2
        -lpangoft2-1.0.0 => /usr/pkg/lib/libpangoft2-1.0.so.0
        -lpangocairo-1.0.0 => /usr/pkg/lib/libpangocairo-1.0.so.0
        -lXrandr.2 => /usr/pkg/lib/libXrandr.so.2
        -lXfixes.3 => /usr/pkg/xorg/lib/libXfixes.so.3
        -lXcursor.1 => /usr/pkg/lib/libXcursor.so.1
        -lgdk-x11-2.0.0 => /usr/pkg/lib/libgdk-x11-2.0.so.0
        -latk-1.0.0 => /usr/pkg/lib/libatk-1.0.so.0
        -lgtk-x11-2.0.0 => /usr/pkg/lib/libgtk-x11-2.0.so.0
        -lgdk_pixbuf_xlib-2.0.0 => /usr/pkg/lib/libgdk_pixbuf_xlib-2.0.so.0
        -lc.12 => /usr/lib/libc.so.12


		--Steve Bellovin, http://www.cs.columbia.edu/~smb