Opened 13 years ago

Closed 13 years ago

#516 closed defect (fixed)

Improper gacutil.exe commands when make install for Xapian bindings in Windows

Reported by: DDB Owned by: Olly Betts
Priority: normal Milestone: 1.2.5
Component: Xapian-bindings Version: 1.2.3
Severity: blocker Keywords:
Cc: Blocked By:
Blocking: Operating System: Microsoft Windows

Description

I would like to use Xapian and C# on a Windows Server 2003 box, with .NET 3.5. I was able to download, configure and install xapian-core-1.2.3, but am having trouble with the xapian-bindings-1.2.3.

I am able to configure and make the bindings (--with-csharp, --with-php), but when I run make install, I get the following error: "unknown option: /package...[install-data-local] Error 1..."

I was able to trace the problem to the following line in xapian-bindings-1.2.3\csharp\Makefile: "install-data-local: $(ASSEMBLY).dll

$(GACUTIL) /i $(ASSEMBLY).dll /f /package $(ASSEMBLY) /gacdir $(libdir) /root $(DESTDIR)$(libdir)"

Neither "/package", "/gacdir", nor "/root" are recognizable commands for gacutil.exe in .NET 1.1, 2.0, 3.5, or 4. The available commands can be found at: http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.71).aspx.

Given the available commands for gacutil, how should I modify the above lines in the csharp\Makefile to ensure a successful installation of the bindings?

Please let me know if you need additional info.

Thanks in advance!

Change History (4)

comment:1 by Olly Betts, 13 years ago

Status: newassigned

I'm no expert in this area, but I think you can probably just remove everything from /package to the end of the line - these options are used by Mono's gacutil, but it seems the Microsoft one doesn't have any equivalents.

What's your environment here incidentally (shell + compiler)?

comment:2 by Olly Betts, 13 years ago

Milestone: 1.2.x

Assuming we just drop these options for Microsoft's gacutil (or change them for some others), we can add a configure test to see which we have, and fix this in 1.2.x, so setting milestone accordingly.

comment:3 by Olly Betts, 13 years ago

Milestone: 1.2.x1.2.5

Hi, did you get a chance to try the change suggested in the first comment?

If that works, this should be easy to fix...

comment:4 by Olly Betts, 13 years ago

Resolution: fixed
Status: assignedclosed

Committed a fix in r15395.

Note: See TracTickets for help on using tickets.