#103 closed defect (fixed)
Static library build fails due to dependence on sm_physics
Reported by: | kilian | Owned by: | Juergen Reuter |
---|---|---|---|
Priority: | P2 | Milestone: | |
Component: | models | Version: | 2.0.0beta |
Severity: | blocker | Keywords: | |
Cc: |
Description
When the static library is built, parameters.SM depends on sm_physics, but the linker doesn't find it.
In the static build, libwhizard depends on libomega. The problem is that, only via functions fone
etc. (Higgs loop couplings), libomega also depends on libwhizard. Unfortunately, libtool doesn't support such a circular dependency for static linkage, and the function calls are not resolved. In the shared-library build, the dependency is resolved.
sm_physics consists of some functions which are used only by parameters.SM (and potentially parameters.MSSM and others), and some other functions (alpha_s) which should be used only by other WHIZARD modules. I propose to put the part used by the parameters modules in src/misc in a new module, and leave only the rest in whizard.nw.
Change History (6)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Now, the static test seems to work, both for gfortran and for NAG. Closing this ticket. (If the problem re-arises, we can still reopen the bug).
comment:3 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
OK, it seems that "make distcheck" somehow fails on this. Could someone confirm this?
comment:4 Changed 15 years ago by
In [1420], I moved some auxiliary modules (up to and including sm_physics) into the misc directory. The source is still whizard.nw. They are effectively included both in libwhizard and libomega. This removes the mutual dependency of those.
make check
and make installcheck
do work with this, including the static build. Waiting for make distcheck
to complete ...
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
OK, make distcheck
still hangs on the problem with src/omega/doc/.depend (bug #100). Simply assuming that the problem with the static build is now absent also for this case, I close the present ticket, again.
Actually, would this really bring an improvement to move it to the src/misc directory. The dependence of sm_physics.f90 on the whizard core (libwhizard) remains since it depends (must depend) on lorentz. ???