From owner-freebsd-database Mon Jan 15 9:49:58 2001 Delivered-To: freebsd-database@freebsd.org Received: from spammie.svbug.com (unknown [198.79.110.2]) by hub.freebsd.org (Postfix) with ESMTP id 41F6037B400; Mon, 15 Jan 2001 09:49:36 -0800 (PST) Received: from spammie.svbug.com (localhost.mozie.org [127.0.0.1]) by spammie.svbug.com (8.9.3/8.9.3) with ESMTP id JAA00318; Mon, 15 Jan 2001 09:47:33 -0800 (PST) (envelope-from jessem@spammie.svbug.com) Message-Id: <200101151747.JAA00318@spammie.svbug.com> Date: Mon, 15 Jan 2001 09:47:32 -0800 (PST) From: opentrax@email.com Reply-To: opentrax@email.com Subject: Re: Postgresql compile error To: gianluca@parkinson.it Cc: database@freebsd.org, questions@freebsd.org In-Reply-To: <3A630389.E7A91E8B@parkinson.it> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-database@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gianluca, I've reposted your message in case someone else has an idea. On 15 Jan, Gianluca Sordiglioni wrote: > > > opentrax@email.com wrote: >> >> Has anyone responded to your request? >> If not, email back with the remaining message. > > I received no answer. > > It seems there's something wrong in malloc.h, but this is not true. > malloc.h is a system include file. It has no syntax error. > Perhaps there's a bug in gmake or some configuration tool, I guess. > Yes, malloc.h is a system include file, but makefile is looking for the one in '/usr/local/include'. That is not the system include. The system malloc.h is usually in '/usr/include'. I'm not sure if that is what ODBC needs. Perhaps someone who has used/compiled this package can say. Jessem. >> On 7 Jan, Gianluca Sordiglioni wrote: >> > Trying to compile postgresql7 on FreeBSD 4.2 with different options I >> > always get this error: >> > >> > gmake[2]: Entering directory >> > `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/perl5' >> > gmake[2]: Leaving directory >> > `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/perl5' >> > gmake -C odbc all >> > gmake[2]: Entering directory >> > `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/odbc' >> > cc -I../../include -I../../backend -I/usr/local/include >> > -I/usr/local/include/tcl8.3 -I/usr/local/include/tk8.3 -O -pipe >> > -march=pentiumpro -DUSE_SSL -I. -DHAVE_CONFIG_H -fpic -DPIC -c -o >> > tuplelist.o tuplelist.c >> > In file included from tuplelist.c:16: >> > /usr/local/include/malloc.h:81: syntax error before `*' >> > /usr/local/include/malloc.h:82: syntax error before `*' >> > /usr/local/include/malloc.h:87: syntax error before `*' >> > gmake[2]: *** [tuplelist.o] Error 1 >> > gmake[2]: Leaving directory >> > `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/odbc' >> > gmake[1]: *** [all] Error 2 >> > gmake[1]: Leaving directory >> > `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces' >> > gmake: *** [all] Error 2 >> > *** Error code 2 >> > >> > Stop in /usr/ports/databases/postgresql7. >> > >> > >> > Okay, so I edited tuplelist.c and commented out #include : >> > the result is it compiles, but won't start. >> > >> > I took a look to malloc.h, seems ok. >> > >> > Any idea? >> > >> > >> > To Unsubscribe: send mail to majordomo@FreeBSD.org >> > with "unsubscribe freebsd-database" in the body of the message >> > >> > >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-database" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message