Upgrade problem on SunOS
David Relson
relson at osagesoftware.com
Sun May 29 17:14:08 CEST 2005
On Sun, 29 May 2005 08:02:40 -0700 (PDT)
Charles Hewson wrote:
...[snip]...
> Dave,
> I have doubts that sparc-sun-sunos4.1.4 supports shared envitonments
> but, the attempt gets me this far into gmake.
>
> Charles
>
> bogoconfig.c: In function `process_arglist':
> bogoconfig.c:424: warning: assignment discards `const' from pointer target
> type
> bogoconfig.c: At top level:
> bogoconfig.c:462: conflicting types for `process_arg'
> bogoconfig.h:28: previous declaration of `process_arg'
The two declarations (bogoconfig.h line 28 and bogoconfig.c line 462)
for process_arg look identical to me. gcc doesn't complain. Can you
send me preprocessor output for bogoconfig.c? You can send it direct
to me - I doubt that list subscribers want the output.
> bogoconfig.c: In function `process_arg':
> bogoconfig.c:483: warning: implicit declaration of function `strerror'
> bogoconfig.c:483: warning: format argument is not a pointer (arg 4)
Which system header file in sunos defines strerror? Add a "#include"
for it to bogoconfig.c
> bogoconfig.c:632: warning: implicit declaration of function `printf'
> bogoconfig.c: In function `query_config':
Try adding "#include <stdio.h>"
> bogoconfig.c:735: warning: int format, long int arg (arg 4)
> bogoconfig.c:745: warning: passing arg 1 of `display_tag_array' discards
> `const' from pointer target type
> bogoconfig.c:746: warning: passing arg 1 of `display_tag_array' discards
> `const' from pointer target type
> bogoconfig.c:756: warning: passing arg 2 of `display_wordlists' discards
> `const' from pointer target type
> bogoconfig.c:762: warning: int format, long int arg (arg 4)
> bogoconfig.c:763: warning: int format, long int arg (arg 4)
Try this patch:
--- bogoconfig.c~ 2005-05-05 21:09:57.000000000 -0400
+++ bogoconfig.c 2005-05-29 11:11:57.000000000 -0400
@@ -756,11 +756,11 @@
Q2 display_wordlists(word_lists, "%-18s ");
Q2 fprintf(stdout, "\n");
- Q2 fprintf(stdout, "%-18s = %d\n", "db-cachesize", db_cachesize);
+ Q2 fprintf(stdout, "%-18s = %ld\n", "db-cachesize", db_cachesize);
#ifdef HAVE_DECL_DB_CREATE
- Q2 fprintf(stdout, "%-18s = %d\n", "db-lk-max-locks", db_max_locks);
- Q2 fprintf(stdout, "%-18s = %d\n", "db-lk-max-objects", db_max_objects);
+ Q2 fprintf(stdout, "%-18s = %ld\n", "db-lk-max-locks", db_max_locks);
+ Q2 fprintf(stdout, "%-18s = %ld\n", "db-lk-max-objects", db_max_objects);
Q2 fprintf(stdout, "%-18s = %s\n", "db-log-autoremove", YN(db_log_autoremove));
#ifdef FUTURE_DB_OPTIONS
Q2 fprintf(stdout, "%-18s = %s\n", "db-log-txn-durable", YN(db_txn_durable));
Charles,
I'm off on a bike ride with my wife and daughter, hence will be offline for 4 or 5 hrs.
HTH,
David
More information about the Bogofilter
mailing list