Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2014 16:59:47 +0800
From:      Dean Hollister <deanhollister@bigpond.com>
To:        <ports@FreeBSD.org>
Subject:   FreeBSD Port: ushare-1.1a_9
Message-ID:  <CF4A2CAE.13029%deanhollister@bigpond.com>

next in thread | raw e-mail | index | archive | help
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.
 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CF4A2CAE.13029%deanhollister>