Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

No rule to make target `SparkleAnnouncement.cs' on Ubuntu 2012.04 #886

Closed
nicolas-raoul opened this Issue · 11 comments

3 participants

@nicolas-raoul

On Ubuntu 2012.04
I can compile sparkleshare-linux-0.9.0.tar.gz and run it successfully,
but as of 9e653b1 (2012-07-30) I get the error below (scroll to bottom):

nico@t520:~/src/SparkleShare$ make clean; ./configure --prefix=/usr; make
Making clean in SparkleShare
Making clean in Common
Making clean in Pixmaps
Making clean in Plugins
Making clean in HTML
Making clean in .
Making clean in Linux
Making clean in Pixmaps
Making clean in icons
Making clean in ubuntu-mono-light
Making clean in ubuntu-mono-dark
Making clean in .
Making clean in .
Making clean in Nautilus
Making clean in .
Making clean in .
Making clean in SparkleLib/Git
Making clean in SparkleLib
Making clean in build
Making clean in m4
Making clean in .
Making clean in .
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_MODULE... yes
checking for mono... /usr/bin/mono
checking for dmcs... /usr/bin/dmcs
checking for Mono 4.0 GAC for System.dll... found
checking for Mono 4.0 GAC for System.Security.dll... found
checking for Mono 4.0 GAC for Mono.Posix.dll... found
checking for NOTIFY_SHARP... yes
checking for GTKSHARP... yes
checking for GLIBSHARP... yes
checking for GLIBSHARP_2_12_7... yes
checking for GTKSHARP_A11Y... yes
checking for WEBKIT_SHARP... yes
checking for NOTIFY_SHARP... yes
checking for APP_INDICATOR... yes
checking for NAUTILUS_PYTHON... no
checking for NAUTILUS3_PYTHON... yes
checking for sed... sed
configure: creating ./config.status
config.status: creating build/Makefile
config.status: creating build/m4/Makefile
config.status: creating build/m4/shave/shave
config.status: creating build/m4/shave/shave-libtool
config.status: creating SparkleLib/Defines.cs
config.status: creating SparkleLib/Makefile
config.status: creating SparkleLib/Git/Makefile
config.status: creating SparkleShare/Common/Makefile
config.status: creating SparkleShare/Common/HTML/Makefile
config.status: creating SparkleShare/Common/Plugins/Makefile
config.status: creating SparkleShare/Common/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-dark/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-light/Makefile
config.status: creating SparkleShare/Linux/sparkleshare
config.status: creating SparkleShare/Linux/Nautilus/Makefile
config.status: creating SparkleShare/Linux/Nautilus/sparkleshare-nautilus-extension.py
config.status: creating SparkleShare/Linux/Nautilus/sparkleshare-nautilus3-extension.py
config.status: creating SparkleShare/Makefile
config.status: creating Makefile

SparkleShare 0.9.1

Configuration:
Prefix : /usr
Build Gtk+ UI :
Nautilus 2.x plugin : no
Nautilus 3.x plugin : yes

Making all in build
Making all in m4
Making all in SparkleLib
make[1]: *** No rule to make target SparkleAnnouncement.cs', needed by../bin/SparkleLib.dll'. Stop.
make: *** [all-recursive] Error 1

@hbons
Owner

I don't see any references to this file anymore... Maybe there are some stale build files? Try doing a fresh clone?

@nicolas-raoul

Sorry, I have mixed up my experiments yesterday, actually the error is with AssemblyInfo.cs.
I tried both with a new clone, and with the ZIP at https://github.com/hbons/SparkleShare/zipball/master , same result:

nico@t520:~/src/hbons-SparkleShare-59c279d$ make
Making all in build
Making all in m4
Making all in SparkleLib
MCS ../bin/SparkleLib.dll
Making all in SparkleLib/Git
MCS ../../bin/SparkleLib.Git.dll
Making all in SparkleShare
Making all in Linux
Making all in Nautilus
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
make[3]: *** No rule to make target '../../SparkleLib/AssemblyInfo.cs', needed by '../../bin/SparkleShare.exe'. Stop.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

@hbons
Owner

Really don't know about this one. There's nothing referring to AssemblyInfo.cs.

@ghettodev

It's been happening to me in on 12.04 for a couple weeks. Clean checkout:

➜  SparkleShare git:(master) make
Making all in Linux
Making all in Nautilus
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
make[2]: *** No rule to make target `../../SparkleLib/AssemblyInfo.cs', needed by `../../bin/SparkleShare.exe'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

grep -ir 'AssemblyInfo.cs' ./

./build/build.rules.mk:# If no such file is specified, the default AssemblyInfo.cs is used.
./build/build.rules.mk:         echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleShare/Linux/Makefile.in:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleShare/Linux/Makefile.in:               echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleShare/Linux/Makefile:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleShare/Linux/Makefile:          echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleShare/Makefile.in:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleShare/Makefile.in:             echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleShare/Windows/SparkleShareInviteOpener/SparkleShareInviteOpener.csproj:    <Compile Include="Properties\AssemblyInfo.cs" />
./SparkleShare/Makefile:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleShare/Makefile:                echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleLib/Makefile.in:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleLib/Makefile.in:               echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleLib/Git/Makefile.in:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleLib/Git/Makefile.in:           echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleLib/Git/Makefile:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleLib/Git/Makefile:              echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
./SparkleLib/Makefile:# If no such file is specified, the default AssemblyInfo.cs is used.
./SparkleLib/Makefile:          echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
@nicolas-raoul

There are references to AssemblyInfo, even before building anything:

nico@t520:/tmp/test$ git clone git://github.com/hbons/SparkleShare.git
Cloning into 'SparkleShare'...
remote: Counting objects: 17827, done.
remote: Compressing objects: 100% (4867/4867), done.
remote: Total 17827 (delta 13160), reused 17392 (delta 12761)
Receiving objects: 100% (17827/17827), 25.88 MiB | 568 KiB/s, done.
Resolving deltas: 100% (13160/13160), done.
nico@t520:/tmp/test$ cd SparkleShare; grep -iR AssemblyInfo *
build/build.rules.mk:# If no such file is specified, the default AssemblyInfo.cs is used.
build/build.rules.mk:       echo "$(top_srcdir)/SparkleLib/AssemblyInfo.cs"; \
SparkleShare/Windows/SparkleShareInviteOpener/SparkleShareInviteOpener.csproj:    <Compile Include="Properties\AssemblyInfo.cs" />
@nicolas-raoul

I fixed 3 errors, in this new branch:
https://github.com/nicolas-raoul/SparkleShare/commits/issue886
It is my first time touching C# code so please let me know if I am doing bizarre things :-)

There are syntax errors that make me think that nobody has compiled this code for some time.

There are still a lot of errors to fix:

./SparkleController.cs(35,24): error CS0103: The name `SparkleHelpers' does not exist in the current context
./SparkleSetup.cs(72,70): error CS1061: Type `SparkleShare.SparkleSetupController' does not contain a definition for `GuessedUserName' and no extension method `GuessedUserName' of type `SparkleShare.SparkleSetupController' could be found (are you missing a using directive or an assembly reference?)
./SparkleSetup.cs(72,48): error CS0122: `Gtk.Entry.Entry(GLib.GType)' is inaccessible due to its protection level
./SparkleUI.cs(50,35): error CS0117: `SparkleLib.Defines' does not contain a definition for `GETTEXT_PACKAGE'
./SparkleUI.cs(50,60): error CS0117: `SparkleLib.Defines' does not contain a definition for `LOCALE_DIR'
./SparkleUI.cs(50,21): error CS1502: The best overloaded method match for `Mono.Unix.Catalog.Init(string, string)' has some invalid arguments
./SparkleUI.cs(50,21): error CS1503: Argument `#1' cannot convert `object' expression to type `string'
@hbons
Owner

@nicolas-raoul I know how to fix these. Will grab the other fix from your branch.

@hbons hbons closed this in 93bdac1
@ghettodev

Clean checkout from master:

Making all in build
Making all in m4
Making all in SparkleLib
  MCS   ../bin/SparkleLib.dll
Making all in SparkleLib/Git
  MCS   ../../bin/SparkleLib.Git.dll
Making all in SparkleShare
Making all in Linux
Making all in Nautilus
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
  MCS   ../../bin/SparkleShare.exe
./SparkleSetup.cs(690,98): error CS1525: Unexpected symbol `)', expecting `,' or `;'
./SparkleStatusIcon.cs(291,8): error CS1525: Unexpected symbol `}', expecting `;'
Compilation failed: 2 error(s), 0 warnings
make[3]: *** [../../bin/SparkleShare.exe] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
@hbons hbons referenced this issue from a commit
@hbons linux: Fix compile errors. #886 d099cf3
@nicolas-raoul

Thanks for the pull!
I just tried compiling from latest Git.
I don't think this issue should have been closed, as the errors remain as described in my previous comment #886 (comment)

@ghettodev

Same here.

@nicolas-raoul

Thanks for the fixes Hylke, it compile and installs fine now :-)
Nicolas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.