NetBSD Problem Report #36460
From perkinsm@bway.net Fri Jun 8 21:10:39 2007
Return-Path: <perkinsm@bway.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 86A6463B8FF
for <gnats-bugs@gnats.netbsd.org>; Fri, 8 Jun 2007 21:10:39 +0000 (UTC)
Message-Id: <1181337016.8706@owl.fringe.mep>
Date: Fri, 8 Jun 2007 17:10:16 -0400
From: "Mark E. Perkins" <perkinsm@bway.net>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Cc: perkinsm@panix.com
Subject: wm/windowmaker build fails on Mac OS X i36 and PPC (patches included)
X-Send-Pr-Version: gtk-send-pr 0.4.8
X-GNATS-Notify:
>Number: 36460
>Category: pkg
>Synopsis: wm/windowmaker build fails on Mac OS X i36 and PPC (patches included)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: darwin-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 08 21:15:00 +0000 2007
>Closed-Date: Thu Jun 21 01:09:45 +0000 2007
>Last-Modified: Thu Jun 21 01:09:45 +0000 2007
>Originator: Mark E. Perkins
>Release: Darwin 8.9.1 i386
>Organization:
>Environment:
System: Darwin owl.fringe.mep 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386
>Description:
Build fails for two reasons. The first is an assembly code issue for Darwin/i386
(which can be bypassed with the first patch included below):
gcc -DHAVE_CONFIG_H -I. -I../src -no-cpp-precomp -I/usr/pkgsrc/wm/windowmaker/work/.buildlink/include -I/usr/pkgsrc/wm/windowmaker/work/.buildlink/include/freetype2 -I/usr/pkgsrc/wm/windowmaker/work/.x11-buildlink/include -pipe -O2 -O0 -c x86_specific.c -fno-common -DPIC -o .libs/x86_specific.o
x86_specific.c: In function 'x86_mmx_TrueColor_32_to_16':
x86_specific.c:107: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/wm/windowmaker/work/WindowMaker-0.92.0/wrlib
*** Error code 1
The next problem(s) are undefined __Xsetlocale in various places (both for i36 and PPC).
The configure phase finds this in libX11, but there are problems in two Makefile.in files.
Looking at those Makefile.in's, there seems to be more than one way to patch this problem
in way that is consistent with other parts of the Makefile.in's. My approach is included in the
last two patches included below.
/bin/sh ../../libtool --mode=link gcc -pipe -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -L/usr/pkg/lib -L/usr/lib -L/usr/X11R6/lib -o connect connect.o ../../WINGs/libWUtil.a -L/lib -L/lib -lintl -liconv
mkdir .libs
gcc -pipe -O2 -I/usr/pkgsrc/wm/windowmaker/work/.buildlink/include -I/usr/pkgsrc/wm/windowmaker/work/.buildlink/include/freetype2 -I/usr/pkgsrc/wm/windowmaker/work/.x11-buildlink/include -o connect connect.o -L/usr/pkgsrc/wm/windowmaker/work/.buildlink/lib -L/usr/pkgsrc/wm/windowmaker/work/.x11-buildlink/lib ../../WINGs/libWUtil.a /usr/pkgsrc/wm/windowmaker/work/.buildlink/lib/libintl.dylib -lc /usr/lib/libiconv.dylib
/usr/bin/ld: Undefined symbols:
__Xsetlocale
collect2: ld returned 1 exit status
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/wm/windowmaker/work/WindowMaker-0.92.0/WINGs/Examples
*** Error code 1
>How-To-Repeat:
bmake in pkgsrc/wm/windowmaker on Darwin
>Fix:
============================================================
--- Makefile 2007-02-02 21:59:22.000000000 -0500
+++ Makefile.new 2007-06-08 16:34:14.000000000 -0400
@@ -34,6 +34,10 @@
CONFIGURE_ENV+= ac_cv_c_inline_asm=no
.endif
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ENV+= ac_cv_c_inline_asm=no
+.endif
+
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+= 3.0
.endif
============================================================
--- WINGs/Examples/Makefile.in.orig 2005-06-18 23:23:00.000000000 -0400
+++ WINGs/Examples/Makefile.in 2007-05-19 16:49:26.000000000 -0400
@@ -127,12 +127,12 @@
connect_DEPENDENCIES = $(top_builddir)/WINGs/libWUtil.a
-connect_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ @NETLIBS@ @INTLIBS@
+connect_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ @NETLIBS@ @INTLIBS@ @XLIBS@
server_DEPENDENCIES = $(top_builddir)/WINGs/libWUtil.a
-server_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ @NETLIBS@ @INTLIBS@
+server_LDADD = $(top_builddir)/WINGs/libWUtil.a @LIBRARY_SEARCH_PATH@ @NETLIBS@ @INTLIBS@ @XLIBS@
INCLUDES = -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src -DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG
============================================================
--- util/Makefile.in.orig 2007-05-19 16:05:08.000000000 -0400
+++ util/Makefile.in 2007-05-19 16:45:17.000000000 -0400
@@ -126,15 +126,15 @@
liblist = @LIBRARY_SEARCH_PATH@ @INTLIBS@
-wdwrite_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+wdwrite_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
-wdread_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+wdread_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
wxcopy_LDADD = @XLFLAGS@ @XLIBS@
wxpaste_LDADD = @XLFLAGS@ @XLIBS@
-getstyle_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+getstyle_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
getstyle_SOURCES = getstyle.c fontconv.c
@@ -143,13 +143,13 @@
setstyle_SOURCES = setstyle.c fontconv.c
-convertfonts_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+convertfonts_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
convertfonts_SOURCES = convertfonts.c fontconv.c
-seticons_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+seticons_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
-geticonset_LDADD = $(top_builddir)/WINGs/libWUtil.a $(liblist)
+geticonset_LDADD = $(top_builddir)/WINGs/libWUtil.a @XLFLAGS@ @XLIBS@ $(liblist)
wmagnify_LDADD = $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la @XFTLIBS@ @INTLIBS@ @DLLIBS@
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Sun, 10 Jun 2007 19:42:16 +0000
Responsible-Changed-Why:
Darwin-specific problem.
From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36460 CVS commit: pkgsrc/wm/windowmaker
Date: Thu, 21 Jun 2007 00:00:24 +0000 (UTC)
Module Name: pkgsrc
Committed By: minskim
Date: Thu Jun 21 00:00:24 UTC 2007
Modified Files:
pkgsrc/wm/windowmaker: distinfo
Added Files:
pkgsrc/wm/windowmaker/patches: patch-ag patch-ak
Log Message:
Add link options to build on Darwin. Patches provided by Mark E. Perkins
in PR 36460. This fixes the second half of the PR.
To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 pkgsrc/wm/windowmaker/distinfo
cvs rdiff -r0 -r1.6 pkgsrc/wm/windowmaker/patches/patch-ag
cvs rdiff -r0 -r1.3 pkgsrc/wm/windowmaker/patches/patch-ak
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36460 CVS commit: pkgsrc/wm/windowmaker
Date: Thu, 21 Jun 2007 00:58:05 +0000 (UTC)
Module Name: pkgsrc
Committed By: minskim
Date: Thu Jun 21 00:58:04 UTC 2007
Modified Files:
pkgsrc/wm/windowmaker: Makefile
Added Files:
pkgsrc/wm/windowmaker: hacks.mk
Log Message:
If gcc-4 is used, disable inline assembly until GCC Bug #25221 is fixed.
Previously, it was done in Makefile for gcc-4.1 only. Now it covers
gcc-4.0.* and is located in the proper place (hacks.mk).
This fixes PR 36460.
To generate a diff of this commit:
cvs rdiff -r1.74 -r1.75 pkgsrc/wm/windowmaker/Makefile
cvs rdiff -r0 -r1.1 pkgsrc/wm/windowmaker/hacks.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: minskim@netbsd.org
State-Changed-When: Thu, 21 Jun 2007 01:09:45 +0000
State-Changed-Why:
Patches applied. Thank you!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.