pkgsrc-Users archive

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

Problem Building gnome-keyring-2.22.1 on Solaris 10/pkgsrc



Building gnome-keyring produces an undefined symbol error, as shown below:

 cc -DHAVE_CONFIG_H -I. -I.. -DPNG_NO_ASSEMBLER_CODE
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/freetype2
-DPREFIX=\"/usr/pkg\" -DBINDIR=\"/usr/pkg/bin\"
-DLIBEXECDIR=\"/usr/pkg/libexec\"
-DGNOMELOCALEDIR=\"/usr/pkg/share/locale\" -DORBIT2=1 -D_REENTRANT
-D_PTHREADS -I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/gconf/2
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/orbit-2.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/glib/glib-2.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/lib/glib-2.0/include
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/dbus-1.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/lib/dbus-1.0/include
-DGKR_DBUS_MAJOR_VERSION=1 -DGKR_DBUS_MINOR_VERSION=0
-DGKR_DBUS_MICRO_VERSION=2 -DXTHREADS
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/gtk-2.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/lib/gtk-2.0/include
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/atk-1.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/cairo
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/pango-1.0
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/libpng12
-I/usr/pkgsrc/security/gnome-keyring/work/.x11-buildlink/include
-I/usr/pkgsrc/security/gnome-keyring/work/.buildlink/include/pixman-1
-O -c gkr-unix-credentials.c  -KPIC -DPIC -o
.libs/libgkr_common_la-gkr-unix-credentials.o
"gkr-unix-credentials.c", line 135: undefined symbol: fd
cc: acomp failed for gkr-unix-credentials.c
gmake[3]: *** [libgkr_common_la-gkr-unix-credentials.lo] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/security/gnome-keyring/work/gnome-keyring-2.22.1/common'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/security/gnome-keyring/work/gnome-keyring-2.22.1/common'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/pkgsrc/security/gnome-keyring/work/gnome-keyring-2.22.1'
gmake: *** [all] Error 2
*** Error code 2

Looking at the source, I see this section:

<snip>
#elif defined(LOCAL_CREDS)
                cred = (struct sockcred *) CMSG_DATA (&cmsg.hdr);
                *pid = 0;
                *uid = cred->sc_euid;
#elif defined(HAVE_GETPEERUCRED)
                ucred_t *uc = NULL;

                if (getpeerucred (fd, &uc) == 0) {
                        *pid = ucred_getpid (uc);
                        *uid = ucred_geteuid (uc);
                        ucred_free (uc);
                } else {
                        fprintf (stderr, "getpeerucred() failed: %s\n", strerror
 (errno));
                        return -1;
                }
#else /* !SO_PEERCRED && !HAVE_CMSGCRED */
                fprintf (stderr, "socket credentials not supported on this OS\n"
);
                return -1;
<snip>

I have no idea where the 'fd', passed to 'getpeerucred', is coming
from.  There is no other reference to 'fd' in this C source.

Any ideas?

Thanks!


Home | Main Index | Thread Index | Old Index