[Mono-bugs] [Bug 630000] New: mkbundle fails unable to find glib.h

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 10 11:22:24 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=630000

http://bugzilla.novell.com/show_bug.cgi?id=630000#c0


           Summary: mkbundle fails unable to find glib.h
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: duane at wandless.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: ---


# mono --version
Mono JIT compiler version 2.6.7 (tarball Wed Jul 14 11:57:56 MDT 2010)

Create a simple hello world CS app.  gmcs this into an executable.

# cd /Library/Frameworks/Mono.framework/
# find . -name glib.h
/Versions/2.6.7/include/glib-2.0/glib.h


# AS="as -arch i386" mkbundle2 -o hello main.exe --deps
(same issue with just mkbundle)
(AS export is required)

OS is: Darwin
Sources: 1 Auto-dependencies: True
   embedding: ..../junk/main.exe
   embedding:
/Library/Frameworks/Mono.framework/Versions/2.6.7/lib/mono/2.0/mscorlib.dll
Compiling:
as -arch i386 -o temp.o temp.s 
cc -g -o hello -Wall temp.c `pkg-config --cflags --libs mono`  temp.o
In file included from temp.c:2:
/Library/Frameworks/Mono.framework/Versions/2.6.7/include/mono-1.0/mono/metadata/assembly.h:4:18:
error: glib.h: No such file or directory
In file included from
/Library/Frameworks/Mono.framework/Versions/2.6.7/include/mono-1.0/mono/metadata/assembly.h:6,
                 from temp.c:2:
/Library/Frameworks/Mono.framework/Versions/2.6.7/include/mono-1.0/mono/metadata/image.h:9:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
. omitted ...
/Library/Frameworks/Mono.framework/Versions/2.6.7/include/mono-1.0/mono/metadata/assembly.h:84:
error: expected declaration specifiers or ‘...’ before ‘gpointer’
temp.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘extern’
temp.c:5: error: ‘assembly_data_main_exe’ undeclared here (not in a function)
[Fail]

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list