From owner-freebsd-ports Sat Sep 23 17:21: 8 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B5E037B422 for ; Sat, 23 Sep 2000 17:20:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA95343; Sat, 23 Sep 2000 17:20:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 23 Sep 2000 17:20:12 -0700 (PDT) Message-Id: <200009240020.RAA95343@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: odip@bionet.nsc.ru Subject: ports/21498: [patch] can't building curl-7.2.1 with openssl Reply-To: odip@bionet.nsc.ru Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/21498; it has been noted by GNATS. From: odip@bionet.nsc.ru To: freebsd-gnats-submit@FreeBSD.ORG Cc: Subject: ports/21498: [patch] can't building curl-7.2.1 with openssl Date: Sat, 23 Sep 2000 03:37:06 -0700 (PDT) >Number: 21498 >Category: ports >Synopsis: [patch] can't building curl-7.2.1 with openssl >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 23 03:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dmitry Grigorovich >Release: 3.5.1-RELEASE >Organization: ICiG >Environment: FreeBSD cyclop.bionet.nsc.ru 3.5.1-RELEASE FreeBSD 3.5.1-RELEASE #0: Thu Jul 2003:22:42 GMT 2000 jkh@monster.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: When building new curl port ( 7.2.1 ) with OPENSSL we are get error messages on configure stage When building same curl port without OPENSSL all it ok I found problem found in following lines in file /usr/ports/ftp/curl/Makefile ====================== .include .if defined(WITH_SSL) USE_OPENSSL= YES CONFIGURE_ENV+= CPPFLAGS='-I${OPENSSLINC} -I${OPENSSLINC}/openssl' \ LDFLAGS='-L${OPENSSLLIB}' .endif ====================== If we define WITH_SSL variable, then CONFIGURE_ENV are expanded namely: CPPFLAGS='-I -I/openssl' LDFLAGS='-L' (!!!) That is variables OPENSSLINC and OPENSSLLIB are empty or undefined Solution: Move line '.include ' lower then .if/.endif Thus variables OPENSSLINC & OPENSSLLIB will be defined correctly >How-To-Repeat: cd /usr/ports/ftp/curl WITH_SSL=YES make configure After this we are get error messages >Fix: Apply following patch to file /usr/ports/ftp/curl/Makefile Clean and rebuild port of curl --- Makefile.orig Sat Sep 23 14:04:35 2000 +++ Makefile Sat Sep 23 17:10:11 2000 @@ -26,13 +26,13 @@ MAKE_ENV= SHLIB_VER="${SHLIB_VER}" PLIST_SUB= SHLIB_VER="${SHLIB_VER}" -.include - .if defined(WITH_SSL) USE_OPENSSL= YES CONFIGURE_ENV+= CPPFLAGS='-I${OPENSSLINC} -I${OPENSSLINC}/openssl' \ LDFLAGS='-L${OPENSSLLIB}' .endif + +.include GNU_CONFIGURE= yes USE_AUTOMAKE= yes >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message