Bug 315996 (MONO65710) - Bug mcs error when using -pkg and --
Summary: Bug mcs error when using -pkg and --
Status: RESOLVED FIXED
Alias: MONO65710
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2004-09-10 21:52 UTC by José Alexandre Antunes Faria
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (1.61 KB, patch)
2004-09-30 02:12 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:53:17 UTC


---- Reported by spigaz@hotmail.com 2004-09-10 14:52:59 MST ----

Description of Problem:
The mcs compiler gives an error when using at the same time -pkg:gtk-sharp
and --.

Steps to reproduce the problem:
1. Compile a class that requires gtk-sharp "mcs -pkg:gtk-sharp -- Main.cs"
2. 
3. 

Actual Results:
error CS2001: Source file '-r:/usr/lib/mono/gtk-sharp/glib-sharp.dll' could
not be opened
error CS2001: Source file '-r:/usr/lib/mono/gtk-sharp/pango-sharp.dll'
could not be opened
error CS2001: Source file '-r:/usr/lib/mono/gtk-sharp/atk-sharp.dll' could
not be opened
error CS2001: Source file '-r:/usr/lib/mono/gtk-sharp/gdk-sharp.dll' could
not be opened
error CS2001: Source file '-r:/usr/lib/mono/gtk-sharp/gtk-sharp.dll' could
not be opened
Compilation failed: 5 error(s), 0 warnings


Expected Results:
Compilation succeeded


How often does this happen? 
Always

Additional Information:
It compiles fine using mcs -pkg:gtk-sharp Main.cs
Sample Main.cs:

using Gtk;

class MainClass {
        public static void Main(string[] args)
        {
                Application.Init ();
                Window window = new Window("Test");
                Application.Run ();
        }
}



---- Additional Comments From jluke@cfl.rr.com 2004-09-29 19:12:23 MST ----

Created an attachment (id=166758)
proposed patch




---- Additional Comments From miguel@ximian.com 2004-12-12 13:21:40 MST ----

John, this patch looks good.

Do you mind commiting the patch?



---- Additional Comments From jluke@cfl.rr.com 2004-12-12 14:14:35 MST ----

I dont mind, its in svn.

Imported an attachment (id=166758)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Gentoo 2.6.7</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".