I recetly started getting this build error, which I have absoluteley no clue what to do about:
[…]
In file included from /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:16: /Users/ponost/src/pike-git/devel/src/module_support.h:47:1: warning: target does not support 'protected' visibility; using 'default' [-Wunsupported-visibility] PMOD_EXPORT void get_all_args(const char *fname, INT32 args, ^ /Users/ponost/src/pike-git/devel/src/global.h:624:42: note: expanded from macro 'PMOD_EXPORT' # define PMOD_EXPORT __attribute__ ((visibility("protected"))) ^ In file included from /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:16: /Users/ponost/src/pike-git/devel/src/module_support.h:49:1: warning: target does not support 'protected' visibility; using 'default' [-Wunsupported-visibility] PMOD_EXPORT void pike_module_export_symbol(const char *str, ^
[…]
/Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:426:19: error: use of undeclared identifier 'f_Nettle_Cipher_name_fun_num' apply_external(1, f_Nettle_Cipher_name_fun_num, args); ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:452:19: error: use of undeclared identifier 'f_Nettle_Cipher_block_size_fun_num' apply_external(1, f_Nettle_Cipher_block_size_fun_num, args); ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:466:37: error: use of undeclared identifier 'Nettle_Cipher_program'; did you mean 'nettle_hash_program'? struct Nettle_Cipher_struct *info = GET_INFO(); ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:288:70: note: expanded from macro 'GET_INFO' #define GET_INFO() ((struct Nettle_Cipher_struct *)parent_storage(1, Nettle_Cipher_program)) ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/nettle.h:24:24: note: 'nettle_hash_program' declared here extern struct program *nettle_hash_program; ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:469:26: error: incomplete definition of type 'struct Nettle_Cipher_struct' memset(THIS->ctx, 0, info->meta->context_size); ~~~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/secure/_string.h:77:38: note: expanded from macro 'memset' __builtin___memset_chk (dest, val, len, __darwin_obsz0 (dest)) ^~~ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:466:8: note: forward declaration of 'struct Nettle_Cipher_struct' struct Nettle_Cipher_struct *info = GET_INFO(); ^ /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.cmod:544:19: error: use of undeclared identifier 'f_Nettle_Cipher_name_fun_num' apply_external(1, f_Nettle_Cipher_name_fun_num, args); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 518 warnings and 20 errors generated. Compilation command was: /Users/ponost/src/pike-git/devel/build/darwin-15.4.0-x86_64/smartlink gcc -I. -I/Users/ponost/src/pike-git/devel/src/post_modules/Nettle -I/Users/ponost/src/pike-git/devel/build/darwin-15.4.0-x86_64 -I/Users/ponost/src/pike-git/devel/src -Dpike_module_init=pike_module_Nettle_init -Dpike_module_exit=pike_module_Nettle_exit -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -DHAVE_CONFIG_H -g -std=c99 -ggdb -m64 -mtune=750 -mrdrnd -fvisibility=hidden -O3 -pipe -W -Wall -Wno-unused -Wcomment -Wformat -Wformat-security -Wimplicit-function-declaration -Wmultichar -Wunused-function -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long -c /Users/ponost/src/pike-git/devel/src/post_modules/Nettle/cipher.c -o cipher.o make[5]: *** [cipher.o] Error 1 make[4]: *** [all] Error 2 make[3]: *** [Nettle] Error 1 make[2]: *** [post-modules-stamp] Error 1 make[1]: *** [_make_in_builddir] Error 2 make: *** [compile] Error 2
I guess this is Grubba’s area? ;)
Regards ----------------------------- Pontus Östlund Developer • Roxen AB +46 70-662 81 69
www.roxen.com http://www.roxen.com/ | twitter.com/roxen https://twitter.com/roxen