Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing on Fedora 40 with GCC 14 #174

Open
kmoradha opened this issue May 14, 2024 · 1 comment
Open

Build failing on Fedora 40 with GCC 14 #174

kmoradha opened this issue May 14, 2024 · 1 comment

Comments

@kmoradha
Copy link

kmoradha commented May 14, 2024

Compile of DBD::Oracle 1.90 failing with GCC 14 on Fedora 40, at this point:

gcc -c  -I/usr/include/oracle/19.23/client64 -I/usr/lib64/perl5/vendor_perl/auto/DBI -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"1.90\" -DXS_VERSION=\"1.90\" -fPIC "-I/usr/lib64/perl5/CORE"  -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"19.23.0.0\" -DORA_OCI_102 -DORA_OCI_112 dbdcnx.c
dbdcnx.c: In function ‘find_env’:
dbdcnx.c:90:25: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
   90 |     if(llist_empty(el)) return;\
      |                         ^~~~~~
dbdcnx.c:294:21: note: in expansion of macro ‘llist_drop’
  294 |                     llist_drop(base);
      |                     ^~~~~~~~~~
dbdcnx.c:271:1: note: declared here
  271 | find_env(ub4 mode, ub2 cset, ub2 ncset)
      | ^~~~~~~~
make: *** [Makefile:386: dbdcnx.o] Error 1
error: Bad exit status from /var/opt/rpm/build/tmp/rpm-tmp.Tk9cPu (%build)

I tried adding -Wreturn-mismatch to CCFLAGS (based on the error message), but had the same result.

@lzsiga
Copy link

lzsiga commented Jun 25, 2024

See this PR: #177

lzsiga referenced this issue Jun 28, 2024
Some old systems can not use inline function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants