monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] compiling 0.17


From: Joel Reed
Subject: [Monotone-devel] compiling 0.17
Date: Sun, 10 Apr 2005 17:23:19 -0400
User-agent: Mutt/1.5.5.1i

when i download 0.17 and try to compile it one my ubuntu hoary
desktop i get several compile errors all of which are caused by
the c++ compiler pulling in sqlite/config.h instead of ./config.h.

here's a sample error:

  if gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H
  -I. -I. -I.      -I./lua -I./sqlite -DTEMP_STORE=1 -DNDEBUG
  -DBOOST_DISABLE_THREADS -DSQLITE_OMIT_CURSOR -Wall  -O2
  -fno-strict-aliasing -MT idna/lib3rdparty_a-version.o -MD -MP -MF
  "idna/.deps/lib3rdparty_a-version.Tpo" \
    -c -o idna/lib3rdparty_a-version.o `test -f 'idna/version.c' || echo
    './'`idna/version.c; \
  then mv -f "idna/.deps/lib3rdparty_a-version.Tpo"
  "idna/.deps/lib3rdparty_a-version.Po"; \
  else rm -f "idna/.deps/lib3rdparty_a-version.Tpo"; exit 1; \
  fi
  idna/version.c: In function `stringprep_check_version':
  idna/version.c:83: error: `VERSION' undeclared (first use in this
  function)
  idna/version.c:83: error: (Each undeclared identifier is reported only
  once
  idna/version.c:83: error: for each function it appears in.)

if i change the above compile command to output the preprocessor 
output with "-E" the first few lines show the problem:

  # 1 "idna/version.c"
  # 1 "<built-in>"
  # 1 "<command line>"
  # 1 "idna/version.c"
  # 24 "idna/version.c"
  # 1 "sqlite/config.h" 1
  # 25 "idna/version.c" 2

if i rename sqlite/config.h to sqlite/sqlite-config.h and fixup
sqlite/sqliteInt.h, then i can compile monotone just fine.

i'm surprised this hasn't bitten anyone else, but back in the days 
of monotone 0.12, i downloaded and compiled it on totally different
boxen and had the same compile issue.

would a patch be accepted to make the above changes?

jr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]