https://bugzilla.mindrot.org/show_bug.cgi?id=1770

           Summary: circular dependencies prevent building on platforms
                    without strlcpy, vasprintf
           Product: Portable OpenSSH
           Version: 5.5p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Building 5.5p1 on HPUX 10.20 (yeah, it's pretty ancient) fails here:

gcc -o ssh-pkcs11-helper ssh-pkcs11-helper.o ssh-pkcs11.o -L.
-Lopenbsd-compat/ -L/usr/local/ssl-0.9.8n/lib  -lssh -lopenbsd-compat
-lssh -lcrypto -lz -lxnet  -lsec
/usr/ccs/bin/ld: Unsatisfied symbols:
   strlcpy (code)
   vasprintf (code)
collect2: ld returned 1 exit status

The problem here seems to be circular dependencies between libssh and
libopenbsd-compat
(because the latter depends on xstrdup which is defined in the former).
 The link succeeds if I add another instance of -lopenbsd-compat at the
end of the command.  That's a pretty crocky workaround though.  Maybe
xstrdup ought to be moved to libopenbsd-compat?

FWIW, openssh 4.6p1 built successfully on this platform, so the
problem's been introduced since then.  Another possibly useful
datapoint is that ssh-pkcs11-helper is the only executable that
exhibits a problem.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to