Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

namespace pollution? clone()



Hi!

When compiling inkscape I found a weird compilation error that I
traced down to clone() being in the visible namespace.

https://gitlab.com/inkscape/inbox/-/issues/7378

I wonder why it's visible though, since in sched.h it's protected by
_NETBSD_SOURCE.

The command line is

cd /scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src && c++ -DHAVE_CONFIG_H -DHAVE_X11 -DWITH_CSSBLEND -DWITH_MESH -DWITH_SVG2 -D_REENTRANT -Dinkscape_base_EXPORTS -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410 -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/include -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src/3rdparty/adaptagrams -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src/3rdparty/2geom/include -I/scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src/3rdparty/2geom/include/2geom -isystem /usr/pkg/include/harfbuzz -isystem /usr/pkg/include/freetype2 -isystem /usr/pkg/include -isystem /usr/pkg/include/glib-2.0 -isystem /usr/pkg/lib/glib-2.0/include -isystem /usr/pkg/include/pango-1.0 -isystem /usr/pkg/include/fribidi -isystem /usr/pkg/include/cairo -isystem /usr/pkg/include/pixman-1 -isystem /usr/pkg/include/libpng16 -isystem /usr/pkg/include/libsoup-2.4 -isystem /usr/pkg/include/libxml2 -isystem /usr/pkg/include/poppler -isystem /usr/pkg/include/libwpg-0.3 -isystem /usr/pkg/include/librevenge-0.0 -isystem /usr/pkg/include/libwpd-0.10 -isystem /usr/pkg/include/libvisio-0.1 -isystem /usr/pkg/include/libcdr-0.1 -isystem /usr/pkg/include/gtkmm-3.0 -isystem /usr/pkg/lib/gtkmm-3.0/include -isystem /usr/pkg/include/giomm-2.4 -isystem /usr/pkg/lib/giomm-2.4/include -isystem /usr/pkg/include/glibmm-2.4 -isystem /usr/pkg/lib/glibmm-2.4/include -isystem /usr/pkg/include/sigc++-2.0 -isystem /usr/pkg/lib/sigc++-2.0/include -isystem /usr/pkg/include/gtk-3.0 -isystem /usr/pkg/include/gdk-pixbuf-2.0 -isystem /usr/pkg/include/gio-unix-2.0 -isystem /usr/pkg/include/libdrm -isystem /usr/pkg/include/atk-1.0 -isystem /usr/pkg/include/at-spi2-atk/2.0 -isystem /usr/pkg/include/dbus-1.0 -isystem /usr/pkg/lib/dbus-1.0/include -isystem /usr/pkg/include/at-spi-2.0 -isystem /usr/pkg/include/cairomm-1.0 -isystem /usr/pkg/lib/cairomm-1.0/include -isystem /usr/pkg/include/pangomm-1.4 -isystem /usr/pkg/lib/pangomm-1.4/include -isystem /usr/pkg/include/atkmm-1.6 -isystem /usr/pkg/lib/atkmm-1.6/include -isystem /usr/pkg/include/gtk-3.0/unix-print -isystem /usr/pkg/include/gdkmm-3.0 -isystem /usr/pkg/lib/gdkmm-3.0/include -O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-check -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/python3.10 -I/usr/pkg/include/nspr -I/usr/pkg/include/libdrm -DG_DISABLE_ASSERT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DGLIBMM_DISABLE_DEPRECATED -DGTKMM_DISABLE_DEPRECATED -DGDKMM_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -fstack-protector-strong -Werror=format -Werror=format-security -Werror=ignored-qualifiers -Werror=return-type -Wno-switch -Wstrict-null-sentinel -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -pthread -D_REENTRANT -D_REENTRANT -DNDEBUG -fPIC   -pthread -fPIC -std=gnu++17 -MD -MT src/CMakeFiles/inkscape_base.dir/actions/actions-edit.cpp.o -MF CMakeFiles/inkscape_base.dir/actions/actions-edit.cpp.o.d -E /scratch/graphics/inkscape/work/inkscape-1.2.1_2022-07-14_9c6d41e410/src/actions/actions-edit.cpp

Cheers,
 Thomas


Home | Main Index | Thread Index | Old Index