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
Wrong library order in pkgconfig #976
Comments
Does it link if you manually supply the libraries in the order you suggested? I thought that the times were a linker only forward-resolves symbols from libraries are long gone, but I might be wrong... |
I haven't corrected the problem yet. My first approach would be to simply duplicate the library list that pkgconfig suggests. No, these times are not over, this is still very much the Unix standard. Certain linkers have options to avoid this, e.g. --whole-archive or --begin-group/--end-group for GNU binutils, but this is not portable. |
(I am using the fixing_588 branch.) I did not look at the undefined closely enough. The undefined reference is to
and this function does indeed not exist in any HPX library generated on my system. The function that is provided and that confused me is
I don't know how closely this function is related to the problem. |
Are you sure you recompiled everything? We modified a couple of those |
D'oh. Yes, a rebuild helped. I'm losing my touch -- sorry for the noise. |
When integrating HPX with Cactus, I build HPX not with cmake, but by querying pkgconfig for build and link options. In particular, I use "pkg-config hpx_application --libs-only-other" to get the list of libraries necessary for linking. This leads to
This leads to the linker error
I checked; this function is defined in the dynamic library hpx, and is called from a function in the static library hpx_init. Thus I assume that the order of libraries should maybe be
i.e. that "hpx" should be repeated.
The text was updated successfully, but these errors were encountered: