Skip to main content.
home | support | download

Back to List Archive

Re: Assembler errors

From: Andrew Lord <andrewlord(at)not-real.internode.on.net>
Date: Mon Jul 21 2003 - 15:34:32 GMT
Hi David,

Looks like some success has been had, although other problems now seem 
evident.  Removal of the 02 flag from the Makefile brings about the following 
printout from make:


# # # # # # # make 
 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o fs.o fs.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o http.o http.c 
http.c: In function `http_indexpath': 
http.c:749: warning: passing arg 1 of `cmdf' from incompatible pointer type 
http.c:750: warning: passing arg 1 of `cmdf' from incompatible pointer type 
http.c:751: warning: passing arg 1 of `cmdf' from incompatible pointer type 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o httpserver.o httpserver.c 
httpserver.c: In function `getserverinfo': 
httpserver.c:194: warning: passing arg 1 of `cmdf' from incompatible pointer 
type 
httpserver.c:195: warning: passing arg 1 of `cmdf' from incompatible pointer 
type 
httpserver.c:196: warning: passing arg 1 of `cmdf' from incompatible pointer 
type 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o extprog.o extprog.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o methods.o methods.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o html.o html.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o txt.o txt.c
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o xml.o xml.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o expat/xmltok/xmltok.o expat/xmltok/xmltok.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o expat/xmltok/xmlrole.o expat/xmltok/xmlrole.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o expat/xmlparse/xmlparse.o 
expat/xmlparse/xmlparse.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o entities.o entities.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o index.o index.c 
index.c: In function `initModule_Index': 
index.c:193: warning: assignment from incompatible pointer type 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o merge.o merge.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o stemmer.o stemmer.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o soundex.o soundex.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o filter.o filter.c
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o parse_conffile.o parse_conffile.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o swregex.o swregex.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o double_metaphone.o double_metaphone.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o swish2.o swish2.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o search.o search.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o swish_words.o swish_words.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o proplimit.o proplimit.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o search_alt.o search_alt.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o result_output.o result_output.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o rank.o rank.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o hash.o hash.c
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o compress.o compress.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o db.o db.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o db_native.o db_native.c 
db_native.c: In function `newNativeDBHandle': 
db_native.c:259: warning: assignment from incompatible pointer type 
db_native.c: In function `DB_Create_Native': 
db_native.c:312: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:313: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:330: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:418: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:423: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c: In function `DB_Close_Native': 
db_native.c:714: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:719: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c: In function `DB_WriteSortedIndex_Native': 
db_native.c:1663: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:1680: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c: In function `DB_EndWriteSortedIndex_Native': 
db_native.c:1692: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c: In function `DB_WritePropPositions_Native': 
db_native.c:1990: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
db_native.c:1991: warning: passing arg 3 of `printlong' from incompatible 
pointer type 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o ramdisk.o ramdisk.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o btree.o btree.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o array.o array.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o check.o check.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o file.o file.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o error.o error.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o list.o list.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o mem.o mem.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o string.o string.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o docprop.o docprop.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o metanames.o metanames.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o result_sort.o result_sort.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o dump.o dump.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o swish_qsort.o swish_qsort.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o date_time.o date_time.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o no_better_place_module.o no_better_place_module.c 
ar cr libswish-e.a fs.o http.o httpserver.o extprog.o methods.o html.o txt.o 
xml.o expat/xmltok/xmltok.o expat/xmltok/xmlrole.o expat/xmlparse/xmlparse.o 
entities.o  index.o merge.o stemmer.o soundex.o filter.o parse_conffile.o 
swregex.o double_metaphone.o swish2.o search.o swish_words.o proplimit.o 
search_alt.o result_output.o rank.o hash.o compress.o db.o db_native.o 
ramdisk.o btree.o array.o check.o file.o error.o list.o mem.o string.o 
docprop.o metanames.o result_sort.o dump.o swish_qsort.o  date_time.o 
no_better_place_module.o  
ranlib libswish-e.a 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o swish.o swish.c 
gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g -c -o keychar_out.o keychar_out.c 
gcc -o swish-e -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok 
-Iexpat/xmlparse   -g  swish.o keychar_out.o                      
libswish-e.a -lm -lm   -lz 
chmod 755 swish-e


Also, I found the other program details you asked me about.  They are:

# # # # # # # # which gcc  
/usr/bin/gcc 
# # # # # # # # which ld 
/usr/bin/ld 
# # # # # # # # gcc -v 
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs 
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-108.7.2) 
# # # # # # # # ld -v 
GNU ld version 2.10.91 (with BFD 2.10.91.0.2) 
# # # # # # # # uname -a 
Linux ensim.xxxx.us 2.4.9-34 #1 Sat Jun 1 06:25:16 EDT 2002 i686 unknown 

Do you have any further suggestions for how the 'incompatible pointer type' 
errors can be overcome ?

Cheers,

Andrew


On Fri, 18 Jul 2003 11:14 am, you wrote:
> Hi David,
>
> Thanks very much for your response.
>
> On Thu, 17 Jul 2003 02:21 pm, you wrote:
> > On Thu, 2003-07-17 at 08:53, Andrew Lord wrote:
> > > making swish-e
> > > (cd src; make)
> > > make[1]: Entering directory `/home/httpd/html/swish223/src'
> > > gcc -Wall -DHAVE_CONFIG_H -DSWISH_VERSION=\"2.2.3\" -Iexpat/xmltok
> > > -Iexpat/xmlparse   -g -O2 -c -o fs.o fs.c
> >
> > Perhaps removing -O2 optimization would help.  Do a 'make clean' then
> > remove the -O2 flag from the CFLAGS variable in src/Makefile. Then run
> > make in the src directory and see what happens.
>
> OK.  I'll try this (or rather I'll get my host to try this) and let you
> know how it went.
>
> > > I guess that swish draws on some capacity of gcc/as
> > > that the packages already compiled on that server do not draw upon,
> > > otherwise the server probably wouldn't wouldn't work at all.
> >
> > Maybe you're not using the system compiler?  Sounds like binutils and
> > gcc are not compatible with each other.
> >
> > What's the output of these commands?:
> >   which gcc
> >   which ld
> >   gcc -v
> >   ld -v
> >   uname -a
>
> Mmm.  I'm trying to get the package working on a remote virtual site that
> provides the user with access to neither ./configure nor make . .:-(  .
> I've therefore got to put together scripts for the host to run and get my
> results that way, so unfortunately I have no way to provide this
> information at the moment.  I'll put it in the script for my host to run
> and get a printout.
>
> Cheers,
>
> Andrew
>
> > Maybe someone has a similar system and could reproduce it.
Received on Mon Jul 21 15:35:14 2003