On 2023-03-08 08:39, STARYNKEVITCH Basile wrote:
> Hello all,
>
>
> On my Debian/x86-64 desktop (Debian 12, kernel is Linux-6.1.10, Xorg
> is X Server 1.21.1.7, C++ compiler is g++ 12.2.0 from Debian, C
> compiler is gcc 12..2.0), config.status is attached, the build fails
> in reproducible way with:
>
>
>
> /bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -Wextra
> -Woverloaded-virtual -Wshadow -Wstrict-overflow -Wstrict-aliasing
> -Wdouble-promotion -Wno-implicit-fallthrough -g -DDEBUG -O2 -DNDEBUG
> -ffast-math -fstrict-overflow -fstrict-aliasing -finline-functions
> -fomit-frame-pointer -fcf-protection=none -fno-stack-protector
> -march=native -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
> -DHAVE_ZLIB_H=1 -DHAVE_XSHM_H=1 -DHAVE_XSHAPE_H=1 -DHAVE_XCURSOR_H=1
> -DHAVE_XRENDER_H=1 -DHAVE_XRANDR_H=1 -DHAVE_XFIXES_H=1
> -DHAVE_XINPUT2_H=1 -DNO_XIM -DHAVE_XFT_H=1 -DHAVE_XFT_H=1
> -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -DHAVE_GLX_H=1 -s -o charttest
> charttest.o icons.o libCHART-1.7.la ../lib/libFOX-1.7.la -lm -ldl
> -lpthread -lrt -ljpeg -lpng -ltiff -lz -lGL
> libtool: link: g++ -Wall -Wextra -Woverloaded-virtual -Wshadow
> -Wstrict-overflow -Wstrict-aliasing -Wdouble-promotion
> -Wno-implicit-fallthrough -g -DDEBUG -O2 -DNDEBUG -ffast-math
> -fstrict-overflow -fstrict-aliasing -finline-functions
> -fomit-frame-pointer -fcf-protection=none -fno-stack-protector
> -march=native -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
> -DHAVE_ZLIB_H=1 -DHAVE_XSHM_H=1 -DHAVE_XSHAPE_H=1 -DHAVE_XCURSOR_H=1
> -DHAVE_XRENDER_H=1 -DHAVE_XRANDR_H=1 -DHAVE_XFIXES_H=1
> -DHAVE_XINPUT2_H=1 -DNO_XIM -DHAVE_XFT_H=1 -DHAVE_XFT_H=1
> -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -DHAVE_GLX_H=1 -s -o .libs/charttest
> charttest.o icons.o ./.libs/libCHART-1.7.so
> /usr/src/X11/fox-1.7.82/lib/.libs/libFOX-1.7.so
> ../lib/.libs/libFOX-1.7.so -lSM -lICE -lX11 -lXext -lXcursor -lXrender
> -lXrandr -lXfixes -lXi -lfreetype -lfontconfig -lXft -lm -ldl
> -lpthread -lrt -ljpeg -lpng -ltiff -lz -lGL
> /usr/bin/ld: /usr/src/X11/fox-1.7.82/lib/.libs/libFOX-1.7.so:
> undefined reference to `FX::FXMappedMemory::detach()'
> /usr/bin/ld: /usr/src/X11/fox-1.7.82/lib/.libs/libFOX-1.7.so:
> undefined reference to `FX::FXMappedMemory::attach(int, unsigned int)'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:486: charttest] Error 1
> make[2]: Leaving directory '/usr/src/X11/fox-1.7.82/chart'
> make[1]: *** [Makefile:403: all] Error 2
> make[1]: Leaving directory '/usr/src/X11/fox-1.7.82/chart'
> make: *** [Makefile:496: all-recursive] Error 1
> Thanks for the good toolkit.
>
The new FXMappedFile and FXMappedMemory classes were not finished yet,
but I thought at least they were compiling. Perhaps its a static vs
DLL thing: as DLL, we can't have unresolved references, even if they're
not used by any code. In static, its only unresolved if its referenced.
At any rate, I hope to do some work on them soon.
Regards,
-- JVZ
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.