From owner-freebsd-ports@FreeBSD.ORG Wed Mar 19 08:59:58 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07AEE9B6 for ; Wed, 19 Mar 2014 08:59:58 +0000 (UTC) Received: from nschwmtas02p.mx.bigpond.com (nschwmtas02p.mx.bigpond.com [61.9.189.140]) by mx1.freebsd.org (Postfix) with ESMTP id 81BF8951 for ; Wed, 19 Mar 2014 08:59:57 +0000 (UTC) Received: from nschwcmgw06p ([61.9.190.166]) by nschwmtas02p.mx.bigpond.com with ESMTP id <20140319085950.BCPS12338.nschwmtas02p.mx.bigpond.com@nschwcmgw06p> for ; Wed, 19 Mar 2014 08:59:50 +0000 Received: from [10.0.0.14] ([120.145.195.108]) by nschwcmgw06p with BigPond Outbound id fLzn1n00S2LnwhU01Lzoo5; Wed, 19 Mar 2014 08:59:50 +0000 X-Authority-Analysis: v=2.0 cv=Pdd9d1dd c=1 sm=1 a=/hYsMi+8Ia2U0/jazGmF6g==:17 a=LEH2DxGZ4DAA:10 a=FWNqbHYkNwQA:10 a=JDadKst33uMA:10 a=kj9zAlcOel0A:10 a=1IlZJK9HAAAA:8 a=SqcjlTol0d-tk0W1SLwA:9 a=CjuIK1q_8ugA:10 a=/hYsMi+8Ia2U0/jazGmF6g==:117 User-Agent: Microsoft-MacOutlook/14.3.9.131030 Date: Wed, 19 Mar 2014 16:59:47 +0800 Subject: FreeBSD Port: ushare-1.1a_9 From: Dean Hollister To: Message-ID: Thread-Topic: FreeBSD Port: ushare-1.1a_9 Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 08:59:58 -0000 Hello, It appears that the ushare port requires GCC to build, but this requirement is not present in the Makefile. Attempting to build without GCC generates the following error: [root@fileserver /usr/ports/net/ushare]# make clean ===> Cleaning for gmake-3.82_1 ===> Cleaning for ushare-1.1a_9 [root@fileserver /usr/ports/net/ushare]# [root@fileserver /usr/ports/net/ushare]# make ===> ushare-1.1a_9 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by ushare-1.1a_9 for building ===> Extracting for ushare-1.1a_9 => SHA256 Checksum OK for ushare-1.1a.tar.bz2. ===> Patching for ushare-1.1a_9 ===> Applying FreeBSD patches for ushare-1.1a_9 ===> ushare-1.1a_9 depends on executable: gmake - found ===> ushare-1.1a_9 depends on executable: pkgconf - found ===> ushare-1.1a_9 depends on shared library: libintl.so - found ===> ushare-1.1a_9 depends on shared library: upnp.9 - found ===> Configuring for ushare-1.1a_9 ===> FreeBSD 10 autotools fix applied to /usr/ports/net/ushare/work/ushare-1.1a/configure Checking for compiler available... Checking for locales ... Checking for ifaddrs ... Checking for langinfo ... Checking for iconv ... Checking for libixml ... Checking for libthreadutil ... Checking for libupnp >= 1.4.2 ... Checking for libdlna >= 0.2.1 ... uShare: configure is OK version 1.1a using libupnp 1.6.19 using libdlna 0.2.3 configuration: install prefix /usr/local configuration dir ${PREFIX}/etc locales dir ${PREFIX}/share/locale NLS support yes DLNA support yes C compiler cc STRIP strip make gmake CPU x86 () debug symbols no strip symbols yes optimize yes CFLAGS -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA LDFLAGS -L/usr/local/lib -lintl extralibs -lixml -lthreadutil -lpthread -lupnp -pthread -L/usr/local/lib -ldlna -lavformat -lavcodec Creating config.mak ... Creating config.h ... ===> Building for ushare-1.1a_9 gmake[1]: Entering directory `/usr/ports/net/ushare/work/ushare-1.1a' for subdir in po scripts src ; do \ gmake -C $subdir all; \ done gmake[2]: Entering directory `/usr/ports/net/ushare/work/ushare-1.1a/po' gmake fr.gmo de.gmo gmake[3]: Entering directory `/usr/ports/net/ushare/work/ushare-1.1a/po' gmake[3]: `fr.gmo' is up to date. gmake[3]: `de.gmo' is up to date. gmake[3]: Leaving directory `/usr/ports/net/ushare/work/ushare-1.1a/po' touch stamp-po gmake[2]: Leaving directory `/usr/ports/net/ushare/work/ushare-1.1a/po' gmake[2]: Entering directory `/usr/ports/net/ushare/work/ushare-1.1a/scripts' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/usr/ports/net/ushare/work/ushare-1.1a/scripts' gmake[2]: Entering directory `/usr/ports/net/ushare/work/ushare-1.1a/src' cc -I.. -MM -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a cds.c cms.c msr.c http.c presentation.c metadata.c mime.c services.c buffer.c util_iconv.c content.c cfgparser.c trace.c redblack.c osdep.c ctrl_telnet.c ushare.c 1>.depend cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o cds.o cds.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o cms.o cms.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o msr.o msr.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o http.o http.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o presentation.o presentation.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o metadata.o metadata.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o mime.o mime.c mime.c:147:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf (protocol, mime->mime_protocol); ^~~~~~~~~~~~~~~~~~~ 1 warning generated. cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o services.o services.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o buffer.o buffer.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o util_iconv.o util_iconv.c util_iconv.c:104:22: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] if (iconv (cd, &inptr, &insize, &outptr, &outsize) == (size_t) (-1)) ^~~~~~ /usr/include/iconv.h:56:47: note: passing argument to parameter here size_t iconv(iconv_t, const char ** __restrict, ^ util_iconv.c:145:22: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] if (iconv (cd, &inptr, &insize, &outptr, &outsize) == (size_t) (-1)) ^~~~~~ /usr/include/iconv.h:56:47: note: passing argument to parameter here size_t iconv(iconv_t, const char ** __restrict, ^ 2 warnings generated. cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o content.o content.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o cfgparser.o cfgparser.c In file included from cfgparser.c:30: In file included from ./cfgparser.h:24: ./ushare.h:135:13: warning: inline function 'display_headers' is not defined [-Wundefined-inline] inline void display_headers (void); ^ cfgparser.c:316:3: note: used here display_headers (); ^ 1 warning generated. cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o trace.o trace.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o redblack.o redblack.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o osdep.o osdep.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o ctrl_telnet.o ctrl_telnet.c cc -c -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -O -pipe -I/usr/local/include -I/usr/ports/net/ushare/work/ushare-1.1a -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -I/usr/local/include/upnp -DHAVE_DLNA -o ushare.o ushare.c ushare.c:207:6: warning: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'void *' [-Wint-conversion] ip = get_ip_addr((struct sockaddr *)&request->CtrlPtIPAddr) ; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ushare.c:72: ./trace.h:32:13: warning: inline function 'start_log' is not defined [-Wundefined-inline] inline void start_log (void); ^ ushare.c:872:5: note: used here start_log (); ^ 2 warnings generated. cc cds.o cms.o msr.o http.o presentation.o metadata.o mime.o services.o buffer.o util_iconv.o content.o cfgparser.o trace.o redblack.o osdep.o ctrl_telnet.o ushare.o -L/usr/local/lib -lintl -lixml -lthreadutil -lpthread -lupnp -pthread -L/usr/local/lib -ldlna -lavformat -lavcodec -o ushare cfgparser.o: In function `parse_command_line': cfgparser.c:(.text+0x560): undefined reference to `display_headers' cfgparser.c:(.text+0x6dc): undefined reference to `display_headers' ushare.o: In function `main': ushare.c:(.text+0x12b): undefined reference to `start_log' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [ushare] Error 1 gmake[2]: Leaving directory `/usr/ports/net/ushare/work/ushare-1.1a/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/usr/ports/net/ushare/work/ushare-1.1a' *** Error code 1 Stop. make: stopped in /usr/ports/net/ushare [root@fileserver /usr/ports/net/ushare]# Regards, d.