From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD Resent-From: "Herbert J. Skuhra" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jun 2012 16:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11797@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13408136858290 (code B ref -1); Wed, 27 Jun 2012 16:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2012 16:14:45 +0000 Received: from localhost ([127.0.0.1]:60705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjutA-00029b-Ec for submit@debbugs.gnu.org; Wed, 27 Jun 2012 12:14:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35072) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjore-0008Oz-Hh for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:48:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjona-0007wJ-NA for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:44:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjona-0007wD-I1 for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:44:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjonU-0000VX-6M for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjonN-0007gU-H6 for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:27 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:47226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjonN-0007fL-6w for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:21 -0400 Received: by pbbrp2 with SMTP id rp2so1446869pbb.0 for ; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6M5+JbfVJs7KAVw4AoTCNMuLH60p4C3+U0zDB9vc8rA=; b=YmsZwp++zCdEWDVwERY/f0n9DhUlBRwKwzfbQtb+Cd/m0a5s6aDLt29QML/FvjWbXV cJq+bwNb6kLOufDm3WhZdkDZ6I5A06CwGSKMaRqz3Xb0Z32I4sOH+UvwnR6EgYKAL2yz FuAEcUaGi0Zefe0dKOITB8+ySYj890Jy8ott/z4i70usfuxvFjMK8YKd3Yyp9iQdLRM8 Nh/HrV4YYWaWLbyBfKwf3PJwby2PK7PLrX9hA4KqLw8c5VmnFZEK5C5puKAeP7KVzxI8 hBHcaF4vVJylDla1tjg6RLKoRA+/xoZ36yZJUdN+UZl5QME3j8Y29hAEj5nNmlSr/foe m94A== MIME-Version: 1.0 Received: by 10.68.227.163 with SMTP id sb3mr63101758pbc.74.1340790258194; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) Received: by 10.68.239.67 with HTTP; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) Date: Wed, 27 Jun 2012 11:44:18 +0200 Message-ID: From: "Herbert J. Skuhra" Content-Type: multipart/mixed; boundary=047d7b2ed3910ed95e04c3710f68 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Mailman-Approved-At: Wed, 27 Jun 2012 12:14:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --047d7b2ed3910ed95e04c3710f68 Content-Type: text/plain; charset=UTF-8 Hi, I get the following error when I run 'gmake bootstrap' on NetBSD-current: sysdep.c:2528:16: error: 'CTL_KERN' undeclared (first use in this function) sysdep.c:2528:16: note: each undeclared identifier is reported only once for each function it appears in sysdep.c:2528:26: error: 'KERN_PROC' undeclared (first use in this function) sysdep.c:2528:37: error: 'KERN_PROC_PROC' undeclared (first use in this function) sysdep.c:2537:3: warning: implicit declaration of function 'sysctl' sysdep.c:2548:18: error: invalid application of 'sizeof' to incomplete type 'struct kinfo_proc' sysdep.c:2548:7: warning: division by zero sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: comparison between pointer and integer sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: comparison between pointer and integer sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:7: error: incompatible type for argument 1 of 'make_float' lisp.h:2744:20: note: expected 'double' but argument is of type 'int *' sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: pointer/integer type mismatch in conditional expression sysdep.c:2554:7: warning: passing argument 1 of 'Fcons' makes integer from pointer without a cast lisp.h:2687:1: note: expected 'Lisp_Object' but argument is of type 'int *' gmake[2]: *** [sysdep.o] Error 1 gmake[2]: Leaving directory `/home/herbert/source/emacs/trunk/src' gmake[1]: *** [src] Error 2 gmake[1]: Leaving directory `/home/herbert/source/emacs/trunk' gmake: *** [bootstrap] Error 2 % uname -rms NetBSD 6.99.8 amd64 % bzr revno 108764 % ./autogen.sh % CPPFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib' ./configure --prefix=/usr/local/emacs --with-x-toolkit=gtk3 % gmake bootstrap Notes: 1. I have to modify the configure script so that it checks for -lpng15 instead of -lpng 2. I have to revert 108471 (see my notes to bug #11398) The attached patch fixes the build. -- Herbert --047d7b2ed3910ed95e04c3710f68 Content-Type: text/plain; charset=US-ASCII; name="patch_src_sysdep_c.txt" Content-Disposition: attachment; filename="patch_src_sysdep_c.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h3y7r9zf0 LS0tIHNyYy9zeXNkZXAuYy5iYWsJMjAxMi0wNi0yNyAxMTozMjo0NC4wMDAwMDAwMDAgKzAyMDAK KysrIHNyYy9zeXNkZXAuYwkyMDEyLTA2LTI3IDExOjM0OjIxLjAwMDAwMDAwMCArMDIwMApAQCAt NDUsNyArNDUsNyBAQAogI2luY2x1ZGUgPG1hdGguaD4KICNlbmRpZgogCi0jaWZkZWYgREFSV0lO X09TCisjaWYgZGVmaW5lZChEQVJXSU5fT1MpIHx8IGRlZmluZWQoX19OZXRCU0RfXykKICNpbmNs dWRlIDxzeXMvc3lzY3RsLmg+CiAjZW5kaWYKIApAQCAtMjUyMiw3ICsyNTIyLDcgQEAKIExpc3Bf T2JqZWN0CiBsaXN0X3N5c3RlbV9wcm9jZXNzZXMgKHZvaWQpCiB7Ci0jaWZkZWYgREFSV0lOX09T CisjaWYgZGVmaW5lZChEQVJXSU5fT1MpIHx8IGRlZmluZWQoX19OZXRCU0RfXykKICAgaW50IG1p YltdID0ge0NUTF9LRVJOLCBLRVJOX1BST0MsIEtFUk5fUFJPQ19BTEx9OwogI2Vsc2UKICAgaW50 IG1pYltdID0ge0NUTF9LRVJOLCBLRVJOX1BST0MsIEtFUk5fUFJPQ19QUk9DfTsKQEAgLTI1NDgs NyArMjU0OCw3IEBACiAgIGxlbiAvPSBzaXplb2YgKHN0cnVjdCBraW5mb19wcm9jKTsKICAgZm9y IChpID0gMDsgaSA8IGxlbjsgaSsrKQogICAgIHsKLSNpZmRlZiBEQVJXSU5fT1MKKyNpZiBkZWZp bmVkKERBUldJTl9PUykgfHwgZGVmaW5lZChfX05ldEJTRF9fKQogICAgICAgcHJvY2xpc3QgPSBG Y29ucyAobWFrZV9maXhudW1fb3JfZmxvYXQgKHByb2NzW2ldLmtwX3Byb2MucF9waWQpLCBwcm9j bGlzdCk7CiAjZWxzZQogICAgICAgcHJvY2xpc3QgPSBGY29ucyAobWFrZV9maXhudW1fb3JfZmxv YXQgKHByb2NzW2ldLmtpX3BpZCksIHByb2NsaXN0KTsK --047d7b2ed3910ed95e04c3710f68-- From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jun 2012 00:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Herbert J. Skuhra" Cc: 11797@debbugs.gnu.org Received: via spool by 11797-submit@debbugs.gnu.org id=B11797.134084217727227 (code B ref 11797); Thu, 28 Jun 2012 00:10:02 +0000 Received: (at 11797) by debbugs.gnu.org; 28 Jun 2012 00:09:37 +0000 Received: from localhost ([127.0.0.1]:33134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sk2Ij-000755-J0 for submit@debbugs.gnu.org; Wed, 27 Jun 2012 20:09:37 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58744) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sk2Ig-00074y-Uc for 11797@debbugs.gnu.org; Wed, 27 Jun 2012 20:09:35 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Sk2Ee-0008QZ-Bs; Wed, 27 Jun 2012 20:05:24 -0400 From: Glenn Morris References: X-Spook: freedom CDC enforcers Area 51 fundamentalist Putin csim X-Ran: gC\MQrC!7NJmfz}rx"#1s$!'mO:~Vb| (Herbert J. Skuhra's message of "Wed, 27 Jun 2012 11:44:18 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) "Herbert J. Skuhra" wrote: > 1. I have to modify the configure script so that it checks for -lpng15 > instead of -lpng Not the main part of your report of course, but really? There's no "libpng" on NetBSD, only "libpng15"? Isn't that a PITA for compiling a bunch of software, not just Emacs? You aren't just missing the equivalent of a "libpng-devel" package that provides the unversioned .so? From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD Resent-From: "Herbert J. Skuhra" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jun 2012 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Glenn Morris Cc: 11797@debbugs.gnu.org Received: via spool by 11797-submit@debbugs.gnu.org id=B11797.134087895723912 (code B ref 11797); Thu, 28 Jun 2012 10:23:02 +0000 Received: (at 11797) by debbugs.gnu.org; 28 Jun 2012 10:22:37 +0000 Received: from localhost ([127.0.0.1]:34199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkBrv-0006DZ-AT for submit@debbugs.gnu.org; Thu, 28 Jun 2012 06:22:36 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:63832) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkBrs-0006D2-Lu for 11797@debbugs.gnu.org; Thu, 28 Jun 2012 06:22:33 -0400 Received: by pbcwy7 with SMTP id wy7so2734147pbc.3 for <11797@debbugs.gnu.org>; Thu, 28 Jun 2012 03:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3S2/x09Q4qnAJXEGpJ/jBq0lzgsPdmy5pf/e8ZZpq3c=; b=Erc/LMGQRJIkNG72n8B4udM/tL4ZxpufG6OwMT7nE1LhG22iSRlOXC6Mk8npePyZAW WqWEE38kV6lp3i6A9zDLEl3hZ8wMB5xJ06uH4U2xUvCraGQ1pyr8jwtyvtN1G6PIMQ8i fGHdVztaNd3+LpbBMhtLEKzGgB2SkNMCxiZSx4KQaIbR625Q4d6zUD2umC56rvNR7lqp Wr7Q+dQbS6WIIu4DnivDC5uezaTyMY6vbSqg84Tq5s+SJm2ohEEbxUAt1FKew1kAjsTA wM24EJ7uQstZ6fM4c1dYAkr/ZIMRmPvoB70VJ5zI1WAcGii5g4HywexamDN+ZrbdYDBk nFnQ== MIME-Version: 1.0 Received: by 10.68.222.38 with SMTP id qj6mr5580017pbc.6.1340878695555; Thu, 28 Jun 2012 03:18:15 -0700 (PDT) Received: by 10.68.239.67 with HTTP; Thu, 28 Jun 2012 03:18:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Jun 2012 12:18:14 +0200 Message-ID: From: "Herbert J. Skuhra" Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Thu, Jun 28, 2012 at 2:05 AM, Glenn Morris wrote: > "Herbert J. Skuhra" wrote: > >> 1. I have to modify the configure script so that it checks for -lpng15 >> instead of -lpng > > Not the main part of your report of course, but really? > There's no "libpng" on NetBSD, only "libpng15"? I've built png from pkgsrc and I have only: /usr/pkg/lib/libpng15.la /usr/pkg/lib/libpng15.a /usr/pkg/lib/libpng15.so /usr/pkg/lib/libpng15.so.15 /usr/pkg/lib/libpng15.so.15.11.0 > Isn't that a PITA for compiling a bunch of software, not just Emacs? Yes, when the software does not use pkg-config or libpng-confg to detect libpng. > You aren't just missing the equivalent of a "libpng-devel" package that > provides the unversioned .so? pkgsrc has a workaround for software that does not use pkg-config or libpng-config. Excerpt from /usr/pkgsrc/graphics/png/buildlink3.mk: # Some software directly tries to link against -lpng instead of # using pkg-config or libpng-config to find the proper arguments # instead of installing symlinks. Work around this with buildlink # magic: packages outside pkgsrc will need to be converted to # one of the proper methods or fail. BUILDLINK_TRANSFORM+= l:png:png15 From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jun 2012 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Herbert J. Skuhra" Cc: 11797@debbugs.gnu.org Received: via spool by 11797-submit@debbugs.gnu.org id=B11797.13409048053976 (code B ref 11797); Thu, 28 Jun 2012 17:34:02 +0000 Received: (at 11797) by debbugs.gnu.org; 28 Jun 2012 17:33:25 +0000 Received: from localhost ([127.0.0.1]:35522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkIar-000125-C0 for submit@debbugs.gnu.org; Thu, 28 Jun 2012 13:33:25 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:55662) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SkIao-00011x-CM for 11797@debbugs.gnu.org; Thu, 28 Jun 2012 13:33:23 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SkIWh-0006WM-HW; Thu, 28 Jun 2012 13:29:07 -0400 From: Glenn Morris References: X-Spook: SDI global dictionary IMF Ansar al-Islam security condor X-Ran: Wd/vN]Q/g2R4=IJ#|-~L:k7\yv\]7L8c6BsdxzK0Fq1|V*w%\E5`Z>4KT^k.&1%.\3\~P< X-Hue: cyan X-Attribution: GM Date: Thu, 28 Jun 2012 13:29:07 -0400 In-Reply-To: (Herbert J. Skuhra's message of "Thu, 28 Jun 2012 12:18:14 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) "Herbert J. Skuhra" wrote: > Yes, when the software does not use pkg-config or libpng-confg to > detect libpng. So in other words a configure script has to use pkg-config for absolutely every library? Yay... From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD References: In-Reply-To: Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2012 02:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 11797@debbugs.gnu.org Cc: "Herbert J. Skuhra" Received: via spool by 11797-submit@debbugs.gnu.org id=B11797.134162881129522 (code B ref 11797); Sat, 07 Jul 2012 02:41:01 +0000 Received: (at 11797) by debbugs.gnu.org; 7 Jul 2012 02:40:11 +0000 Received: from localhost ([127.0.0.1]:53470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnKwM-0007g7-QT for submit@debbugs.gnu.org; Fri, 06 Jul 2012 22:40:11 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:51506) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnKwK-0007fx-9z for 11797@debbugs.gnu.org; Fri, 06 Jul 2012 22:40:09 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id A0DDBA6001D; Fri, 6 Jul 2012 19:35:06 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nwgNo6DQghov; Fri, 6 Jul 2012 19:35:06 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2FA89A60001; Fri, 6 Jul 2012 19:35:06 -0700 (PDT) Message-ID: <4FF7A05D.60509@cs.ucla.edu> Date: Fri, 06 Jul 2012 19:35:09 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I have installed a fix for this in the trunk, as bzr 108929. This is related to a similar patch I recently installed, for OpenBSD, in trunk bzr 108891. Should these be backported to Emacs 24? From unknown Wed Aug 20 06:04:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11797: trunk does not build on NetBSD References: In-Reply-To: Resent-From: Han Boetes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2012 17:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 11797@debbugs.gnu.org Cc: Paul Eggert Received: via spool by 11797-submit@debbugs.gnu.org id=B11797.13416836606567 (code B ref 11797); Sat, 07 Jul 2012 17:55:01 +0000 Received: (at 11797) by debbugs.gnu.org; 7 Jul 2012 17:54:20 +0000 Received: from localhost ([127.0.0.1]:55086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnZD1-0001hr-LH for submit@debbugs.gnu.org; Sat, 07 Jul 2012 13:54:20 -0400 Received: from mail-ee0-f44.google.com ([74.125.83.44]:51262) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnRAs-0000eo-BK for 11797@debbugs.gnu.org; Sat, 07 Jul 2012 05:19:35 -0400 Received: by eekd4 with SMTP id d4so3748040eek.3 for <11797@debbugs.gnu.org>; Sat, 07 Jul 2012 02:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=EjTIqGxtyq3al1ufiAQrE9UTCBULFXmBxG6fSXkwuKc=; b=X5vFUEKegfbnqFeAFqECQHcB5nUz9HtggEJrpXNIcxD57/NJAtVUtuH563Wk3YaQvx OUqziK70KPTFrwWICzD5bAtRe3EU2Q6q+s6qboIp1SmXIBsdLwZnHUW7kPL4GUVS2ePG z4uyI6Nw+nTYl2b0vFyv5cHaMU8dLaK6fHW1bPzVbTgD6z/JXpYEicpZaH7+3Y869SOH Lt0a9Z7zH8ciHc8TvG0+IdlzqGdUk1npR95o0IMMLORNnhah2f4y0FMdzzOjIM7Giphn Wj0oaEPnx9jhz6nIwjqzHyru7xwJja2vlzgNfkJXb1jlmJwl6dIfknLRxISe+Srn8vI1 6N5Q== Received: by 10.14.185.134 with SMTP id u6mr7661653eem.188.1341652470741; Sat, 07 Jul 2012 02:14:30 -0700 (PDT) Received: from [192.168.1.51] (195-241-12-241.ip.open.net. [195.241.12.241]) by mx.google.com with ESMTPS id z5sm77728636eem.3.2012.07.07.02.14.29 (version=SSLv3 cipher=OTHER); Sat, 07 Jul 2012 02:14:30 -0700 (PDT) Message-ID: <4FF7FDF4.9050202@gmail.com> Date: Sat, 07 Jul 2012 11:14:28 +0200 From: Han Boetes User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Mailman-Approved-At: Sat, 07 Jul 2012 13:54:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) I noticed a similar problem on OpenBSD not building and offered Paul Eggert an account on my machine so he could fix the issue. This is what he changed. Since he used __OpenBSD__ I don't think it will work on NetBSD but it's a sure step in the right direction. Please consider reading: http://www.openbsd.org/faq/ports/guide.html#PortsGeneric ~/nfs/Emacs/emacs% bzr diff -r-40.. src/sysdep.c === modified file 'src/sysdep.c' --- src/sysdep.c 2012-07-05 18:35:48 +0000 +++ src/sysdep.c 2012-07-06 08:28:29 +0000 @@ -38,17 +38,17 @@ #include "sysselect.h" #include "blockinput.h" +#ifdef BSD_SYSTEM +#include +#include +#endif + #ifdef __FreeBSD__ -#include #include #include #include #endif -#ifdef DARWIN_OS -#include -#endif - #ifdef WINDOWSNT #define read sys_read #define write sys_write @@ -2520,7 +2520,7 @@ Lisp_Object list_system_processes (void) { -#ifdef DARWIN_OS +#if defined DARWIN_OS || defined __OpenBSD__ int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL}; #else int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PROC}; @@ -2548,6 +2548,8 @@ { #ifdef DARWIN_OS proclist = Fcons (make_fixnum_or_float (procs[i].kp_proc.p_pid), proclist); +#elif defined __OpenBSD__ + proclist = Fcons (make_fixnum_or_float (procs[i].p_pid), proclist); #else proclist = Fcons (make_fixnum_or_float (procs[i].ki_pid), proclist); #endif From unknown Wed Aug 20 06:04:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Herbert J. Skuhra" Subject: bug#11797: closed (fixed in trunk) Message-ID: References: <4FFF798B.60001@cs.ucla.edu> X-Gnu-PR-Message: they-closed 11797 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 11797@debbugs.gnu.org Date: Fri, 13 Jul 2012 01:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1342143242-16810-1" This is a multi-part message in MIME format... ------------=_1342143242-16810-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11797: trunk does not build on NetBSD which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11797@debbugs.gnu.org. --=20 11797: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11797 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1342143242-16810-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11797-done) by debbugs.gnu.org; 13 Jul 2012 01:33:20 +0000 Received: from localhost ([127.0.0.1]:37223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpUkx-0004ME-GV for submit@debbugs.gnu.org; Thu, 12 Jul 2012 21:33:20 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:48139) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpUkv-0004M1-Dk for 11797-done@debbugs.gnu.org; Thu, 12 Jul 2012 21:33:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 2E3E439E800B for <11797-done@debbugs.gnu.org>; Thu, 12 Jul 2012 18:27:41 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AUOGlUIeDwUU for <11797-done@debbugs.gnu.org>; Thu, 12 Jul 2012 18:27:40 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id D308D39E8008 for <11797-done@debbugs.gnu.org>; Thu, 12 Jul 2012 18:27:40 -0700 (PDT) Message-ID: <4FFF798B.60001@cs.ucla.edu> Date: Thu, 12 Jul 2012 18:27:39 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: 11797-done@debbugs.gnu.org Subject: fixed in trunk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11797-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Since this is fixed in the trunk I am marking this as 'done'. If there's a desire to backport this to Emacs 24 that can be opened as a separate bug report. ------------=_1342143242-16810-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jun 2012 16:14:45 +0000 Received: from localhost ([127.0.0.1]:60705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjutA-00029b-Ec for submit@debbugs.gnu.org; Wed, 27 Jun 2012 12:14:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35072) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjore-0008Oz-Hh for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:48:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjona-0007wJ-NA for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:44:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjona-0007wD-I1 for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:44:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjonU-0000VX-6M for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjonN-0007gU-H6 for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:27 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:47226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjonN-0007fL-6w for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 05:44:21 -0400 Received: by pbbrp2 with SMTP id rp2so1446869pbb.0 for ; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6M5+JbfVJs7KAVw4AoTCNMuLH60p4C3+U0zDB9vc8rA=; b=YmsZwp++zCdEWDVwERY/f0n9DhUlBRwKwzfbQtb+Cd/m0a5s6aDLt29QML/FvjWbXV cJq+bwNb6kLOufDm3WhZdkDZ6I5A06CwGSKMaRqz3Xb0Z32I4sOH+UvwnR6EgYKAL2yz FuAEcUaGi0Zefe0dKOITB8+ySYj890Jy8ott/z4i70usfuxvFjMK8YKd3Yyp9iQdLRM8 Nh/HrV4YYWaWLbyBfKwf3PJwby2PK7PLrX9hA4KqLw8c5VmnFZEK5C5puKAeP7KVzxI8 hBHcaF4vVJylDla1tjg6RLKoRA+/xoZ36yZJUdN+UZl5QME3j8Y29hAEj5nNmlSr/foe m94A== MIME-Version: 1.0 Received: by 10.68.227.163 with SMTP id sb3mr63101758pbc.74.1340790258194; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) Received: by 10.68.239.67 with HTTP; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) Date: Wed, 27 Jun 2012 11:44:18 +0200 Message-ID: Subject: trunk does not build on NetBSD From: "Herbert J. Skuhra" To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary=047d7b2ed3910ed95e04c3710f68 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 27 Jun 2012 12:14:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --047d7b2ed3910ed95e04c3710f68 Content-Type: text/plain; charset=UTF-8 Hi, I get the following error when I run 'gmake bootstrap' on NetBSD-current: sysdep.c:2528:16: error: 'CTL_KERN' undeclared (first use in this function) sysdep.c:2528:16: note: each undeclared identifier is reported only once for each function it appears in sysdep.c:2528:26: error: 'KERN_PROC' undeclared (first use in this function) sysdep.c:2528:37: error: 'KERN_PROC_PROC' undeclared (first use in this function) sysdep.c:2537:3: warning: implicit declaration of function 'sysctl' sysdep.c:2548:18: error: invalid application of 'sizeof' to incomplete type 'struct kinfo_proc' sysdep.c:2548:7: warning: division by zero sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: comparison between pointer and integer sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: comparison between pointer and integer sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:7: error: incompatible type for argument 1 of 'make_float' lisp.h:2744:20: note: expected 'double' but argument is of type 'int *' sysdep.c:2554:7: error: invalid use of undefined type 'struct kinfo_proc' sysdep.c:2554:25: error: dereferencing pointer to incomplete type sysdep.c:2554:25: error: request for member 'ki_pid' in something not a structure or union sysdep.c:2554:25: warning: pointer/integer type mismatch in conditional expression sysdep.c:2554:7: warning: passing argument 1 of 'Fcons' makes integer from pointer without a cast lisp.h:2687:1: note: expected 'Lisp_Object' but argument is of type 'int *' gmake[2]: *** [sysdep.o] Error 1 gmake[2]: Leaving directory `/home/herbert/source/emacs/trunk/src' gmake[1]: *** [src] Error 2 gmake[1]: Leaving directory `/home/herbert/source/emacs/trunk' gmake: *** [bootstrap] Error 2 % uname -rms NetBSD 6.99.8 amd64 % bzr revno 108764 % ./autogen.sh % CPPFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib' ./configure --prefix=/usr/local/emacs --with-x-toolkit=gtk3 % gmake bootstrap Notes: 1. I have to modify the configure script so that it checks for -lpng15 instead of -lpng 2. I have to revert 108471 (see my notes to bug #11398) The attached patch fixes the build. -- Herbert --047d7b2ed3910ed95e04c3710f68 Content-Type: text/plain; charset=US-ASCII; name="patch_src_sysdep_c.txt" Content-Disposition: attachment; filename="patch_src_sysdep_c.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h3y7r9zf0 LS0tIHNyYy9zeXNkZXAuYy5iYWsJMjAxMi0wNi0yNyAxMTozMjo0NC4wMDAwMDAwMDAgKzAyMDAK KysrIHNyYy9zeXNkZXAuYwkyMDEyLTA2LTI3IDExOjM0OjIxLjAwMDAwMDAwMCArMDIwMApAQCAt NDUsNyArNDUsNyBAQAogI2luY2x1ZGUgPG1hdGguaD4KICNlbmRpZgogCi0jaWZkZWYgREFSV0lO X09TCisjaWYgZGVmaW5lZChEQVJXSU5fT1MpIHx8IGRlZmluZWQoX19OZXRCU0RfXykKICNpbmNs dWRlIDxzeXMvc3lzY3RsLmg+CiAjZW5kaWYKIApAQCAtMjUyMiw3ICsyNTIyLDcgQEAKIExpc3Bf T2JqZWN0CiBsaXN0X3N5c3RlbV9wcm9jZXNzZXMgKHZvaWQpCiB7Ci0jaWZkZWYgREFSV0lOX09T CisjaWYgZGVmaW5lZChEQVJXSU5fT1MpIHx8IGRlZmluZWQoX19OZXRCU0RfXykKICAgaW50IG1p YltdID0ge0NUTF9LRVJOLCBLRVJOX1BST0MsIEtFUk5fUFJPQ19BTEx9OwogI2Vsc2UKICAgaW50 IG1pYltdID0ge0NUTF9LRVJOLCBLRVJOX1BST0MsIEtFUk5fUFJPQ19QUk9DfTsKQEAgLTI1NDgs NyArMjU0OCw3IEBACiAgIGxlbiAvPSBzaXplb2YgKHN0cnVjdCBraW5mb19wcm9jKTsKICAgZm9y IChpID0gMDsgaSA8IGxlbjsgaSsrKQogICAgIHsKLSNpZmRlZiBEQVJXSU5fT1MKKyNpZiBkZWZp bmVkKERBUldJTl9PUykgfHwgZGVmaW5lZChfX05ldEJTRF9fKQogICAgICAgcHJvY2xpc3QgPSBG Y29ucyAobWFrZV9maXhudW1fb3JfZmxvYXQgKHByb2NzW2ldLmtwX3Byb2MucF9waWQpLCBwcm9j bGlzdCk7CiAjZWxzZQogICAgICAgcHJvY2xpc3QgPSBGY29ucyAobWFrZV9maXhudW1fb3JfZmxv YXQgKHByb2NzW2ldLmtpX3BpZCksIHByb2NsaXN0KTsK --047d7b2ed3910ed95e04c3710f68-- ------------=_1342143242-16810-1--