Bug 182169 - devel/ucommon 6.0.7 Fails to Build
Summary: devel/ucommon 6.0.7 Fails to Build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 22:20 UTC by Ryan Frederick
Modified: 2013-09-17 08:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Frederick 2013-09-16 22:20:01 UTC
devel/ucommon version 6.0.7 fails to build with the following exception:

[ 68%] Building CXX object CMakeFiles/usecure.dir/openssl/secure.cpp.o
/usr/ports/devel/ucommon/work/ucommon-6.0.7/openssl/secure.cpp: In static member function 'static bool ucommon::secure::fips()':
/usr/ports/devel/ucommon/work/ucommon-6.0.7/openssl/secure.cpp:53: error: 'FIPS_mode_set' was not declared in this scope
*** [CMakeFiles/usecure.dir/openssl/secure.cpp.o] Error code 1
1 error
*** [CMakeFiles/usecure.dir/all] Error code 2
1 error
*** [all] Error code 2
1 error

Fix: 

Perhaps the following block needs to be reinserted into the Makefile?

.if ${OSVERSION} < 1000000
post-patch:
	${REINPLACE_CMD} -e '/HAVE_OPENSSL_FIPS_H/s/define/undef/' \
	    ${WRKSRC}/${CONFIGURE_SCRIPT}

.endif
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-16 22:20:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-09-17 08:46:22 UTC
Author: gahr
Date: Tue Sep 17 07:46:14 2013
New Revision: 327455
URL: http://svnweb.freebsd.org/changeset/ports/327455

Log:
  - Fix build on < 10.0
  
  PR:		182169
  Submitted by:	Ryan Frederick <ryanrfrederick@gmail.com>

Modified:
  head/devel/ucommon/files/patch-CMakeLists.txt

Modified: head/devel/ucommon/files/patch-CMakeLists.txt
==============================================================================
--- head/devel/ucommon/files/patch-CMakeLists.txt	Tue Sep 17 06:51:04 2013	(r327454)
+++ head/devel/ucommon/files/patch-CMakeLists.txt	Tue Sep 17 07:46:14 2013	(r327455)
@@ -1,5 +1,5 @@
 --- CMakeLists.txt.orig	2013-07-28 12:32:06.000000000 +0200
-+++ CMakeLists.txt	2013-09-16 18:29:12.000000000 +0200
++++ CMakeLists.txt	2013-09-17 09:22:29.000000000 +0200
 @@ -30,7 +30,9 @@
  # when we override default install prefix, assume full path is used...
  
@@ -20,7 +20,45 @@
      set(INSTALL_LOCALE share/locale)
      set(INSTALL_DOCDIR share/doc/${PROJECT_NAME})
      set(INSTALL_INFODIR share/info)
-@@ -566,11 +568,11 @@
+@@ -207,15 +209,17 @@
+ 
+ 
+ if(UNIX OR MSYS OR MINGW OR CYGWIN)
+-    check_library_exists(dl dlopen "" HAVE_DL_LIB)
+-    if (HAVE_DL_LIB)
+-        set (UCOMMON_LIBS ${UCOMMON_LIBS} dl)
+-    else()
+-        check_library_exists(compat dlopen "" HAVE_COMPAT_LIB)
+-        if(HAVE_COMPAT_LIB)
+-            set (UCOMMON_LIBS ${UCOMMON_LIBS} compat)
++    if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
++        check_library_exists(dl dlopen "" HAVE_DL_LIB)
++        if (HAVE_DL_LIB)
++            set (UCOMMON_LIBS ${UCOMMON_LIBS} dl)
++        else()
++            check_library_exists(compat dlopen "" HAVE_COMPAT_LIB)
++            if(HAVE_COMPAT_LIB)
++                set (UCOMMON_LIBS ${UCOMMON_LIBS} compat)
++            endif()
+         endif()
+-    endif()
++    endif ()
+ 
+     check_library_exists(dld shl_load "" HAVE DLD_LIB)
+     if (HAVE_DLD_LIB)
+@@ -309,7 +313,11 @@
+ check_include_files(sys/event.h HAVE_SYS_EVENT_H)
+ check_include_files(syslog.h HAVE_SYSLOG_H)
+ check_include_files(openssl/ssl.h HAVE_OPENSSL)
++if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
++    set (HAVE_OPENSSL_FIPS_H "")
++else ()
+ check_include_files(openssl/fips.h HAVE_OPENSSL_FIPS_H)
++endif ()
+ check_include_files(libintl.h HAVE_LIBINTL_H)
+ check_include_files(netinet/in.h HAVE_NETINET_IN_H)
+ check_include_files(net/if.h HAVE_NET_IF_H)
+@@ -566,11 +574,11 @@
  endif()
  
  if(NOT WIN32)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2013-09-17 08:46:43 UTC
State Changed
From-To: open->closed

A fix has been committed as r327455.