Skip to content

libfq build error on Fedora 42 #8

@devrimgunduz

Description

@devrimgunduz

Hi @ibarwick ,

I'm seeing the following while building latest libfq on Fedora 42. Can you please take a look? Thanks! Devrim

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./include -I./include -I/usr/include/firebird -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/fqmultibyte.lo -MD -MP -MF src/.deps/fqmultibyte.Tpo -c src/fqmultibyte.c -o src/fqmultibyte.o >/dev/null 2>&1
In file included from src/fqexpbuffer.c:30:
./include/libfq.h:13:14: error: ‘bool’ cannot be defined via ‘typedef’
   13 | typedef char bool;
      |              ^~~~
./include/libfq.h:13:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
./include/libfq.h:13:1: warning: useless type name in empty declaration
   13 | typedef char bool;
      | ^~~~~~~
make[2]: *** [Makefile:540: src/fqexpbuffer.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from src/libfq.c:42:
./include/libfq.h:13:14: error: ‘bool’ cannot be defined via ‘typedef’
   13 | typedef char bool;
      |              ^~~~
./include/libfq.h:13:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
./include/libfq.h:13:1: warning: useless type name in empty declaration
   13 | typedef char bool;
      | ^~~~~~~
src/libfq.c: In function ‘_FQformatDatum’:
src/libfq.c:3632:57: warning: pointer targets in passing argument 1 of ‘_FQformatOctet’ differ in signedness [-Wpointer-sign]
 3632 |                                 p = _FQformatOctet(vary2->vary_string, vary2->vary_length);
      |                                                    ~~~~~^~~~~~~~~~~~~
      |                                                         |
      |                                                         ISC_UCHAR * {aka unsigned char *}
src/libfq.c:139:35: note: expected ‘char *’ but argument is of type ‘ISC_UCHAR *’ {aka ‘unsigned char *’}
  139 | static char *_FQformatOctet(char *data, int len);
      |                             ~~~~~~^~~~
make[2]: *** [Makefile:540: src/libfq.lo] Error 1
make[2]: Leaving directory '/var/lib/pgsql/rpmcommon/BUILD/libfq-0.6.1-build/libfq-0.6.1'
make[1]: *** [Makefile:585: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/pgsql/rpmcommon/BUILD/libfq-0.6.1-build/libfq-0.6.1'
error: Bad exit status from /var/tmp/rpm-tmp.9HK7xS (%build)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions