Skip to content

Instantly share code, notes, and snippets.

@slaskis
Created July 17, 2009 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaskis/149013 to your computer and use it in GitHub Desktop.
Save slaskis/149013 to your computer and use it in GitHub Desktop.
have_header: checking for sqlite3.h... -------------------- yes
"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <sqlite3.h>
/* end */
--------------------
have_library: checking for sqlite3_open() in -lsqlite3... -------------------- no
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -L/opt/local/lib -L/usr/lib -L. -arch ppc -arch i386 -lruby -lsqlite3 -lpthread -ldl -lm "
conftest.c: In function ‘t’:
conftest.c:3: error: ‘sqlite3_open’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
conftest.c: In function ‘t’:
conftest.c:3: error: ‘sqlite3_open’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccEvsElo.out
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))sqlite3_open; return 0; }
/* end */
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/lib -L/opt/local/lib -L/usr/lib -L. -arch ppc -arch i386 -lruby -lsqlite3 -lpthread -ldl -lm "
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘sqlite3_open’
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘sqlite3_open’
ld warning: in /opt/local/lib/libsqlite3.dylib, file is not of required architecture
Undefined symbols for architecture ppc:
"_sqlite3_open", referenced from:
_t in cc9QjnnQ.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccxhSY01.out (No such file or directory)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { sqlite3_open(); return 0; }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment