Hello,

I am trying to compile gnustep-base 1.31.1 on Fedora 42 with clang-20.1.7, but 
it fails:

clang NSURLSessionTask.m -c \
      -MMD -MP -DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"x86_64\" 
-DGNUSTEP_TARGET_OS=\"linux-gnu\" -DGNUSTEP_IS_FLATTENED=\"yes\" 
-DLIBRARY_COMBO=\"gnu-gnu-gnu\" -DGNUSTEP_BASE_INTERNAL=1 -Wall 
-Wdeclaration-after-statement -Wcast-align -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 
-DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 
-fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS 
-pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -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 -fcommon -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 -fobjc-runtime=gcc 
-fconstant-string-class=NSConstantString -I../Headers -
 I./. -I. -I/home/nerijus/GNUstep/Library/Headers -I/usr/local/include 
-I/usr/include -I/usr/local/include -I/usr/include -I/usr/include 
-I/usr/include -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include/libxml2 
-DWITH_GZFILEOP -I/usr/include/p11-kit-1 \
       -o obj/libgnustep-base.obj/NSURLSessionTask.m.o
clang: warning: argument unused during compilation: 
'-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' 
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation: 
'-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument]
In file included from NSURLSession.m:30:
./NSURLSessionPrivate.h:62:3: error: cannot find interface declaration for 
'NSURLSession'
   62 |   NSURLSession(Private)
      |   ^
./NSURLSessionPrivate.h:72:22: error: expected a type
   72 | -(void)_resumeTask: (NSURLSessionTask *)task;
      |                      ^

Regards,
Nerijus

Reply via email to