I am not a cmake user nor a C dev, but from that output I would guess one of two things:
1. Either the default options that come when using the RPM Macro are conflicting with something in the build 2. Or for whatever reason you need to explicitly link (afaik is just `-l<name_of _lib>`) and you you not doing that yet for whatever reason Good luck, Mateus Rodrigues Costa Em sex., 3 de jan. de 2025, 16:41, Greg Bailey <gbai...@lxpro.com> escreveu: > Hello, > > I'm a very part-time Fedora packager, and am trying to update the > "puzzles" spec file to bring in a newer version of Simon Tatham's (of > Putty fame) single player puzzle collection. > > This is a GTK3 or GTK2 application that uses cmake. If I perform: > > cmake . > cmake --build > > The application appears to build just fine. But if I try to use the > %cmake RPM macros in the spec file, as in: > > %build > %cmake > %cmake_build > > %install > %cmake_install > > then I get errors during the build, such as: > > [ 4%] Linking C executable spectre-gen > cd > /builddir/build/BUILD/puzzles-20241230.79be403-build/puzzles-20241230.79be403/redhat-linux-build/auxiliary > > && /usr/bin/cmake -E cmake_link_script > CMakeFiles/spectre-gen.dir/link.txt --verbose=1 > /usr/bin/ld: ../libcore.so: undefined reference to > `spectre_tiling_params_invalid' > /usr/bin/ld: ../libcore.so: undefined reference to `g_free' > /usr/bin/ld: ../libcore.so: undefined reference to `cairo_region_destroy' > [snip] > > I specify gtk3-devel as a BuildRequires, so I assumed all the GUI stuff > I need is present. > > I've looked at > https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ but I'm > not a cmake user or developer... > > Thanks in advance if anyone can send along pointers to help troubleshoot > this. I looked at other third-party spec files for this package, and > there's a random assortment of make being invoked directly, usage of > some (but not all) of the %cmake RPM macros, etc. > > -Greg > > -- > _______________________________________________ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > 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/devel@lists.fedoraproject.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue >
-- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue