Opened 5 weeks ago

Last modified 5 weeks ago

#61889 new defect

gnome-vfs: error: implicit declaration of function 'g_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Reported by: vrurg (Vadim Belman) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: xcode12 bigsur catalina Cc:
Port: gnome-vfs

Description

Build fails with "implicit declaration of function 'g_printf'" error.

Attachments (1)

main.log (884.3 KB) - added by vrurg (Vadim Belman) 5 weeks ago.

Download all attachments as: .zip

Change History (5)

Changed 5 weeks ago by vrurg (Vadim Belman)

Attachment: main.log added

comment:1 Changed 5 weeks ago by mf2k (Frank Schima)

Keywords: x86_64 removed

comment:2 Changed 5 weeks ago by mf2k (Frank Schima)

Summary: gnome-vfs build failsgnome-vfs: error: implicit declaration of function 'g_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Error is:

:info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libgnomevfs -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include  -DMODULES_PATH=\"/opt/local/lib/vfs/modules\"  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch x86_64 -MT test-mime-info-cache.o -MD -MP -MF .deps/test-mime-info-cache.Tpo -c -o test-mime-info-cache.o test-mime-info-cache.c
:info:build test-async-directory.c:236:2: error: implicit declaration of function 'g_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         g_printf("Initializing gnome-libs...");
:info:build         ^
:info:build test-async-directory.c:236:2: note: did you mean 'g_print'?
:info:build /opt/local/include/glib-2.0/glib/gmessages.h:465:17: note: 'g_print' declared here
:info:build void            g_print                 (const gchar    *format,
:info:build                 ^
:info:build 1 error generated.

comment:3 Changed 5 weeks ago by mf2k (Frank Schima)

Keywords: xcode12 added; bigsur removed

comment:4 Changed 5 weeks ago by ryandesign (Ryan Schmidt)

Keywords: bigsur catalina added

Problem does affect Catalina and Big Sur because they respectively support or require Xcode 12, so we should use the OS version specific keywords so users searching for OS version specific problems by keyword can find this problem.

Note: See TracTickets for help on using tickets.