Hi,

I was looking into fixing an unrelated BZ report on slim, and I thought I would 
use this opportunity to update the software itself that is available from 
https://sourceforge.net/projects/slim-fork/  But I have realized that the 
problem for me is even before the SPEC file, and that I can not make the 
executable itself. I can not quite see how to get around the error and I wonder 
if anyone would have any ideas.

So here are the errors I get after configuring and make. (I am not sure which 
is more readable so I also put this here:  
https://paste.centos.org/view/41c91e3f)

 localuser@localhost 18:07:19~$ make
 /usr/bin/cmake -S/home/localuser/Downloads/slim-1.4.1 
-B/home/localuser/Downloads/slim-1.4.1 --check-build-system 
CMakeFiles/Makefile.cmake 0
 /usr/bin/cmake -E cmake_progress_start 
/home/localuser/Downloads/slim-1.4.1/CMakeFiles 
/home/localuser/Downloads/slim-1.4.1//CMakeFiles/progress.marks
 make  -f CMakeFiles/Makefile2 all
 make[1]: Entering directory '/home/localuser/Downloads/slim-1.4.1'
 make  -f CMakeFiles/libslim.dir/build.make CMakeFiles/libslim.dir/depend
 make[2]: Entering directory '/home/localuser/Downloads/slim-1.4.1'
 cd /home/localuser/Downloads/slim-1.4.1 && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1 /home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1/CMakeFiles/libslim.dir/DependInfo.cmake 
"--color="
 make[2]: Leaving directory '/home/localuser/Downloads/slim-1.4.1'
 make  -f CMakeFiles/libslim.dir/build.make CMakeFiles/libslim.dir/build
 make[2]: Entering directory '/home/localuser/Downloads/slim-1.4.1'
 [  9%] Building CXX object CMakeFiles/libslim.dir/cfg.cpp.o
 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -Dlibslim_EXPORTS -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2 -fPIC -MD -MT CMakeFiles/libslim.dir/cfg.cpp.o -MF 
CMakeFiles/libslim.dir/cfg.cpp.o.d -o CMakeFiles/libslim.dir/cfg.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/cfg.cpp
 [ 18%] Building CXX object CMakeFiles/libslim.dir/image.cpp.o
 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -Dlibslim_EXPORTS -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2 -fPIC -MD -MT CMakeFiles/libslim.dir/image.cpp.o -MF 
CMakeFiles/libslim.dir/image.cpp.o.d -o CMakeFiles/libslim.dir/image.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/image.cpp
 [ 27%] Building CXX object CMakeFiles/libslim.dir/log.cpp.o

 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -Dlibslim_EXPORTS -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2 -fPIC -MD -MT CMakeFiles/libslim.dir/log.cpp.o -MF 
CMakeFiles/libslim.dir/log.cpp.o.d -o CMakeFiles/libslim.dir/log.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/log.cpp
 [ 36%] Building CXX object CMakeFiles/libslim.dir/panel.cpp.o
 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -Dlibslim_EXPORTS -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2 -fPIC -MD -MT CMakeFiles/libslim.dir/panel.cpp.o -MF 
CMakeFiles/libslim.dir/panel.cpp.o.d -o CMakeFiles/libslim.dir/panel.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/panel.cpp
 [ 45%] Building CXX object CMakeFiles/libslim.dir/util.cpp.o
 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -Dlibslim_EXPORTS -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2 -fPIC -MD -MT CMakeFiles/libslim.dir/util.cpp.o -MF 
CMakeFiles/libslim.dir/util.cpp.o.d -o CMakeFiles/libslim.dir/util.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/util.cpp
 [ 54%] Linking CXX shared library libslim.so
 /usr/bin/cmake -E cmake_link_script CMakeFiles/libslim.dir/link.txt --verbose=1
 /bin/c++ -fPIC -Wl,--dependency-file=CMakeFiles/libslim.dir/link.d -shared 
-Wl,-soname,libslim.so.1.4.1 -o libslim.so.1.4.1 
CMakeFiles/libslim.dir/cfg.cpp.o CMakeFiles/libslim.dir/image.cpp.o 
CMakeFiles/libslim.dir/log.cpp.o CMakeFiles/libslim.dir/panel.cpp.o 
CMakeFiles/libslim.dir/util.cpp.o  -Wl,-Bstatic -lrt -Wl,-Bdynamic -lXft 
-lXrandr -ljpeg -lpng -lz
 /usr/bin/cmake -E cmake_symlink_library libslim.so.1.4.1 libslim.so.1.4.1 
libslim.so
 make[2]: Leaving directory '/home/localuser/Downloads/slim-1.4.1'
 [ 54%] Built target libslim
 make  -f CMakeFiles/slim.dir/build.make CMakeFiles/slim.dir/depend
 make[2]: Entering directory '/home/localuser/Downloads/slim-1.4.1'
 cd /home/localuser/Downloads/slim-1.4.1 && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1 /home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1 
/home/localuser/Downloads/slim-1.4.1/CMakeFiles/slim.dir/DependInfo.cmake 
"--color="
 make[2]: Leaving directory '/home/localuser/Downloads/slim-1.4.1'
 make  -f CMakeFiles/slim.dir/build.make CMakeFiles/slim.dir/build
 make[2]: Entering directory '/home/localuser/Downloads/slim-1.4.1'
 [ 63%] Building CXX object CMakeFiles/slim.dir/main.cpp.o
 /bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW 
-DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" 
-DVERSION=\"1.4.1\" -I/home/localuser/Downloads/slim-1.4.1 
-I/usr/include/freetype2  -MD -MT CMakeFiles/slim.dir/main.cpp.o -MF 
CMakeFiles/slim.dir/main.cpp.o.d -o CMakeFiles/slim.dir/main.cpp.o -c 
/home/localuser/Downloads/slim-1.4.1/main.cpp
 In file included from /home/localuser/Downloads/slim-1.4.1/main.cpp:14:
 /home/localuser/Downloads/slim-1.4.1/app.h:63:38: error: ‘std::string’ has not 
been declared
    63 |         static void replaceVariables(std::string &input,
       |                                      ^~~
 /home/localuser/Downloads/slim-1.4.1/app.h:17:1: note: ‘std::string’ is 
defined in header ‘<string>’; this is probably fixable by adding ‘#include 
<string>’
    16 | #include <X11/Xlib.h>
   +++ |+#include <string>
    17 | 
 /home/localuser/Downloads/slim-1.4.1/app.h:64:77: error: ‘string’ in namespace 
‘std’ does not name a type
    64 |                                                  const std::string 
&var,
       |                                                             ^~~~~~
 /home/localuser/Downloads/slim-1.4.1/app.h:64:72: note: ‘std::string’ is 
defined in header ‘<string>’; this is probably fixable by adding ‘#include 
<string>’
    64 |                                                       const 
std::string &var,
       |                                                             ^~~
 /home/localuser/Downloads/slim-1.4.1/app.h:65:77: error: ‘string’ in namespace 
‘std’ does not name a type
    65 |                                                  const std::string 
&value);
       |                                                             ^~~~~~
 /home/localuser/Downloads/slim-1.4.1/app.h:65:72: note: ‘std::string’ is 
defined in header ‘<string>’; this is probably fixable by adding ‘#include 
<string>’
    65 |                                                       const 
std::string &value);
       |                                                             ^~~
 /home/localuser/Downloads/slim-1.4.1/app.h:105:14: error: ‘string’ in 
