Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2009 07:45:52 -0700
From:      David Newman <dnewman@networktest.com>
To:        freebsd-questions@freebsd.org
Subject:   libxcb won't compile from ports
Message-ID:  <4AB24BA0.4060104@networktest.com>

next in thread | raw e-mail | index | archive | help
FreeBSD 7.2-RELEASE, i386

Running 'make install clean' from /usr/ports/x11/libxcb returns the
patch error pasted below.

Thanks in advance for clues on resolving this. I did not see anything
helpful in the archives or on Google.

dn


somehost# cd /usr/ports/x11/libxcb/
somehost# make clean
===>  Cleaning for libxcb-1.4
somehost# make install clean
===>  Vulnerability check disabled, database not found
===>  Extracting for libxcb-1.4
=> MD5 Checksum OK for libxcb-1.4.tar.bz2.
=> SHA256 Checksum OK for libxcb-1.4.tar.bz2.
===>  Patching for libxcb-1.4
===>  Applying FreeBSD patches for libxcb-1.4
1 out of 1 hunks failed--saving rejects to src/xcb_auth.c.rej
=> Patch patch-src-xcb_auth.c failed to apply cleanly.
=> Patch(es) patch-Makefile.in applied cleanly.
*** Error code 1

Stop in /usr/ports/x11/libxcb.


And here is /usr/ports/x11/libxcb/work/libxcb-1.4/src/xcb_auth.c.rej:

***************
*** 251,257 ****

      info->namelen = memdup(&info->name, authptr->name,
authptr->name_length);
      if(info->namelen)
-       ret = compute_auth(info, authptr, sockname);
      if(!ret)
      {
        free(info->name);
--- 251,262 ----

      info->namelen = memdup(&info->name, authptr->name,
authptr->name_length);
      if(info->namelen)
+     {
+         if (getsockname(fd, sockname, &socknamelen) == -1)
+             ret = 0;
+         else
+             ret = compute_auth(info, authptr, sockname);
+     }
      if(!ret)
      {
        free(info->name);





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB24BA0.4060104>