From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert J. Skuhra" Newsgroups: gmane.emacs.bugs Subject: bug#11797: trunk does not build on NetBSD Date: Wed, 27 Jun 2012 11:44:18 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b2ed3910ed95e04c3710f68 X-Trace: dough.gmane.org 1340813469 29913 80.91.229.3 (27 Jun 2012 16:11:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 16:11:09 +0000 (UTC) To: 11797@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 18:11:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjupZ-0003G5-1f for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 18:11:01 +0200 Original-Received: from localhost ([::1]:32985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjupY-0003i0-Of for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 12:11:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjupV-0003ht-9O for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 12:10:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjupT-0002B4-BE for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 12:10:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjupT-0002AK-4J for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 12:10:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SjutR-0002AQ-Tf for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2012 12:15:01 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13408136858290 (code B ref -1); Wed, 27 Jun 2012 16:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jun 2012 16:14:45 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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== Original-Received: by 10.68.227.163 with SMTP id sb3mr63101758pbc.74.1340790258194; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) Original-Received: by 10.68.239.67 with HTTP; Wed, 27 Jun 2012 02:44:18 -0700 (PDT) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61331 Archived-At: --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+CiAjZW5kaW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