Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package libmosquittopp is missing dependencies for the following libraries: libmosquitto.so.1 #7794

Open
stintel opened this issue Dec 27, 2018 · 7 comments
Assignees

Comments

@stintel
Copy link
Member

stintel commented Dec 27, 2018

Maintainer: @karlp
Environment: OpenWrt master

Description:
Trying to build an image with libmosquittopp included and keep running into this issue:

Package libmosquittopp is missing dependencies for the following libraries:
libmosquitto.so.1

This problem has been occurring me for quite some time, we've talked about it in IRC before but never found a fix. This happens after make dirclean. I usually work around it with this hack:

diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index c374faa647..49feb97d4d 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -75,7 +75,7 @@ ifneq ($(PKG_NAME),toolchain)
                if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \
                        echo "Package $(1) is missing dependencies for the following libraries:" >&2; \
                        cat "$(PKG_INFO_DIR)/$(1).missing" >&2; \
-                       false; \
+                       true; \
                fi; \
        )
   endef

Mosquitto related symbols in config:

$ grep -i mosquitto .config
# CONFIG_PACKAGE_libmosquitto-nossl is not set
CONFIG_PACKAGE_libmosquitto-ssl=y
CONFIG_PACKAGE_libmosquittopp=y
# CONFIG_PACKAGE_mosquitto-client-nossl is not set
# CONFIG_PACKAGE_mosquitto-client-ssl is not set
CONFIG_PACKAGE_mosquitto-nossl=y
# CONFIG_PACKAGE_mosquitto-ssl is not set
@neheb
Copy link
Contributor

neheb commented Dec 31, 2018

@stintel try #7772

Maybe the libmosquitto depends needs a +.

Or it's not being installed properly.

@karlp
Copy link
Contributor

karlp commented Jan 1, 2019

It can't be a + depends, because you can't autoselect the virtual package. I'll be back to work tomorrow and will be looking at this.

@karlp
Copy link
Contributor

karlp commented Jan 2, 2019

@stintel do you reallllly have mosquitto without ssl, but libmosquitto with ssl? I mean, I guess that should work, but was that the goal?

@karlp
Copy link
Contributor

karlp commented Jan 2, 2019

I can confirm the issue if you have mosquitto-ssl + libmosquitto-nossl, but it works if you have mosquitto-ssl+libmosquitto-ssl or mosquitto-nossl + libmosquitto-nossl.

I can only presume this is a build system problem with dependency tracking. I'm not sure what I can do about it really, and while it should be a legal build combination, it's not really a very useful build combination IMO?

@stintel
Copy link
Member Author

stintel commented Jan 8, 2019

Using libmosquitto-ssl for vallumd, which connects to a public MQTT broker with SSL, and running mosquitto-nossl internally, used by Domoticz and some sensor devices. I don't need SSL for that, and I usually select only what I need.

I can do mosquitto-ssl+libmosquitto-ssl as workaround for now, but would be nice if this can be fixed eventually.

@karlp
Copy link
Contributor

karlp commented Jan 8, 2019

Well, it's a build issue, not a mosquitto issue, so there's nothing else I can do about it right now. We could try making -ssl and -nossl variants for libmosquittopp too maybe? might help?

@dreirund
Copy link

Well, it's a build issue, not a mosquitto issue, so there's nothing else I can do about it right now.

Where should it be reported then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants