-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/25/11 12:23 PM, Alexander Hansen wrote: > From a package that I'm working on: > > sqlite3_wrap.cpp:6861:17: error: no matching function for call to > 'sqlite3_auto_extension' result = > (int)sqlite3_auto_extension(arg1); ^~~~~~~~~~~~~~~~~~~~~~ > > From sqlite3: > > /sw/include/sqlite3.h:4700:16: note: candidate function not > viable: cannot convert argument of incomplete type 'void *' to > 'void (*)()' SQLITE_API int sqlite3_auto_extension(void > (*xEntryPoint)(void)); > > I wasn't sure if this indicates non-compliance in sqlite3 (llvm > complains, too) or the package that I'm trying to build. The > latter does some other bad stuff when building its sqlite3 module, > so I'm totally willing to believe that _it's_ broken. :-)
I also get another error in the same module (the "other bad stuff"): sqlite3_wrap.cpp:3029:12: error: array type 'va_list' (aka '__builtin_va_list') is not assignable arg2 = *((va_list *)(argp2)); ~~~~ ^ where the function is: static octave_value_list _wrap_sqlite3_vmprintf (const octave_value_list& args, int nargout) { char *arg1 = (char *) 0 ; va_list arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; void *argp2 ; int res2 = 0 ; octave_value_list _out; octave_value_list *_outp=&_out; octave_value _outv; char *result = 0 ; if (!SWIG_check_num_args("sqlite3_vmprintf",args.length(),2,2,0)) { SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(args(0), &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sqlite3_vmprintf" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); { res2 = SWIG_ConvertPtr(args(1), &argp2, SWIGTYPE_p_va_list, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sqlite3_vmprintf" "', argument " "2"" of type '" "va_list""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sqlite3_vmprintf" "', argument " "2"" of type '" "va_list""'"); } else { arg2 = *((va_list *)(argp2)); } } result = (char *)sqlite3_vmprintf((char const *)arg1,arg2); _outv = SWIG_FromCharPtr((const char *)result); if (_outv.is_defined()) _outp = SWIG_Octave_AppendOutput(_outp, _outv); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; fail: return _out; } I'm not exactly sure what the author was _trying_ to do on the line that failed. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5/W4kACgkQB8UpO3rKjQ9x5ACfdI4RWMWYUjKy+CP5zYcohBwW PKwAnjPzvgCrl7/REUvcrCLFvGRocoym =VGQN -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel