[Pianod] Ubuntu 12.04 compile error
Steven Adeff
adeffs.mythtv at gmail.com
Tue Apr 9 08:18:06 PDT 2013
sorry for the delayed response, answer below. I'll give the attachment
in your other email a try and get back to you
On Sun, Apr 7, 2013 at 10:10 AM, Michael R. Hines <michael at hinespot.com> wrote:
> $ sudo apt-get install libjson0-dev
$ sudo apt-get install libjson0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjson0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
> On Sun, 2013-04-07 at 09:00 -0400, Perette Barella wrote:
>> The linker isn't finding the json library. pkg-config should indicate where it comes from if you run:
>>
>> pkg-config --libs json
$ pkg-config --libs json
-ljson
>> Please post the output of that and the contents of config.log. I'd like to see why the ./configure script didn't do this right, or at least complain about the dependency and stop.
ac_cv_header_arpa_inet_h=yes
ac_cv_header_crypt_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_gcrypt_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_netdb_h=yes
ac_cv_header_netinet_in_h=yes
ac_cv_header_stdbool_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_socket_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_ao_ao_play=yes
ac_cv_lib_faad_NeAACDecOpen=yes
ac_cv_lib_gcrypt_gcry_cipher_open=yes
ac_cv_lib_gnutls_gnutls_record_recv=yes
ac_cv_lib_mad_mad_stream_init=no
ac_cv_lib_pthread_pthread_create=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_crypt=-lcrypt
ac_cv_search_fgetln=no
ac_cv_search_pow=-lm
ac_cv_type__Bool=yes
ac_cv_type_size_t=yes
ac_cv_type_ssize_t=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_ar_interface=ar
pkg_cv_json_CFLAGS='-I/usr/include/json '
pkg_cv_json_LIBS='-ljson '
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/adeffs/Downloads/pianod-135/missing --run aclocal-1.12'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AUTOCONF='${SHELL} /home/adeffs/Downloads/pianod-135/missing --run autoconf'
AUTOHEADER='${SHELL} /home/adeffs/Downloads/pianod-135/missing --run autoheader'
AUTOMAKE='${SHELL} /home/adeffs/Downloads/pianod-135/missing --run automake-1.12
'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2 -std=c99'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
HAVE_FGETLN_FALSE=''
HAVE_FGETLN_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS='-lcrypt -lfaad -lao -lgnutls -lgcrypt -lpthread -lm '
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/adeffs/Downloads/pianod-135/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='pianod'
PACKAGE_BUGREPORT='pianod at lists.deviousfish.com'
PACKAGE_NAME='pianod'
PACKAGE_STRING='pianod 135'
PACKAGE_TARNAME='pianod'
PACKAGE_URL='http://deviousfish.com/pianod'
PACKAGE_VERSION='135'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='135'
ac_ct_AR='ar'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/adeffs/Downloads/pianod-135/install-sh'
json_CFLAGS='-I/usr/include/json '
json_LIBS='-ljson '
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "pianod"
#define PACKAGE_TARNAME "pianod"
#define PACKAGE_VERSION "135"
#define PACKAGE_STRING "pianod 135"
#define PACKAGE_BUGREPORT "pianod at lists.deviousfish.com"
#define PACKAGE_URL "http://deviousfish.com/pianod"
#define PACKAGE "pianod"
#define VERSION "135"
#define HAVE_LIBPTHREAD 1
#define HAVE_LIBGCRYPT 1
#define HAVE_LIBGNUTLS 1
#define HAVE_LIBAO 1
#define HAVE_LIBFAAD 1
#define ENABLE_FAAD 1
#define HAVE_IPV6 1
#define HAVE_MSG_NOSIGNAL 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_ARPA_INET_H 1
#define HAVE_FCNTL_H 1
#define HAVE_CRYPT_H 1
#define HAVE_GCRYPT_H 1
#define HAVE_LIMITS_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_UNISTD_H 1
#define HAVE__BOOL 1
#define HAVE_STDBOOL_H 1
#define restrict __restrict
#define HAVE_STDLIB_H 1
#define HAVE_MALLOC 1
#define HAVE_STDLIB_H 1
#define HAVE_REALLOC 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMSET 1
#define HAVE_POW 1
#define HAVE_SELECT 1
#define HAVE_SOCKET 1
#define HAVE_STRCASECMP 1
#define HAVE_STRCHR 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRRCHR 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define NDEBUG 1
configure: exit 0
>> In the short term, if you can figure out where the json libraries are, fix json_LIBS in src/Makefile and try again. Note if you rerun ./configure for some reason it'll clobber this change.
>>
>> Perette
>>
>>
>>
>> --
>> Perette Barella • perette at barella.org • 585-286-1312
>> 176 Middlesex Road, Rochester NY 14610
>>
>> On 2013年04月07日, at 7:35, Steven Adeff wrote:
>>
>> > anyone know why/how this is happening and how to resolve it?
>> > thanks!
>> >
>> > $ make
>> > ...
>> > mv -f .deps/pianod-users.Tpo .deps/pianod-users.Po
>> > gcc -g -O2 -std=c99 -ljson -o pianod pianod-command.o
>> > pianod-logging.o pianod-pianod.o pianod-pianoextra.o pianod-player.o
>> > pianod-query.o pianod-response.o pianod-seeds.o pianod-settings.o
>> > pianod-support.o pianod-tuner.o pianod-users.o
>> > libwaitress/libwaitress.a libpiano/libpiano.a
>> > libfootball/libfootball.a libezxml/libezxml.a -lcrypt -lfaad -lao
>> > -lgnutls -lgcrypt -lpthread -lm
>> > libpiano/libpiano.a(libpiano_a-request.o): In function `PianoRequest':
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:49: undefined
>> > reference to `json_object_new_object'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:451:
>> > undefined reference to `json_object_to_json_string'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:462:
>> > undefined reference to `json_object_put'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:396:
>> > undefined reference to `json_object_new_string'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:396:
>> > undefined reference to `json_object_object_add'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:444:
>> > undefined reference to `json_object_new_string'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:444:
>> > undefined reference to `json_object_object_add'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:446:
>> > undefined reference to `json_object_new_int'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:446:
>> > undefined reference to `json_object_object_add'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:73: undefined
>> > reference to `json_object_new_string'
>> > /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:73: undefined
>> > reference to `json_object_object_add'
>> ...
>>
>> _______________________________________________
>> Pianod mailing list
>> Pianod at lists.deviousfish.com
>> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
--
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette - http://www.mythtv.org/wiki/Mailing_List_etiquette
More information about the Pianod
mailing list