Subject: Re: problems building openmotif on 2.0
To: None <tech-pkg@Netbsd.org>
From: None <joerg@britannica.bec.de>
List: tech-pkg
Date: 12/18/2005 16:39:41
--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sun, Dec 18, 2005 at 10:04:33AM -0500, Steven M. Bellovin wrote:
> /bin/sh ../../libtool --mode=link cc -O2 -I/usr/pkg/include -Wall -Wno-unused -
> Wno-comment -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/
> lib -o wmldbcreate wmldbcreate.o ../../lib/Xm/libXm.la
> cc -O2 -I/usr/pkgsrc/x11/openmotif/work/.buildlink/include -Wall -Wno-unused -Wn
> o-comment -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o .libs/wmldbcreate wmldbcrea
> te.o -L/usr/pkgsrc/x11/openmotif/work/.buildlink/lib -L/usr/pkgsrc/x11/openmoti
> f/work/.x11-buildlink/lib ../../lib/Xm/.libs/libXm.so -lXmu -lXt -lSM -lICE -lXe
> xt -lXp -lX11 -Wl,--rpath -Wl,/usr/pkg/lib
> ../../lib/Xm/.libs/libXm.so: undefined reference to `getpwuid_r'
> ../../lib/Xm/.libs/libXm.so: undefined reference to `getpwnam_r'
> gmake[2]: *** [wmldbcreate] Error 1
> gmake[2]: Leaving directory `/usr/pkgsrc/x11/openmotif/work/openMotif-2.2.3/tool
> s/wml'
Can you try the attached replacement for patch-ae?
Joerg
--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ae
$NetBSD: patch-ae,v 1.3 2005/12/12 19:55:41 joerg Exp $
--- clients/uil/UilDB.c.orig 2005-11-25 10:43:27.000000000 +0100
+++ clients/uil/UilDB.c
@@ -79,8 +79,9 @@ static char rcsid[] = "$XConsortium: Uil
#include <unistd.h>
#endif
-
-
+#if defined(__NetBSD__) && (__NetBSD_version >= 299001100) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
+#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
+#endif
#include "UilDefI.h"
--C7zPtVaVf+AK4Oqc--