I noticed that net-misc/unison will fail to build due to missing symbols if dev-lang/ocaml is built with '-Wl,--as-needed' in LDFLAGS. Reproducible: Always Steps to Reproduce: 1. LDFLAGS="-Wl,--as-needed" emerge '=dev-lang/ocaml-3.09.3-r1' 2. emerge unison 3. it breaks 4. emerge ocaml 5. emerge unison 6. it works. Actual Results: emerge unison fails during link: pty.o: In function `c_openpty': pty.c:(.text+0x2d): undefined reference to `openpty' collect2: ld returned 1 exit status Error during linking make: *** [unison] Error 2 Expected Results: emerge unison succeeds
Created attachment 131669 [details, diff] Filter -Wl,--as-needed in the ebuild
Comment on attachment 131669 [details, diff] Filter -Wl,--as-needed in the ebuild Filtering flags doesn't solve anything.
unless I missed something, that's not ocaml which is failing but unison *** This bug has been marked as a duplicate of bug 189238 ***
(In reply to comment #3) > unless I missed something, that's not ocaml which is failing but unison > > *** This bug has been marked as a duplicate of bug 189238 *** > The fault is due to ocaml being built with -Wl,--as-needed. It can be solved by adding more to unison's link step or by filtering --as-needed in ocaml.