[Xapian-tickets] [Xapian] #826: Syntax error in conftext.cpp:105 during configure

Xapian nobody at xapian.org
Thu Apr 11 22:52:24 BST 2024


#826: Syntax error in conftext.cpp:105 during configure
--------------------------+-------------------------------
 Reporter:  Eyal R.       |             Owner:  Olly Betts
     Type:  defect        |            Status:  new
 Priority:  normal        |         Milestone:
Component:  Build system  |           Version:  git master
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Linux
--------------------------+-------------------------------
Comment (by Olly Betts):

 > The Omega Changelog says: [...]

 That's from an entry dated '''2007'''.  We really would have noticed long
 ago if this problem was introduced 17 years ago.

 We *DO* still probe for `mode_t`, etc, but as I said we use the standard
 autoconf-provided macros to do so - that code you quote from `configure`
 comes from autoconf, it's not in our repo.  However if you follow it
 through, the test code that gets generated and compiled should only has a
 single set of parentheses around the type `sizeof` is applied to - see
 shell function `ac_fn_cxx_check_type`:

 {{{
 int
 main (void)
 {
 if (sizeof ($2))
          return 0;
   ;
   return 0;
 }
 }}}

 Here `$2` is the type being tested, which comes from the code you quote.
 That passes `mode_t` not `(mode_t)`, so the test program should have
 `sizeof (mode_t)`.

 The only change we've made in this area at all recently was upgrading to
 bootstrapping with libtool 2.4.7 on April 2nd, but I don't see any
 references to `mode_t` or `ac_fn_cxx_check_type` in there.

 I do most of my dev work on a Debian unstable machine so this looks like
 some difference in devaun - are they carrying extra patches in their
 autoconf package perhaps?

 You could try running bootstrap with `./bootstrap --download-tools=always`
 to tell it not to even consider using installed versions of autoconf, etc.
 If that works, that very strongly points the finger at some dodgy distro
 patching.
-- 
Ticket URL: <https://trac.xapian.org/ticket/826#comment:8>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list