Date: Tue, 09 Jul 2002 22:42:29 +0200 From: Jan Lentfer <Jan.Lentfer@web.de> To: freebsd-questions@freebsd.org, freebsd-alpha <freebsd-alpha@FreeBSD.org> Subject: Can't build tree-puzzle because of radixsort Message-ID: <3D2B4AB5.7000605@web.de>
next in thread | raw e-mail | index | archive | help
Hi all,
I am trying to build a program called "tree-puzzle" (www.tree-puzzle.de,
the source is there) which I really need for my work. But I can't
compile it. I tried on x86 and on Alpha (both with gcc and ccc), but it
aways fails with reference to "radixsort". Can anyone help me? I need
this!!!
Many thanks in advance,
Jan Lentfer
---------------------------------------------------
This is from x86 FreeBSD4.6-Release/gcc:
bash-2.05#make
Making all in src
gcc -DPACKAGE=\"tree-puzzle\" -DVERSION=\"5.0\" -DHAVE_LIBM=1
-DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -I. -I. -g -O2 -c ml1.c && mv
ml1.o sml1.o
In file included from ml1.c:28:
ml.h:176: conflicting types for `radixsort'
/usr/include/stdlib.h:167: previous declaration of `radixsort'
*** Error code 1
Stop in /root/builds/tree-puzzle-5.0/src.
*** Error code 1
Stop in /root/builds/tree-puzzle-5.0.
bash-2.05#
----------
This is from Alpha FreeBSD-4.6RELEASE/ccc:
bash-2.05a# make
Making all in src
ccc -DPACKAGE=\"tree-puzzle\" -DVERSION=\"5.0\" -DHAVE_LIBM=1
-DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -I. -I. -O4 -fast -arch ev56
-tune ev56 -c ml1.c && mv ml1.o sml1.o
cc: Error: ml.h, line 176: In this declaration, the type of "radixsort"
is not compatible with the type of a previous declaration of "radixsort"
at line number 166 in file /usr/include/stdlib.h. (notcompat)
void radixsort(cmatrix, ivector, int, int, int *);
-----^
cc: Error: ml1.c, line 81: In this declaration, the type of "radixsort"
is not compatible with the type of a previous declaration of "radixsort"
at line number 166 in file /usr/include/stdlib.h. (notcompat)
void radixsort(cmatrix seqchar, ivector ali, int maxspc, int maxsite,
-----^
cc: Warning: ml1.c, line 199: In this statement, the referenced type of
the pointer value "Seqchar" is "pointer to char", which is not
compatible with "pointer to const unsigned char". (ptrmismatch)
radixsort(Seqchar, ali, Maxspc, Maxsite, &Numptrn);
------------------^
cc: Warning: ml1.c, line 199: In this statement, "ali" of type "pointer
to int", is being converted to "int". (cvtdiftypes)
radixsort(Seqchar, ali, Maxspc, Maxsite, &Numptrn);
---------------------------^
cc: Warning: ml1.c, line 199: In this statement, "ali" has a larger data
size than "int". Assignment can result in data loss. (maylosedata)
radixsort(Seqchar, ali, Maxspc, Maxsite, &Numptrn);
---------------------------^
cc: Warning: ml1.c, line 199: In this statement, "Maxspc" of type "int",
is being converted to "pointer to const unsigned char". (cvtdiftypes)
radixsort(Seqchar, ali, Maxspc, Maxsite, &Numptrn);
--------------------------------^
cc: Error: ml1.c, line 199: In this statement, "radixsort" expects 4
arguments, but 5 are supplied. (toomanyargs)
radixsort(Seqchar, ali, Maxspc, Maxsite, &Numptrn);
--------^
*** Error code 1
Stop in /usr/src/builds/tree-puzzle-5.0/src.
*** Error code 1
Stop in /usr/src/builds/tree-puzzle-5.0.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2B4AB5.7000605>
