Skip to content

Instantly share code, notes, and snippets.

@anddam
Created April 28, 2013 16:10
Show Gist options
  • Save anddam/5477362 to your computer and use it in GitHub Desktop.
Save anddam/5477362 to your computer and use it in GitHub Desktop.
db46 issues when db.h from db46 is in include path
### with selection from group db set to none
/bin/sh ./libtool --mode=compile /usr/bin/clang -c -pipe -Os -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c
/usr/bin/clang -c -pipe -Os -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/db_dump185.o
../dist/../db_dump185/db_dump185.c:189:15: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]
while ((ch = getopt(argc, argv, "f:p")) != EOF)
^
1 warning generated.
### with selection from group db set to db46
/bin/sh ./libtool --mode=compile /usr/bin/clang -c -pipe -Os -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c
/usr/bin/clang -c -pipe -Os -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/db_dump185.o
../dist/../db_dump185/db_dump185.c:211:13: warning: implicit declaration of function 'dbopen' is invalid in C99 [-Wimplicit-function-declaration]
if ((dbp = dbopen(argv[0], O_RDONLY, 0, DB_BTREE, NULL)) == NULL) {
^
../dist/../db_dump185/db_dump185.c:211:11: warning: incompatible integer to pointer conversion assigning to 'DB *' (aka 'struct __db *') from 'int' [-Wint-conversion]
if ((dbp = dbopen(argv[0], O_RDONLY, 0, DB_BTREE, NULL)) == NULL) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../dist/../db_dump185/db_dump185.c:212:12: warning: incompatible integer to pointer conversion assigning to 'DB *' (aka 'struct __db *') from 'int' [-Wint-conversion]
if ((dbp =
^
../dist/../db_dump185/db_dump185.c:228:24: error: no member named 'seq' in 'struct __db'
while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
~~~ ^
../dist/../db_dump185/db_dump185.c:228:46: error: use of undeclared identifier 'R_NEXT'
while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
^
../dist/../db_dump185/db_dump185.c:233:24: error: no member named 'seq' in 'struct __db'
while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
~~~ ^
../dist/../db_dump185/db_dump185.c:233:46: error: use of undeclared identifier 'R_NEXT'
while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
^
../dist/../db_dump185/db_dump185.c:261:18: error: no member named 'internal' in 'struct __db'
hash185p = dbp->internal;
~~~ ^
../dist/../db_dump185/db_dump185.c:263:19: error: no member named 'internal' in 'struct __db'
hash186p = dbp->internal;
~~~ ^
../dist/../db_dump185/db_dump185.c:288:13: error: no member named 'internal' in 'struct __db'
btp = dbp->internal;
~~~ ^
3 warnings and 7 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment