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 1keaXC-0000sh-EX for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 09:10:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1keaXB-0007vN-Du for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 09:10:49 +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 1keaXA-0007v0-Vq for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 09:10:49 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1keaX8-0000Ke-EL for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 09:10:47 +0000 Received: by mail-ej1-x633.google.com with SMTP id me8so23331500ejb.10 for ; Mon, 16 Nov 2020 01:10:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=XN06E80W2IIGPnaJOaXEEQca1WbvOX0a83Rv2sDM0Sk=; b=h6NtHjGAyCPT6nXczojdfT/QTVRbSeUyEGi8KxsF5CJt42bezPODtwMFrokJFG7aXv JPGy6fnOJuq2LwoyHN43VG9gJ8Hf2Amap/LF2LztOWHs+8Sai47em3cfbcMUVKmsBjDZ NIYoVqTdXyVJg7w+Am+xrgd6QdlG4EqKiUSP2/1xlhDJvxqZC8yPKNyURpbh483tadf2 jWP37tP81nq+bZWvLkkeuH7grtvYDhLJRV6XfxXeT+x1CGLnrVowxLn2bY5iYSIZi8Ud 7iCwXFzvE6WRT9fG9EAzF23RrrljmVDSGeMGR1RnllAxIJ7cEu3tV18hy9wpcOT6bJOa NtrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=XN06E80W2IIGPnaJOaXEEQca1WbvOX0a83Rv2sDM0Sk=; b=SFH6kezsYcq9JWxbM/mGNw1WjllMnrFcssaB4MrIZIW4aR5Mmpuv2+kQDD7DPzvC8e qbQlg6ggObOZjzDKJaKOYMG94MINkszqz0FjDPPsFwKyMHeqz7VwDBjiXnY9/oTb/HqR 4ZEo8yb5ugxR9L3gl9oszIiF2RNfPABQ5K/NzJuZ6Z4EJkmqKZcyT8+PmfEgl5xiZMzc KZhQbCjaby00XFOtacVqRwEQOfdK7ExrqNYSBGJUjnxOPO8j/WIp3FDveJ8qwQi3YXDk VeY6B4qTXnF73pCpZ68HHDnTBn+FVzqGhNfJ5SK87w3DMKbSK4QFOy1AGTeo4QbWCXaK Bhew== X-Gm-Message-State: AOAM5301H6/AsRrm4cuLNJROL0xJvcK8B2gfCcwP+dLL/OTbcsx/rs3c D0U8Ui47D8oKM/9xGxDz0SYA/OYyjTaopQ== X-Google-Smtp-Source: ABdhPJyQqeUd1oN+tFC6iDxE99pD4v9+XrT3IIkjzsPoM7JL9YIgfokzOjhx6amdxkRwOc0yi2tTQQ== X-Received: by 2002:a17:906:2a4b:: with SMTP id k11mr14287916eje.467.1605517844557; Mon, 16 Nov 2020 01:10:44 -0800 (PST) Received: from localhost.localdomain (217-149-169-223.nat.highway.telekom.at. [217.149.169.223]) by smtp.gmail.com with ESMTPSA id n11sm10461568eds.3.2020.11.16.01.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 01:10:44 -0800 (PST) Message-ID: <72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at> Subject: Re: Unable to compile postgres 13.1 on Slackware current x64 From: Laurenz Albe To: Condor , pgsql-general@lists.postgresql.org Date: Mon, 16 Nov 2020 10:10:43 +0100 In-Reply-To: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com> References: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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: > > Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/9.3.0/specs > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/lto-wrapper > Target: x86_64-slackware-linux > Configured with: ../configure --prefix=/usr --libdir=/usr/lib64 > --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap > --enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++ > --enable-threads=posix --enable-checking=release --enable-objc-gc > --with-system-zlib --enable-libstdcxx-dual-abi > --with-default-libstdcxx-abi=new --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=amd64 --disable-gtktest > --enable-clocale=gnu --disable-multilib --target=x86_64-slackware-linux > --build=x86_64-slackware-linux --host=x86_64-slackware-linux > Thread model: posix > gcc version 9.3.0 (GCC) > > > ICU version - 68.1, LLVM version - 11.0.0 > > > Here is configure params: > ./configure \ > --prefix=/usr/lib$LIBDIRSUFFIX/postgresql/$VER \ > --libdir=/usr/lib$LIBDIRSUFFIX/postgresql/$VER/lib \ > --includedir=/usr/include \ > --sysconfdir=/etc/postgresql \ > --localstatedir=/var/lib/postgresql \ > --with-tcl \ > --with-tclconfig=/usr/lib$LIBDIRSUFFIX \ > --with-perl \ > --with-python \ > --with-openssl \ > --with-libxml \ > --with-libxslt \ > --with-icu \ > --with-llvm \ > --enable-thread-safety \ > --with-system-tzdata=/usr/share/zoneinfo \ > $ARCH-slackware-linux > > The error is: > > 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=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security > -fno-strict-aliasing -fwrapv -fexcess-precision=standard > -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 ‘get_icu_language_tag’: > collationcmds.c:467:51: error: ‘TRUE’ undeclared (first use in this > function); did you mean ‘IS_TRUE’? > 467 | uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE, &status); > | ^~~~ > | IS_TRUE > > collationcmds.c:467:51: note: each undeclared identifier is reported > only once for each function it appears in > make: *** [: collationcmds.o] Error 1 > > Changing TRUE to IS_TRUE solve the problem and code is compiled but no > idea is this a real fix. "UBool" and "TRUE" are defined in "umachine.h", which is a header file for the "libicu" library. PostgreSQL includes "unicode/ucol.h", which will include "umachine.h" (via "utypes.h"), so that should be fine. Are your libicu headers installed under /usr/include/unicode? Do you get any messages about missing include files earlier? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com