Bug #1130
openCurrent illumos fails to build with both DEBUG and non-DEBUG disabled.
0%
Description
With NIGHTLY_OPTIONS='-FnCmprt'
I'm getting this:
+ /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu89 -gdwarf-2 -std=gnu89 -fno-dwarf2-indirect-strings -I. -I../common -I../../../common/svc -I/home/xl0/work/illumos/illumos-gate/proto/root_i386/usr/include/sqlite -D_REENTRANT -I/home/xl0/work/illumos/illumos-gate/usr/src/lib/libuutil/common -I/home/xl0/work/illumos/illumos-gate/usr/src/lib/libscf/inc -DNATIVE_BUILD -c -o /tmp/nightly.tmpdir.9310/.cwCAAM.ai_Y.o backend.c
backend.c:58:20: sqlite.h: No such file or directory
backend.c:59:25: sqlite-misc.h: No such file or directory
backend.c: In function `backend_is_readonly':
backend.c:480: error: `SQLITE_READONLY' undeclared (first use in this function)
backend.c:480: error: (Each undeclared identifier is reported only once
backend.c:480: error: for each function it appears in.)
backend.c: In function `backend_error':
backend.c:604: error: `SQLITE_OK' undeclared (first use in this function)
backend.c:608: error: `SQLITE_ABORT' undeclared (first use in this function)
backend.c:612: error: `SQLITE_NOMEM' undeclared (first use in this function)
backend.c:613: error: `SQLITE_FULL' undeclared (first use in this function)
backend.c:614: error: `SQLITE_TOOBIG' undeclared (first use in this function)
backend.c: In function `backend_check_upgrade':
backend.c:1213: error: `SQLITE_ERROR' undeclared (first use in this function)
backend.c:1238: error: `SQLITE_OK' undeclared (first use in this function)
backend.c: In function `backend_check_readonly':
backend.c:1282: warning: assignment makes pointer from integer without a cast
backend.c:1289: error: `SQLITE_OK' undeclared (first use in this function)
backend.c: In function `backend_switch_check':
backend.c:1598: error: `SQLITE_OK' undeclared (first use in this function)
backend.c: In function `backend_switch':
backend.c:1672: warning: assignment makes pointer from integer without a cast
backend.c: In function `backend_switch_recovery':
backend.c:1753: warning: assignment makes pointer from integer without a cast
backend.c:1762: error: `SQLITE_OK' undeclared (first use in this function)
backend.c:1763: error: `SQLITE_READONLY' undeclared (first use in this function)
backend.c:1772: warning: assignment makes pointer from integer without a cast
backend.c: In function `backend_create':
backend.c:1857: warning: assignment makes pointer from integer without a cast
backend.c:1882: error: `SQLITE_ERROR' undeclared (first use in this function)
backend.c:1901: error: `SQLITE_BUSY' undeclared (first use in this function)
backend.c:1901: error: `SQLITE_LOCKED' undeclared (first use in this function)
Full log attached
Files
Updated by Rich Lowe over 12 years ago
- Subject changed from Current illumos fails to build with DEBUG disabled. to Current illumos fails to build with both DEBUG and non-DEBUG disabled.
- Priority changed from High to Low
Your options do not ask for a non-DEBUG build, but instead ask for no build at all.
-D means "do a DEBUG build"
-F means "do NOT do a non-DEBUG build" (as non-debug is the default).
You removed -D from NIGHTLY_OPTIONS but not -F, so you asked for a (mostly) no-op.
The build breaks because you did enable Check (C), so we need access to the native SMF tools to check the manifests, however, they don't build outside of the normal source build (perhaps this should be fixed).