Skip to content

Instantly share code, notes, and snippets.

@sja
Last active December 30, 2015 06:29
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 sja/7789544 to your computer and use it in GitHub Desktop.
Save sja/7789544 to your computer and use it in GitHub Desktop.
Cannot compile app_mongodb
root@pbx:/usr/src/app_mongodb# make
gcc -w -g -pthread -pipe -g3 -O6 -fPIC -DMONGO_HAVE_STDINT -DAST_MODULE=\"app_mongodb\" -c -I/usr/include/ -I/usr/local/include/ -I/opt/asterisk/include/ -I../mongo-c-driver/src/ -o build/app_mongodb.o src/app_mongodb.c
src/app_mongodb.c: In function ‘mongodb_callerid’:
src/app_mongodb.c:120:26: error: dereferencing pointer to incomplete type
src/app_mongodb.c:150:7: error: dereferencing pointer to incomplete type
src/app_mongodb.c:151:16: error: dereferencing pointer to incomplete type
src/app_mongodb.c:152:7: error: dereferencing pointer to incomplete type
make: *** [build/app_mongodb.o] Error 1
root@pbx:/usr/src/app_mongodb# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
root@pbx:/usr/src/app_mongodb# ll /opt/asterisk/include/
total 16
drwxr-xr-x 1 root root 86 Nov 25 22:40 ./
drwxr-xr-x 1 root root 1578 Nov 29 17:43 ../
drwxr-xr-x 1 root root 3948 Nov 29 17:43 asterisk/
-rw-r--r-- 1 root root 8048 Jul 8 16:42 asterisk.h
-rw-r--r-- 1 root root 6710 Nov 29 2008 jitterbuf.h
drwxr-xr-x 1 root root 22 Nov 25 22:40 solaris-compat/
root@pbx:/usr/src/app_mongodb# ll ../mongo-c-driver/src/
total 1864
drwxr-xr-x 1 root root 446 Dec 4 16:23 ./
drwxr-xr-x 1 root root 440 Dec 4 16:23 ../
-rw-r--r-- 1 root root 16039 Dec 4 16:22 bcon.c
-rw-r--r-- 1 root root 11975 Dec 4 16:22 bcon.h
-rw-r--r-- 1 root root 65016 Dec 4 16:23 bcon.o
-rw-r--r-- 1 root root 63912 Dec 4 16:23 bcon.os
-rw-r--r-- 1 root root 33351 Dec 4 16:22 bson.c
-rw-r--r-- 1 root root 33309 Dec 4 16:22 bson.h
-rw-r--r-- 1 root root 353864 Dec 4 16:23 bson.o
-rw-r--r-- 1 root root 177152 Dec 4 16:23 bson.os
-rw-r--r-- 1 root root 5738 Dec 4 16:22 encoding.c
-rw-r--r-- 1 root root 1930 Dec 4 16:22 encoding.h
-rw-r--r-- 1 root root 12976 Dec 4 16:23 encoding.o
-rw-r--r-- 1 root root 13128 Dec 4 16:23 encoding.os
-rw-r--r-- 1 root root 15072 Dec 4 16:22 env.c
-rw-r--r-- 1 root root 1428 Dec 4 16:22 env.h
-rw-r--r-- 1 root root 30488 Dec 4 16:23 env.o
-rw-r--r-- 1 root root 29032 Dec 4 16:23 env.os
-rw-r--r-- 1 root root 36595 Dec 4 16:22 gridfs.c
-rw-r--r-- 1 root root 14424 Dec 4 16:22 gridfs.h
-rw-r--r-- 1 root root 163864 Dec 4 16:23 gridfs.o
-rw-r--r-- 1 root root 130480 Dec 4 16:23 gridfs.os
-rw-r--r-- 1 root root 13091 Dec 4 16:22 md5.c
-rw-r--r-- 1 root root 3586 Dec 4 16:22 md5.h
-rw-r--r-- 1 root root 21928 Dec 4 16:23 md5.o
-rw-r--r-- 1 root root 21976 Dec 4 16:23 md5.os
-rw-r--r-- 1 root root 55523 Dec 4 16:22 mongo.c
-rw-r--r-- 1 root root 32359 Dec 4 16:22 mongo.h
-rw-r--r-- 1 root root 251448 Dec 4 16:23 mongo.o
-rw-r--r-- 1 root root 214672 Dec 4 16:23 mongo.os
-rw-r--r-- 1 root root 8021 Dec 4 16:22 numbers.c
-rw-r--r-- 1 root root 6280 Dec 4 16:23 numbers.o
-rw-r--r-- 1 root root 6280 Dec 4 16:23 numbers.os
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment