Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kefF9-0002l4-9T for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 14:12:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kefF8-0005F3-8c for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 14:12:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kefF7-0005Ew-To for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 14:12:30 +0000 Received: from stz-bg.com ([2a02:6800:0:99::2] helo=mail.stzbg.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kefF0-0002od-DB for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 14:12:28 +0000 Received: from www.stz-bg.com (stz-bg.com [IPv6:2a02:6800:0:99::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: condor@stz-bg.com) by mail.stzbg.com (Postfix) with ESMTPSA id DA2A92E12FE; Mon, 16 Nov 2020 16:12:18 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stz-bg.com; s=mail; t=1605535939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UXYuA4mpKR00TtFX2NHH/Vw2iUiKsjvqV5zn87tznuo=; b=WFl8he9soi7uBmqRQTFGB41SXS+wjc+3BPyYExSRt6DwhbXOo2kKk9FbGG+m7u+D4ShEwn YFvSjdqMTV1YbGLB+GbE8nn89muBDd0GLsDdHGMPqbvxXZm1RQnOPnm+XKj5sJ35AxjlZv 6isXXtTTa/J9mCnhGPUBL/P1cFFLC8I= MIME-Version: 1.0 Date: Mon, 16 Nov 2020 16:12:18 +0200 From: Condor To: Laurenz Albe Cc: pgsql-general@lists.postgresql.org Subject: Re: Unable to compile postgres 13.1 on Slackware current x64 In-Reply-To: <72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at> References: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com> <72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <76027d8bf4a2d002244faa208ecc3654@stz-bg.com> X-Sender: condor@stz-bg.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 16-11-2020 11:10, Laurenz Albe wrote: > On Mon, 2020-11-16 at 09:15 +0200, Condor wrote: >> unable to compile Postgresql 13.0 and 13.1 on Slackware current x64. >> Here is gcc -v: >>=20 >> Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/9.3.0/specs >> COLLECT_GCC=3Dgcc >> COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/lto-= wrapper >> Target: x86_64-slackware-linux >> Configured with: ../configure --prefix=3D/usr --libdir=3D/usr/lib64 >> --mandir=3D/usr/man --infodir=3D/usr/info --enable-shared=20 >> --enable-bootstrap >> --enable-languages=3Dada,brig,c,c++,d,fortran,go,lto,objc,obj-c++ >> --enable-threads=3Dposix --enable-checking=3Drelease --enable-objc-gc >> --with-system-zlib --enable-libstdcxx-dual-abi >> --with-default-libstdcxx-abi=3Dnew --disable-libstdcxx-pch >> --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp >> --enable-gnu-unique-object --enable-plugin --enable-lto >> --disable-install-libiberty --disable-werror --with-gnu-ld --with-isl >> --verbose --with-arch-directory=3Damd64 --disable-gtktest >> --enable-clocale=3Dgnu --disable-multilib=20 >> --target=3Dx86_64-slackware-linux >> --build=3Dx86_64-slackware-linux --host=3Dx86_64-slackware-linux >> Thread model: posix >> gcc version 9.3.0 (GCC) >>=20 >>=20 >> ICU version - 68.1, LLVM version - 11.0.0 >>=20 >>=20 >> Here is configure params: >> ./configure \ >> --prefix=3D/usr/lib$LIBDIRSUFFIX/postgresql/$VER \ >> --libdir=3D/usr/lib$LIBDIRSUFFIX/postgresql/$VER/lib \ >> --includedir=3D/usr/include \ >> --sysconfdir=3D/etc/postgresql \ >> --localstatedir=3D/var/lib/postgresql \ >> --with-tcl \ >> --with-tclconfig=3D/usr/lib$LIBDIRSUFFIX \ >> --with-perl \ >> --with-python \ >> --with-openssl \ >> --with-libxml \ >> --with-libxslt \ >> --with-icu \ >> --with-llvm \ >> --enable-thread-safety \ >> --with-system-tzdata=3D/usr/share/zoneinfo \ >> $ARCH-slackware-linux >>=20 >> The error is: >>=20 >> make[2]: Leaving directory '/tmp/postgresql-13.1/src/backend/utils' >> make[1]: Leaving directory '/tmp/postgresql-13.1/src/backend' >> x86_64-slackware-linux-gcc -Wall -Wmissing-prototypes -Wpointer-arith >> -Wdeclaration-after-statement -Werror=3Dvla -Wendif-labels >> -Wmissing-format-attribute -Wimplicit-fallthrough=3D3 -Wformat-security >> -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard >> -Wno-format-truncation -Wno-stringop-truncation -O2 >> -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o >> collationcmds.o collationcmds.c >> collationcmds.c: In function =E2=80=98get_icu_language_tag=E2=80=99: >> collationcmds.c:467:51: error: =E2=80=98TRUE=E2=80=99 undeclared (first = use in this >> function); did you mean =E2=80=98IS_TRUE=E2=80=99? >> 467 | uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE,=20 >> &status); >> | ^~~~ >> | IS_TRUE >>=20 >> collationcmds.c:467:51: note: each undeclared identifier is reported >> only once for each function it appears in >> make: *** [: collationcmds.o] Error 1 >>=20 >> Changing TRUE to IS_TRUE solve the problem and code is compiled but no >> idea is this a real fix. >=20 > "UBool" and "TRUE" are defined in "umachine.h", which is a header file=20 > for the > "libicu" library. >=20 > PostgreSQL includes "unicode/ucol.h", which will include "umachine.h" > (via "utypes.h"), so that should be fine. >=20 > Are your libicu headers installed under /usr/include/unicode? > Do you get any messages about missing include files earlier? >=20 > Yours, > Laurenz Albe Hello, yes. My header files are installed in /usr/include/unicode and for the=20 moment I don't get any messages about missing files. Best Regards, HS