From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id r96FT6SY030366 for ; Sun, 6 Oct 2013 11:29:07 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1VSqGW-00085E-6F; Sun, 06 Oct 2013 17:29:04 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1VSqGW-0004Go-5p; Sun, 06 Oct 2013 17:29:04 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1VSqGW-0008PC-4D; Sun, 06 Oct 2013 17:29:04 +0200 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1VSqGV-0001am-Tf; Sun, 06 Oct 2013 17:29:03 +0200 Date: Sun, 6 Oct 2013 17:29:03 +0200 From: Ingo Schwarze To: discuss@mdocml.bsd.lv Cc: Thomas Klausner Subject: Building on __sun, was: Re: mdocml-1.12.2 release announcement Message-ID: <20131006152903.GC17303@iris.usta.de> References: <20131005154559.GA19214@iris.usta.de> <20131006113225.GK23855@danbala.tuwien.ac.at> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131006113225.GK23855@danbala.tuwien.ac.at> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Thomas, Thomas Klausner wrote on Sun, Oct 06, 2013 at 01:32:25PM +0200: > Since pkgsrc has been upgraded, we also have SunOS testing now :) > It fails due to missing endian.h, details at > http://us-east.manta.joyent.com/pkgsrc/public/reports/upstream-trunk32/20131005.2027/mdocml-1.12.2/build.log Oh boy. That's not even a 1.12.2 regression, it's a 1.12.1 regression, so nobody on __sun notived for one and a half years. Can you try this, please? I pulled a tree from git://github.com/illumos/illumos-gate.git and according to what i see in there, it ought to work, but i can't really test compilation on __sun ... Thank you, Ingo Index: apropos_db.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Attic/apropos_db.c,v retrieving revision 1.32.2.2 diff -u -p -r1.32.2.2 apropos_db.c --- apropos_db.c 5 Oct 2013 20:30:05 -0000 1.32.2.2 +++ apropos_db.c 6 Oct 2013 15:25:29 -0000 @@ -30,14 +30,19 @@ #include #include -#if defined(__linux__) -# include -# include -#elif defined(__APPLE__) +#if defined(__APPLE__) # include -# include +#elif defined(__linux__) +# include +#elif defined(__sun) +# include #else # include +#endif + +#if defined(__linux__) +# include +#else # include #endif Index: config.h.post =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/config.h.post,v retrieving revision 1.6.2.2 diff -u -p -r1.6.2.2 config.h.post --- config.h.post 3 Oct 2013 00:46:36 -0000 1.6.2.2 +++ config.h.post 6 Oct 2013 15:25:29 -0000 @@ -19,6 +19,9 @@ # if defined(__APPLE__) # define betoh64(x) OSSwapBigToHostInt64(x) # define htobe64(x) OSSwapHostToBigInt64(x) +# elif defined(__sun) +# define betoh64(x) BE_64(x) +# define htobe64(x) BE_64(x) # else # define betoh64(x) be64toh(x) # endif Index: mandocdb.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v retrieving revision 1.49.2.8 diff -u -p -r1.49.2.8 mandocdb.c --- mandocdb.c 5 Oct 2013 20:30:05 -0000 1.49.2.8 +++ mandocdb.c 6 Oct 2013 15:25:34 -0000 @@ -34,19 +34,21 @@ #include #include -#if defined(__linux__) || defined(__sun) -# include -# include -#elif defined(__APPLE__) +#if defined(__APPLE__) # include -# include +#elif defined(__linux__) +# include +#elif defined(__sun) +# include +# include #else # include -# include #endif -#if defined(__sun) -#include +#if defined(__linux__) +# include +#else +# include #endif #include "man.h" -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv