Skip to main content.
home | support | download

Back to List Archive

swish-e-2.1.8 build warnings & errors: IRIX, HP-UX, LinuxPPC, BSDI

From: Bas Meijer <bas(at)not-real.antraciet.nl>
Date: Tue Nov 14 2000 - 10:38:18 GMT
Hi,


had had some time to build the new release on different platforms.
Thought this would help...


regards,


Bas Meijer


***** IRIX 6.2 gcc:

file.c: In function `getdefaults':
file.c:366: warning: implicit declaration of function `snprintf'
merge.c: In function `readmerge':
merge.c:72: warning: implicit declaration of function `snprintf'
docprop.c: In function `initSortResultProperties':
docprop.c:307: warning: implicit declaration of function `snprintf'
compress.c: In function `SwapLocData':
compress.c:157: warning: implicit declaration of function `snprintf'
fs.c: In function `fs_already_indexed':
fs.c:60: warning: implicit declaration of function `snprintf'
http.c: In function `cmdf':
http.c:272: warning: implicit declaration of function `vsnprintf'
http.c: In function `http_parseconfline':
http.c:591: warning: implicit declaration of function `snprintf'
httpserver.c: In function `getserverinfo':
httpserver.c:100: warning: implicit declaration of function `snprintf'
         ranlib libswish-e.a
ranlib: Not found
*** Error code 1 (bu21)
*** Error code 1 (bu21)

other IRIX box (6.4 gcc)
same warnings and:
ranlib libswish-e.a
make[1]: ranlib: Command not found
make[1]: *** [libswish-e.a] Error 127

sgi-faq:
Subject:   -61- Where's 'ranlib'?
Date: 16 Sep 1993 00:00:01 EST

   IRIX doesn't need it. Read the description of the 's' option in the
   ar(1) manpage. When the Makefile for a program you're porting wants
   ranlib, delete the ranlib command, substitute 'true' or put a little
   shell script in your PATH to fake it.

man ar s:      Write an object-file index into the archive, or  update
                an existing one, even if no other change is made to the
                archive.  You may use this modifier  flag  either  with
                any  operation, or alone.  Running `ar s' on an archive
                is equivalent to running `ranlib' on it.


***** IRIX 6.2 cc
         cc -g -c index.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c search.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
cfe: Warning 642: search.c, line 1411: prototype declaration and 
non-prototype d
efinition found for getfilewords, the type of this parameter is not 
compatible w
ith the type after applying default argument promotion
  char c;
  -----^
         cc -g -c error.c
         cc -g -c methods.c
         cc -g -c hash.c
         cc -g -c list.c
         cc -g -c mem.c
         cc -g -c string.c
         cc -g -c merge.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c swish2.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c stemmer.c
         cc -g -c soundex.c
         cc -g -c docprop.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c compress.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c deflate.c
         cc -g -c xml.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c txt.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -g -c fs.c
         cc -g -c http.c
         cc -g -c httpserver.c
         ar cr libswish-e.a check.o file.o index.o search.o error.o 
methods.o has
h.o list.o mem.o string.o merge.o swish2.o stemmer.o  soundex.o 
docprop.o compre
ss.o deflate.o xml.o txt.o  fs.o http.o httpserver.o
         ranlib libswish-e.a
         cc -g -c swish.c
cfe: Warning 596: ./docprop.h: 42: text following #endif violates the 
ANSI C sta
ndard.
         cc -o swish-e -g swish.o libswish-e.a -lm
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(merge.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(merg
e.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(mer
ge.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(merge.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(index.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(inde
x.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(ind
ex.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(index.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(search.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(sear
ch.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(sea
rch.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(search.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(swish2.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(swis
h2.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(swi
sh2.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(swish2.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(compress.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(comp
ress.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(com
press.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(compress.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(docprop.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(docp
rop.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(doc
prop.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(docprop.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(txt.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(txt.
o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(txt
.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(txt.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(indexfilehashlist) in swish.o and 
libswish-e.a
(xml.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(mapentrylist) in swish.o and 
libswish-e.a(xml.
o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylist) in swish.o and 
libswish-e.a(xml
.o) (2nd definition ignored).
ld: WARNING 15: multiply defined:(markentrylistMerge) in swish.o and 
libswish-e.
a(xml.o) (2nd definition ignored).
ld: ERROR 33: Unresolved text symbol "snprintf" -- 1st referenced by swish.o.
ld: ERROR 33: Unresolved text symbol "vsnprintf" -- 1st referenced by 
libswish-e
.a(http.o).
ld: INFO 60: Output file removed because of error.
*** Error code 1 (bu21)
*** Error code 1 (bu21)



***** LinuxPPC 2000:
gcc -Wall -O2 -c testlib.c
testlib.c: In function `main':
testlib.c:13: warning: assignment from incompatible pointer type
testlib.c:24: warning: passing arg 1 of `SwishSearch' from incompatible pointer
type
testlib.c:32: warning: implicit declaration of function 
`getnumPropertiesToDispl
ay'
testlib.c:33: warning: passing arg 1 of `SwishNext' from incompatible 
pointer ty
pe
testlib.c:33: warning: suggest parentheses around assignment used as 
truth value
testlib.c:44: warning: passing arg 1 of `SwishClose' from 
incompatible pointer t
ype
gcc -o testlib -Wall -O2 testlib.o libswish-e.a -lm
chmod 755 testlib



***** HP-UX gcc:
same implicit declaration warnings and testlib.c problems as above




***** BSDI BSD/OS 4.0
testlib.c problem
Received on Tue Nov 14 10:39:48 2000