Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72315 - [libupnp] reference to static libs in the cmake files

Attached to Project: Arch Linux
Opened by Gustavo Alvarez (sl1pkn07) - Friday, 01 October 2021, 16:21 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 24 October 2021, 12:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

if try to build a cmake based project involve libupnp (for example amule), fails because have references about static libs. but the package not include it

~~~
CMake Error at /usr/lib64/cmake/IXML/IXML.cmake:92 (message):
The imported target "IXML::Static" references the file

"/usr/lib/libixml.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/lib64/cmake/IXML/IXML.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/lib64/cmake/IXML/IXMLConfig.cmake:37 (INCLUDE)
/usr/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/usr/lib64/cmake/UPNP/UPNPConfig.cmake:39 (FIND_DEPENDENCY)
cmake/upnp.cmake:6 (find_package)
CMakeLists.txt:79 (include)

~~~

greetings

greetings
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 24 October 2021, 12:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  libupnp 1.14.12-2
Comment by Gustavo Alvarez (sl1pkn07) - Friday, 01 October 2021, 16:31 GMT
also involve /usr/lib64/cmake/UPNP/ cmake files

~~~
CMake Error at /usr/lib64/cmake/UPNP/UPNP.cmake:98 (message):
The imported target "UPNP::Static" references the file

"/usr/lib/libupnp.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/lib64/cmake/UPNP/UPNP.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/lib64/cmake/UPNP/UPNPConfig.cmake:40 (INCLUDE)
cmake/upnp.cmake:6 (find_package)
CMakeLists.txt:79 (include)

~~~

greetings
Comment by Antonio Rojas (arojas) - Friday, 01 October 2021, 17:45 GMT
Comment by Gustavo Alvarez (sl1pkn07) - Friday, 15 October 2021, 15:28 GMT
or maybe set `UPNP_BUILD_STATIC=OFF` in the cmake options?

EDIT, nope
EDIT2: https://github.com/pupnp/pupnp/issues/346
Comment by Antonio Rojas (arojas) - Sunday, 24 October 2021, 10:51 GMT
The commit that I linked is the one that introduces the UPNP_BUILD_STATIC cmake option. Without it, it's obviously not going to work.
Comment by Gustavo Alvarez (sl1pkn07) - Sunday, 24 October 2021, 10:57 GMT
i have tested with git package with that option, and not works. cmake files still include static search

OH: nvm. seems i mess up the installation and build process. yes. in git version only provide shared search if add `-DUPNP_BUILD_STATIC=OFF `


sorry for the noise

Loading...