From owner-freebsd-arch@FreeBSD.ORG Sat Jun 13 23:34:17 2015 Return-Path: Delivered-To: freebsd-arch@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46CFB81E for ; Sat, 13 Jun 2015 23:34:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 10E2AD5 for ; Sat, 13 Jun 2015 23:34:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iebmu5 with SMTP id mu5so43040249ieb.1 for ; Sat, 13 Jun 2015 16:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=eM66yl31kbtEgg4q0VhpzPqI4uQd1GHFvrObU3uqhEE=; b=whivUXiut1vm6ZtznrdcYgUSN6JefCci/2QSZTBHMaOJJUdmt4gQyiubGkS7PuFGFY UV0Kt4bl9iZgBIpgnH18WL0dlRhETO9fDaVazob3lEoeRGtYLQRVLgbaN77RX6UtbULL bx73Q4lXJj/qMIZQwPF0KccuzQKcYfwP1XXdCnU9CTFvxveifCBpPwum4a60qeRhNZRx UQhumf0/SOmb3b3FcH7xJoliGex5vkYYUTJUZP+ICotHkPkvK0THLfddIXxBfHYgvP1G HW4pZABCdeespn1wwG3xfpR3iL/CJT1mTqY001aAxHOmn8rZNA6KU3WbMG3oJ62mZgWZ X52A== MIME-Version: 1.0 X-Received: by 10.50.97.105 with SMTP id dz9mr12429131igb.49.1434238456598; Sat, 13 Jun 2015 16:34:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 13 Jun 2015 16:34:16 -0700 (PDT) In-Reply-To: <181503FC-ED51-4F8B-A900-53B51578E2C0@gmail.com> References: <181503FC-ED51-4F8B-A900-53B51578E2C0@gmail.com> Date: Sat, 13 Jun 2015 16:34:16 -0700 X-Google-Sender-Auth: H4_eu00PlhRPGz6b7jlz2FoTsPo Message-ID: Subject: Re: [rfc] add MK_TELNET_SSL as a build option From: Adrian Chadd To: Garrett Cooper Cc: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2015 23:34:17 -0000 The telnet library requires those routines to be defined by the application, but when doing crunchgen style binaries that doesn't work - two sets of each of those symbols are defined and things don't link. The solution here is to create a struct with function pointers that the application registers at startup time, rather than having the library link /into/ the application. -adrian