https://bugzilla.novell.com/show_bug.cgi?id=634839
https://bugzilla.novell.com/show_bug.cgi?id=634839#c0 Summary: MKBundle fails(ungraceful) when zlib.h is not present. Classification: Mono Product: Mono: Compilers Version: 2.4.x Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Other. AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E) MKBundle needs zlib.h (probably more?) to compress(parameter -z) the binary. zlib.h is referenced but never checked if it actually exists. The compiling then fails. Suggestion: include a check and fail with message if it doesn't exist. Or amend the info text of the parameter to explain that zlib.h needs to be present and is not delivered with Mono. (Perhaps it is, and I'm missing a package. I can't tell.) Reproducible: Always Steps to Reproduce: 1. Create assembly 2. bundle it: mkbundle -z ASSEMBLY.exe 3. Actual Results: OS is: Linux Sources: 1 Auto-dependencies: False embedding: assembly.exe compression ratio: 40.29% Compiling: as -o temp.o temp.s cc -ggdb -o a.out -Wall temp.c `pkg-config --cflags --libs mono` -lz temp.o temp.c:28:18: error: zlib.h: No such file or directory temp.c:31: warning: type defaults to 'int' in declaration of 'Byte' temp.c:31: error: expected ';', ',' or ')' before '*' token temp.c: In function 'mono_mkbundle_init': temp.c:68: error: 'Bytef' undeclared (first use in this function) temp.c:68: error: (Each undeclared identifier is reported only once temp.c:68: error: for each function it appears in.) temp.c:68: error: 'buffer' undeclared (first use in this function) temp.c:82: error: 'uLong' undeclared (first use in this function) temp.c:82: error: expected ';' before 'real_size' temp.c:83: error: 'uLongf' undeclared (first use in this function) temp.c:83: error: expected ';' before 'zsize' temp.c:87: error: 'real_size' undeclared (first use in this function) temp.c:88: error: 'zsize' undeclared (first use in this function) temp.c:89: error: expected expression before ')' token temp.c:90: warning: implicit declaration of function 'my_inflate' [Fail] Expected Results: bundle the files and compress them... System is Linux, Debian Lenny. Maybe not all Mono packages are installed? I'm not the admin, nor experienced enough with Linux, I'm just a user :-( -- Configure bugmail: https://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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
