Bug 211977 - security/i2pd build error
Summary: security/i2pd build error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-18 23:09 UTC by Igor Pavlov
Modified: 2016-08-19 09:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (amdmi3)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Pavlov 2016-08-18 23:09:14 UTC
build log:

/usr/ports/security/i2pd # make install
===>  License BSD3CLAUSE accepted by the user
===>  Found saved configuration for i2pd-2.7.0
===>   i2pd-2.9.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by i2pd-2.9.0 for building
===>  Extracting for i2pd-2.9.0
=> SHA256 Checksum OK for PurpleI2P-i2pd-2.9.0_GH0.tar.gz.
===>  Patching for i2pd-2.9.0
===>   i2pd-2.9.0 depends on file: /usr/local/bin/cmake - found
===>   i2pd-2.9.0 depends on file: /usr/local/lib/libcrypto.so.8 - found
===>   i2pd-2.9.0 depends on shared library: libboost_thread.so - found (/usr/local/lib/libboost_thread.so)
===>   i2pd-2.9.0 depends on shared library: libminiupnpc.so - found (/usr/local/lib/libminiupnpc.so)
===>  Configuring for i2pd-2.9.0
===>  Performing in-source build
/bin/mkdir -p /usr/ports/security/i2pd/work/i2pd-2.9.0
-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CXX11_SUPPORTED
-- Performing Test CXX11_SUPPORTED - Success
-- Performing Test CXX0X_SUPPORTED
-- Performing Test CXX0X_SUPPORTED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Found Threads: TRUE  
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
--   date_time
-- Found OpenSSL: /usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so (found version "1.0.2h") 
-- Found MiniUPnP headers: /usr/local/include
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8") 
-- ---------------------------------------
-- Build type         : Release
-- Compiler vendor    : Clang
-- Compiler version   : 3.4.1
-- Compiler path      : /usr/bin/c++
-- Install prefix:    : /usr/local
-- Options:
--   AESNI            : ON
--   HARDENING        : OFF
--   LIBRARY          : ON
--   BINARY           : ON
--   STATIC BUILD     : OFF
--   UPnP             : ON
--   PCH              : OFF
--   MESHNET          : OFF
-- ---------------------------------------
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS_DEBUG
    CMAKE_C_FLAGS_DEBUG
    CMAKE_C_FLAGS_RELEASE
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS


-- Build files have been written to: /usr/ports/security/i2pd/work/i2pd-2.9.0
===>  Building for i2pd-2.9.0
Scanning dependencies of target libi2pd
[  1%] Building CXX object CMakeFiles/libi2pd.dir/Config.cpp.o
[  3%] Building CXX object CMakeFiles/libi2pd.dir/Garlic.cpp.o
[  5%] Building CXX object CMakeFiles/libi2pd.dir/Gzip.cpp.o
[  9%] Building CXX object CMakeFiles/libi2pd.dir/Crypto.cpp.o
[  9%] Building CXX object CMakeFiles/libi2pd.dir/I2NPProtocol.cpp.o
[ 11%] Building CXX object CMakeFiles/libi2pd.dir/Identity.cpp.o
[ 13%] Building CXX object CMakeFiles/libi2pd.dir/LeaseSet.cpp.o
[ 15%] Building CXX object CMakeFiles/libi2pd.dir/FS.cpp.o
[ 17%] Building CXX object CMakeFiles/libi2pd.dir/Log.cpp.o
[ 19%] Building CXX object CMakeFiles/libi2pd.dir/NTCPSession.cpp.o
[ 21%] Building CXX object CMakeFiles/libi2pd.dir/NetDbRequests.cpp.o
[ 23%] Building CXX object CMakeFiles/libi2pd.dir/NetDb.cpp.o

...

2 warnings generated.
2 warnings generated.
4 warnings generated.
7 warnings generated.
[100%] Linking CXX executable i2pd
/usr/bin/ld: cannot find -lminiupnpc
c++: error: linker command failed with exit code 1 (use -v to see invocation)
--- i2pd ---
*** [i2pd] Error code 1

make[4]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
1 error

make[4]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
--- CMakeFiles/i2pd.dir/all ---
*** [CMakeFiles/i2pd.dir/all] Error code 2

make[3]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
1 error

make[3]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
*** [all] Error code 2

make[2]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
1 error

make[2]: stopped in /usr/ports/security/i2pd/work/i2pd-2.9.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/i2pd
*** Error code 1

Stop.
make: stopped in /usr/ports/security/i2pd
Comment 1 Walter Schwarzenfeld freebsd_triage 2016-08-19 01:06:34 UTC
Strange thing. If I deinstall miniupnpc (was installed as dependency of transmission on my system). it compiles without problem. But it did not pulls in miniupnpc. 
After reinstall miniupnpc, I try again to install i2pod. And this time without problems.
Comment 2 Walter Schwarzenfeld freebsd_triage 2016-08-19 01:34:27 UTC
Sorry. above was wrpmg. Same error.
Comment 3 Walter Schwarzenfeld freebsd_triage 2016-08-19 02:03:20 UTC
Builds fine if I change from cmake to gmake.
Comment 4 Walter Schwarzenfeld freebsd_triage 2016-08-19 07:38:06 UTC
Or with
LDFLAGS+=       -L/usr/local/lib
in the Makefile.
Comment 5 commit-hook freebsd_committer 2016-08-19 09:41:05 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Aug 19 09:40:51 UTC 2016
New revision: 420452
URL: https://svnweb.freebsd.org/changeset/ports/420452

Log:
  - Fix build with enabled UPNP
  - Switch to opt_CMAKE_BOOL

  PR:		211977
  Reported by:	arabesc@bk.ru

Changes:
  head/security/i2pd/files/
  head/security/i2pd/files/patch-build_CMakeLists.txt
  head/security/i2pd/files/patch-build_cmake__modules_FindMiniUPnPc.cmake