[Mono-list] mkbundle on CentOS can't find package mono

Chris Derrick Chris.derrick at storagecraft.com
Mon Nov 21 11:01:40 EST 2011


In CentOS 6.0 I've built mono from the source code at
http://ftp.novell.com/pub/mono/sources/mono/mono-2.6.7.tar.bz2 and am now
able to run my code just fine.  Unfortunately I cannot bundle it though. 
The output suggests that I add the directory containing 'mono.pc' to the
PKG_CONFIG_PATH environment variable, but doing so did not change the output
at all.

Here is the output:

[chris at localhost Debug]$ mkbundle2 --static --deps -o testBundle
Executable.exe
OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing
restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 6 Auto-dependencies: True
  embedding: /home/chris/Executable.exe
 config from: /home/chris/Executable.exe.config
  embedding: /usr/lib/mono/2.0/mscorlib.dll
  embedding:
/home/chris/ImageManagerSVN/Trunk/ImageManager/Source/Service/bin/Debug/Licensing.dll
  embedding:
/usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
  embedding: /usr/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll
  embedding:
/usr/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
  embedding:
/usr/lib/mono/gac/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll
  embedding:
/usr/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll
  embedding:
/usr/lib/mono/gac/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
  embedding:
/usr/lib/mono/gac/System.Configuration.Install/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll
  embedding:
/usr/lib/mono/gac/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
  embedding:
/usr/lib/mono/gac/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
  embedding:
/usr/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
  embedding:
/usr/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
  embedding:
/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
  embedding:
/usr/lib/mono/gac/Mono.Posix/2.0.0.0__0738eb9f132ed756/Mono.Posix.dll
  embedding:
/usr/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
  embedding:
/usr/lib/mono/gac/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
  embedding:
/usr/lib/mono/gac/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
  embedding:
/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
  embedding:
/usr/lib/mono/gac/Mono.Data.Tds/2.0.0.0__0738eb9f132ed756/Mono.Data.Tds.dll
  embedding:
/usr/lib/mono/gac/Mono.Web/2.0.0.0__0738eb9f132ed756/Mono.Web.dll
  embedding:
/usr/lib/mono/gac/Mono.Data.Sqlite/2.0.0.0__0738eb9f132ed756/Mono.Data.Sqlite.dll
  embedding: /usr/lib/mono/gac/Npgsql/2.0.0.0__5d8b90d52f46fda7/Npgsql.dll
  embedding:
/usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
  embedding:
/usr/lib/mono/gac/Mono.WebBrowser/0.5.0.0__0738eb9f132ed756/Mono.WebBrowser.dll
  embedding:
/usr/lib/mono/gac/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
  embedding:
/usr/lib/mono/gac/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
  embedding:
/usr/lib/mono/gac/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
  embedding:
/usr/lib/mono/gac/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
Compiling:
as -o temp.o temp.s
cc -o testBundle -Wall `pkg-config --cflags mono` temp.c  `pkg-config
--libs-only-L mono` -Wl,-Bstatic -lmono -Wl,-Bdynamic `pkg-config
--libs-only-l mono | sed -e "s/\-lmono //"` temp.o
Package mono was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono' found
Package mono was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono' found
Package mono was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono' found
temp.c:2:36: error: mono/metadata/assembly.h: No such file or directory
temp.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_ImageManager_exe’
temp.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_mscorlib_dll’
temp.c:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Licensing_dll’
temp.c:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Xml_dll’
temp.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_dll’
temp.c:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Configuration_dll’
temp.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Security_dll’
temp.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_Security_dll’
temp.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Licensing_PrivateKey_dll’
temp.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Management_dll’
temp.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Configuration_Install_dll’
temp.c:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_ImageManager_Interface_dll’
temp.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_ImageManager_Server_dll’
temp.c:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Runtime_Remoting_dll’
temp.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Runtime_Serialization_Formatters_Soap_dll’
temp.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Web_dll’
temp.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Drawing_dll’
temp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Core_dll’
temp.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_Posix_dll’
temp.c:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Web_Services_dll’
temp.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_EnterpriseServices_dll’
temp.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Transactions_dll’
temp.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Data_dll’
temp.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_Data_Tds_dll’
temp.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_Web_dll’
temp.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_Data_Sqlite_dll’
temp.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Npgsql_dll’
temp.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_edtFTPnetPRO_dll’
temp.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Windows_Forms_dll’
temp.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Mono_WebBrowser_dll’
temp.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_Accessibility_dll’
temp.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Design_dll’
temp.c:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_Drawing_Design_dll’
temp.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘assembly_bundle_System_ServiceProcess_dll’
temp.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
temp.c: In function ‘install_dll_config_files’:
temp.c:116: warning: implicit declaration of function
‘mono_register_config_for_assembly’
temp.c: At top level:
temp.c:120: error: ‘NULL’ undeclared here (not in a function)
temp.c: In function ‘mono_mkbundle_init’:
temp.c:124: warning: implicit declaration of function
‘mono_register_bundled_assemblies’
temp.c:124: error: ‘bundled’ undeclared (first use in this function)
temp.c:124: error: (Each undeclared identifier is reported only once
temp.c:124: error: for each function it appears in.)
temp.c: In function ‘main’:
temp.c:216: warning: implicit declaration of function ‘mono_set_dirs’
[Fail]
[chris at localhost Debug]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/chris/bin:/home/chris/bin
[chris at localhost Debug]$ echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig/
[chris at localhost Debug]$ sudo find / -name mono.pc
/usr/local/src/mono-2.6.7/data/mono.pc
/usr/lib/pkgconfig/mono.pc

Any help would be greatly appreciatted.

--
View this message in context: http://mono.1490590.n4.nabble.com/mkbundle-on-CentOS-can-t-find-package-mono-tp4092003p4092003.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list