Comment 2 for bug 1178165

Revision history for this message
Rutger Wessels (rutger-dds) wrote :

Trying to compile pggearman-0.2 against PostgreSQL 9.2.4:

~/src/pggearman-0.2# make
sed 's,MODULE_PATHNAME,$libdir/pggearman,g' pggearman.sql.in >pggearman.sql
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I. -I/usr/include/postgresql/9.2/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o pggearman.o pggearman.c
pggearman.c: In function ‘_PG_init’:
pggearman.c:99:36: warning: passing argument 8 of ‘DefineCustomStringVariable’ from incompatible pointer type [enabled by default]
/usr/include/postgresql/9.2/server/utils/guc.h:274:13: note: expected ‘GucStringCheckHook’ but argument is of type ‘void (*)(const char *, void *)’
pggearman.c:99:36: warning: passing argument 9 of ‘DefineCustomStringVariable’ from incompatible pointer type [enabled by default]
/usr/include/postgresql/9.2/server/utils/guc.h:274:13: note: expected ‘GucStringAssignHook’ but argument is of type ‘const char * (*)(void)’
pggearman.c:99:36: error: too few arguments to function ‘DefineCustomStringVariable’
/usr/include/postgresql/9.2/server/utils/guc.h:274:13: note: declared here
make: *** [pggearman.o] Error 1