Re: [Banshee-List] Installing 2.9.1: Syntax error: "(" unexpected in autogen.sh



On 13 September 2017 at 23:06, Sharky <simondedman gmail com> wrote:
Thanks again, notes as I go:

git submodule done, though no response message so maybe it's already alright
or no response message happens by default.

gudev-sharp-3.0-cil-dev seems not to be a thing but
https://launchpad.net/ubuntu/+source/gudev-sharp-3.0 suggests it should be
libgudev3.0-cil and libgudev3.0-cil-dev. Installed both.

cool - that should sort it out.

This is crazy. I feel I'm going in circles and somehow backwards. I now have
banshee-2.9.1 and banshee arfbtwn form folders in home, the former from the
more recent git checkout, the latter from previous hacking. Autogen in the
2.9.1 folder fails due to:

I'd get rid of the 2.9.1 folder altogether since it needs patching to
build. FYI you don't need a separate directory to manage multiple
remotes with git - "man git-remote" will give you more information.

Checking for Mono 2.0 GAC for Mono.Posix.dll... not found
configure: error: missing required Mono 2.0 assembly: Mono.Posix.dll

which I definitely solved earlier. Autogen.sh in the fork folder fails with:

configure: error: Package requirements (gstreamer-sharp-1.0 >= 0.99.0) were
not met:
No package 'gstreamer-sharp-1.0' found

Which again I thought I solved already. Did ./configure --enable-gst-native

sounds like you had a stale configure script lying around - autogen.sh
generates the configure script so usually re-running that would
resolve the problem. The generic autoreconf tool doesn't work on
master branch yet. (see feature/build, there's a pull-request or it)

banshee-2.9.2

  Build Environment
    Install Prefix:        /usr
    Datadir:               /usr/local/share
    Libdir:                /usr/local/lib

    C Compiler:            /bin/bash /home/simon/banshee arfbtwn
fork/build/m4/shave/shave cc gcc
    Mono C# Compiler:      /bin/bash /home/simon/banshee arfbtwn
fork/build/m4/shave/shave mcs /usr/bin/mcs
    Mono Runtime:          /usr/bin/mono
    Gtk#:                  2.99.4

  Media/Graphics:
    GStreamer# backend:    no
    GStreamer C backend:   yes
    Clutter:               no

  Operating System/Desktop Environment:
    GNOME Support:         yes
    OSX Support:           no

  Digital Audio Player (DAP) Support:
    Apple Device:          yes (libgpod-sharp)
    Karma:                 no
    Mass Storage:          yes
    MTP:                   yes

  Extra Features:
    Web Browser:           no (webkitgtk-3.0 >= 1.2.2, libsoup-2.4 >= 2.42)
    DAAP:                  yes
    GIO Backend:           yes (gio-sharp >= 2.99)
    GIO Hardware:          yes (gudev-sharp >= 3.0)
    YouTube:               yes (gdata-sharp >= 1.4)
    Sound Menu:            no
    Ubuntu One Store:      no (ubuntuone-sharp >= 0.9.2)
    UPnP:                  yes (mono-upnp >= 0.1)
    Boo Scripting:         no (boo >= 0.8.1)

  Build/Development:
    Unit Tests:            yes (nunit >= 2.5)
    API Docs:              yes (monodocer and mdassembler)
    User Help:             yes (gnome-doc-utils >= 0.17.3)
    Release Build:         no
    Vendor Build ID:       git-checkout

Difference from before: gudev-sharp added. Make fails as before.
On a hunch ("/bin/bash: /home/simon/banshee: No such file or directory") I
renamed /banshee arfbtwn fork to /banshee-arfbtwn-fork, redid the
./configure with flags, then redid make.

Got further this time. Errors now:

./Notifications/Notification.cs(145,16): error CS1043: Invalid accessor body
`=>', expecting `;' or `{'
./Notifications/Notification.cs(153,16): error CS1043: Invalid accessor body
`=>', expecting `;' or `{'
./Notifications/Notification.cs(161,16): error CS1043: Invalid accessor body
`=>', expecting `;' or `{'
./Notifications/Notification.cs(169,16): error CS1043: Invalid accessor body
`=>', expecting `;' or `{'
./Notifications/Notification.cs(169,68): warning CS0658: `value' is invalid
attribute target. All attributes in this attribute section will be ignored
./Notifications/Notification.cs(172,16): error CS1014: A get or set accessor
expected
./Notifications/Notification.cs(177,18): error CS1519: Unexpected symbol
`=>' in class, struct, or interface member declaration
./Notifications/Notification.cs(177,38): error CS1519: Unexpected symbol `('
in class, struct, or interface member declaration
./Notifications/Notification.cs(177,60): error CS1519: Unexpected symbol `)'
in class, struct, or interface member declaration
./Notifications/Notification.cs(177,77): error CS1519: Unexpected symbol
`category' in class, struct, or interface member declaration
./Notifications/Notification.cs(177,88): error CS1519: Unexpected symbol `.'
in class, struct, or interface member declaration
./Notifications/Notification.cs(177,94): error CS1519: Unexpected symbol `;'
in class, struct, or interface member declaration
./Notifications/Notification.cs(180,15): error CS1525: Unexpected symbol
`Pixbuf'
./Notifications/Notification.cs(181,12): error CS1525: Unexpected symbol
`set'
./Notifications/Notification.cs(182,16): error CS1525: Unexpected symbol
`SetPixbufHint'
./Notifications/Notification.cs(183,35): error CS1525: Unexpected symbol `;'
./Notifications/Notification.cs(185,13): error CS1514: Unexpected symbol
`}', expecting `.' or `{'
./Notifications/Notification.cs(188,15): error CS1525: Unexpected symbol
`string'
Compilation failed: 17 error(s), 1 warnings
Makefile:1010: recipe for target '../../../bin/Notifications.dll' failed
make[4]: *** [../../../bin/Notifications.dll] Error 1
Makefile:546: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:547: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:640: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:568: recipe for target 'all' failed
make: *** [all] Error 2


Any thoughts or guesses appreciated as ever. Thanks again.

actually - this is a recent improvement to formally internalise a
system library that usually isn't available as a package, bit like
gstreamer-sharp. Anyway, the C# compiler on my system must allow
language level 6 by default so I didn't think any auto-tools update
was needed where it might be. Just in case it's due to stale files I'd
try resetting with git and autogenning again - I find it odd that your
system's compiler doesn't support that by default, it's not exactly
new...

If that doesn't help (it probably won't) the other option is to
explicitly set the MCS environment variable to a compatible compiler,
"man mcs" should provide some information about what's on your system.
(although that's probably what's already in use)

As a heads up - after merging I quickly added the Notifications
project reference in the B.SoundMenu extension's project file but I
made a mistake when doing so, just remove and re-add that reference to
resolve that if you want to build it using the project file. I need to
add a commit to resolve that.

You're pretty much there at this point - give yourself a pat on the back :)

Ps. When the PPA is setup it really will be just a case of executing
apt-get build-dep banshee.

-- 
Registered Linux User #392373


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]