From owner-freebsd-alpha  Tue Jul  9 13:44:23 2002
Delivered-To: freebsd-alpha@freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 93BAF37B400; Tue,  9 Jul 2002 13:44:15 -0700 (PDT)
Received: from smtp.web.de (smtp03.web.de [217.72.192.158])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 7D79543E09; Tue,  9 Jul 2002 13:44:14 -0700 (PDT)
	(envelope-from Jan.Lentfer@web.de)
Received: from [80.129.116.164] (helo=floundjan.homeip.net)
	by smtp.web.de with esmtp (WEB.DE(Exim) 4.70 #5)
	id 17S1qG-0001Qj-00; Tue, 09 Jul 2002 22:44:13 +0200
Received: from localhost (localhost.lan [127.0.0.1])
	by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP
	id 8A82E2E1; Tue,  9 Jul 2002 22:44:11 +0200 (CEST)
Received: from web.de (jan-winnb.lan [192.168.0.26])
	by floundjan.homeip.net (Postfix on FreeBSD 4.5) with ESMTP
	id D29E1127; Tue,  9 Jul 2002 22:44:07 +0200 (CEST)
Message-ID: <3D2B4AB5.7000605@web.de>
Date: Tue, 09 Jul 2002 22:42:29 +0200
From: Jan Lentfer <Jan.Lentfer@web.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0.0) Gecko/20020530
X-Accept-Language: de-de, en-us, en
MIME-Version: 1.0
To: freebsd-questions@freebsd.org,
	freebsd-alpha <freebsd-alpha@FreeBSD.org>
Subject: Can't build tree-puzzle because of radixsort
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-10
Sender: owner-freebsd-alpha@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-alpha.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-alpha>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-alpha>
X-Loop: FreeBSD.org

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