mdirolf / nginx-gridfs

Nginx module for serving files from MongoDB's GridFS

Home Page:http://www.mongodb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx 1.4.2

peterwillcn opened this issue · comments

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g --std=c99 -Isrc -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail
-o objs/addon/src/mongo.o
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c
cc1: warnings being treated as errors
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c: In function ‘mongo_count’:
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:939: error: missing initializer
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:939: error: (near initialization for ‘out.dataSize’)
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c: In function ‘mongo_simple_int_command’:
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:981: error: missing initializer
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:981: error: (near initialization for ‘out.dataSize’)
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c: In function ‘mongo_simple_str_command’:
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1013: error: missing initializer
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1013: error: (near initialization for ‘out.dataSize’)
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c: In function ‘mongo_cmd_get_error_helper’:
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1055: error: missing initializer
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1055: error: (near initialization for ‘out.dataSize’)
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c: In function ‘mongo_cmd_ismaster’:
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1098: error: missing initializer
/opt/bak/nginx-gridfs//mongo-c-driver/src/mongo.c:1098: error: (near initialization for ‘out.dataSize’)
make[1]: *** [objs/addon/src/mongo.o] Error 1
make[1]: Leaving directory `/opt/bak/nginx-1.4.2'
make: *** [build] Error 2

--add-module=../nginx-gridfs --with-cc-opt=-Wno-missing-field-initializers is fix....close issue..