#101 Failure to compile - ‘JSScript’ with no type

open
nobody
None
5
2011-12-16
2011-12-16
trevor
No

In file included from ../src/scripting/playlist_parser_script.h:36,
from ../src/content_manager.h:46,
from ../src/autoscan.cc:38:
../src/scripting/script.h:69: error: ISO C++ forbids declaration of ‘JSScript’ with no type
../src/scripting/script.h:69: error: expected ‘;’ before ‘*’ token
../src/scripting/script.h:70: error: ISO C++ forbids declaration of ‘JSScript’ with no type
../src/scripting/script.h:70: error: expected ‘;’ before ‘*’ token
../src/scripting/script.h:118: error: ISO C++ forbids declaration of ‘JSScript’ with no type
../src/scripting/script.h:118: error: expected ‘;’ before ‘*’ token
../src/scripting/script.h:119: error: ‘JSScript’ has not been declared
make[2]: *** [libmediatomb_a-autoscan.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

% gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Discussion

  • trevor
    trevor
    2011-12-16

    Full config and make

     

  • Anonymous
    2012-12-16

    Same or similar issue on Fedora 17:

    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I/usr/include/ffmpeg -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -I/usr/include/taglib -pthread -I/usr/include/ffmpeg -g -O2 -MT libmediatomb_a-autoscan.o -MD -MP -MF .deps/libmediatomb_a-autoscan.Tpo -c -o libmediatomb_a-autoscan.o `test -f '../src/autoscan.cc' || echo './'`../src/autoscan.cc
    In file included from ../src/zmm/zmm.h:37:0,
    from ../src/zmmf/zmmf.h:35,
    from ../src/autoscan.h:36,
    from ../src/autoscan.cc:36:
    ../src/zmm/object.h:51:32: error: declaration of ‘operator new’ as non-function
    ../src/zmm/object.h:51:27: error: expected ‘;’ at end of member declaration
    ../src/zmm/object.h:51:39: error: expected ‘)’ before ‘size’
    In file included from ../src/scripting/playlist_parser_script.h:36:0,
    from ../src/content_manager.h:46,
    from ../src/autoscan.cc:38:
    ../src/scripting/script.h:69:5: error: ‘JSScript’ does not name a type
    ../src/scripting/script.h:70:5: error: ‘JSScript’ does not name a type
    ../src/scripting/script.h:118:5: error: ‘JSScript’ does not name a type
    ../src/scripting/script.h:119:19: error: ‘JSScript’ has not been declared
    make[2]: *** [libmediatomb_a-autoscan.o] Error 1

    # gcc --version
    gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)

    CONFIGURATION SUMMARY ----

    sqlite3 : yes
    mysql : yes
    libjs : yes
    libmagic : yes
    inotify : yes
    libexif : yes
    id3lib : disabled
    taglib : yes
    libmp4v2 : yes
    ffmpeg : yes
    ffmpegthumbnailer : yes
    lastfmlib : yes
    external transcoding : yes
    curl : yes
    YouTube : yes
    libextractor : disabled
    db-autocreate : yes