namespace ‘std’ does not name a type
   105 |         std::string themeName;  ///< Name of the theme in use
       |              ^~~~~~
 /home/localuser/Downloads/slim-1.4.1/app.h:105:9: note: ‘std::string’ is 
defined in header ‘<string>’; this is probably fixable by adding ‘#include 
<string>’
   105 |         std::string themeName;  ///< Name of the theme in use
       |         ^~~
 /home/localuser/Downloads/slim-1.4.1/app.h:106:14: error: ‘string’ in 
namespace ‘std’ does not name a type
   106 |         std::string mcookie;    ///< Randomly generated X auth cookie
       |              ^~~~~~
 /home/localuser/Downloads/slim-1.4.1/app.h:106:9: note: ‘std::string’ is 
defined in header ‘<string>’; this is probably fixable by adding ‘#include 
<string>’
   106 |         std::string mcookie;    ///< Randomly generated X auth cookie
       |         ^~~
 make[2]: *** [CMakeFiles/slim.dir/build.make:82: 
CMakeFiles/slim.dir/main.cpp.o] Error 1
 make[2]: Leaving directory '/home/localuser/Downloads/slim-1.4.1'
 make[1]: *** [CMakeFiles/Makefile2:189: CMakeFiles/slim.dir/all] Error 2
 make[1]: Leaving directory '/home/localuser/Downloads/slim-1.4.1'
 make: *** [Makefile:139: all] Error 2
 
 
Does anyone have any suggestions on how to get around this error? It does not 
appear that other users (not on Fedora 42, perhaps) have had this problem. I am 
not very versed with CMakeFiles, and I would be very grateful if someone had 
some suggestions.

Many thanks again, and best wishes for any help!
Ranjan
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to