Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
Ok, I have been trying this morning and I think I solved some issues: First: export LD_LIBRARY_PATH=/usr/lib:/usr/lib64/samba4/lib export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/samba4/lib64/pkgconfig/:/usr/share/pkgconfig Then: pkg-config --cflags libmapi This gives me: [code] -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -Wl,-rpath,/usr/lib64/samba4/lib64 -I/usr/lib64/samba4/include [/code] However I have never user pkg-config so I have no idea if above is good OR bad. Do I need to run ./configure now or. I know my questions might sound dumb but I really appreciate your help. Regards, Bas Milan Crha wrote: On Mon, 2011-05-16 at 10:35 -0700, tudstudent wrote: export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/samba/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/samba/lib/pkgconfig: $PREFIX/share/pkgconfig then: pkg-config --cflags libmapi This delivers the next error: Package talloc was not found in the pkg-config search path. Perhaps you should add the directory containing `talloc.pc' to the PKG_CONFIG_PATH environment variable Package 'talloc', required by 'MAPI', not found This package is installed. Hi, good, then you know where to look next. Solve this and it'll work for you. I cannot tell you anything more than the pkg-config does, the message is self-describing. By the way, I thought it's obvious but it seems it wasn't, in those two exports at the beginning, you should replace $PREFIX with a prefix where your samba4 is installed, probably /usr if you do not compile it yourself. Also check the paths exist for you, or change them accordingly to your system/setup. Bye, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers -- View this message in context: http://old.nabble.com/Compile-Evolution-Mapi-3.1.1--%3E-Error-on-libmapi.h-tp31626288p31635495.html Sent from the Gnome - Evolution - Dev mailing list archive at Nabble.com. ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
On Sun, 2011-05-15 at 22:39 -0700, tudstudent wrote: ... When compiling evolution-mapi-3.1.1 I get stuck with the following error: ... exchange-mapi-connection.c: In function 'exchange_mapi_util_get_attachments': exchange-mapi-connection.c:1272:5: warning: passing argument 2 of 'cast_SPropValue' from incompatible pointer type /usr/include/libmapi/libmapi.h:262:11: note: expected 'struct mapi_SPropValue *' but argument is of type 'struct SPropValue *' exchange-mapi-connection.c:1272:5: error: too few arguments to function 'cast_SPropValue' /usr/include/libmapi/libmapi.h:262:11: note: declared here ... The file libmapi.h is present and is from the latest openchange (0.10). Hi, is it possible you've installed two different libmapi.h or openchange versions, thus the configure part was done against a different openchange version? The 3.1.x, same as 3.0.x and couple versions before, has conditional compilations for detecting when to use what, and this API change is part of this detection. Could you check what has your config.h and config.log in the evo-mapi build directory and what signature the cast_SPropValue function of libmapi.h is, please? Bye, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
Milan Crha wrote: On Sun, 2011-05-15 at 22:39 -0700, tudstudent wrote: ... When compiling evolution-mapi-3.1.1 I get stuck with the following error: ... exchange-mapi-connection.c: In function 'exchange_mapi_util_get_attachments': exchange-mapi-connection.c:1272:5: warning: passing argument 2 of 'cast_SPropValue' from incompatible pointer type /usr/include/libmapi/libmapi.h:262:11: note: expected 'struct mapi_SPropValue *' but argument is of type 'struct SPropValue *' exchange-mapi-connection.c:1272:5: error: too few arguments to function 'cast_SPropValue' /usr/include/libmapi/libmapi.h:262:11: note: declared here ... The file libmapi.h is present and is from the latest openchange (0.10). Hi, is it possible you've installed two different libmapi.h or openchange versions, thus the configure part was done against a different openchange version? The 3.1.x, same as 3.0.x and couple versions before, has conditional compilations for detecting when to use what, and this API change is part of this detection. Could you check what has your config.h and config.log in the evo-mapi build directory and what signature the cast_SPropValue function of libmapi.h is, please? Bye, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers When I check for multiple versions of libmapi: code locate libmapi.h /usr/include/libmapi/libmapi.h /code So I have only 1 libmapi.h installed on my system. Furthermore I have looked into libmapi.h: uint32_tcast_SPropValue(TALLOC_CTX *, struct mapi_SPropValue *, struct SPropValue *); I hope I give you correct information. I did not understand what you wanted to have so I tried my best. What do you want with config.log and the other (better said what do I need to check specificly). -- View this message in context: http://old.nabble.com/Compile-Evolution-Mapi-3.1.1--%3E-Error-on-libmapi.h-tp31626288p31626473.html Sent from the Gnome - Evolution - Dev mailing list archive at Nabble.com. ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
On Sun, 2011-05-15 at 23:33 -0700, tudstudent wrote: So I have only 1 libmapi.h installed on my system. Furthermore I have looked into libmapi.h: uint32_tcast_SPropValue(TALLOC_CTX *, struct mapi_SPropValue *, struct SPropValue *); I hope I give you correct information. I did not understand what you wanted to have so I tried my best. What do you want with config.log and the other (better said what do I need to check specificly). OK, so your openchange has the mem_ctx parameter, which makes sense. Search the config.log file for SPropValue string. It'll give you two checks with its description and two defines. Mine defines are: #define HAVE_MEMCTX_ON_CAST_SPROPVALUE 1 #define HAVE_MEMCTX_ON_CAST_MAPI_SPROPVALUE 1 The same defines should be defined in config.h. Is it possible your evo-mapi compilation doesn't use correct config.h? I suppose you have those two defines defined same as I do. Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
Okey, maybe it makes sense to describe how I run the package: ./configure CFLAGS=-I/usr/lib64/samba4/include make (which delivers me the errors) code configure:14060: result: no configure:14063: checking libmapi cast_SPropValue function with three params configure:14078: gcc -o conftestconftest.c 5 In file included from conftest.c:30:0: /usr/include/libmapi/libmapi.h:49:20: fatal error: dcerpc.h: No such file or directory compilation terminated. configure:14078: $? = 1 configure: failed program was: | /* confdefs.h */ /code code | #include libmapi/libmapi.h | int | main () | { | cast_SPropValue (NULL, NULL, NULL) | ; | return 0; | } configure:14089: result: no configure:14092: checking libmapi cast_mapi_SPropValue function with three params configure:14107: gcc -o conftestconftest.c 5 In file included from conftest.c:30:0: /usr/include/libmapi/libmapi.h:49:20: fatal error: dcerpc.h: No such file or directory compilation terminated. configure:14107: $? = 1 configure: failed program was: | /* confdefs.h */ /code Milan Crha wrote: On Sun, 2011-05-15 at 23:33 -0700, tudstudent wrote: So I have only 1 libmapi.h installed on my system. Furthermore I have looked into libmapi.h: uint32_tcast_SPropValue(TALLOC_CTX *, struct mapi_SPropValue *, struct SPropValue *); I hope I give you correct information. I did not understand what you wanted to have so I tried my best. What do you want with config.log and the other (better said what do I need to check specificly). OK, so your openchange has the mem_ctx parameter, which makes sense. Search the config.log file for SPropValue string. It'll give you two checks with its description and two defines. Mine defines are: #define HAVE_MEMCTX_ON_CAST_SPROPVALUE 1 #define HAVE_MEMCTX_ON_CAST_MAPI_SPROPVALUE 1 The same defines should be defined in config.h. Is it possible your evo-mapi compilation doesn't use correct config.h? I suppose you have those two defines defined same as I do. Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers -- View this message in context: http://old.nabble.com/Compile-Evolution-Mapi-3.1.1--%3E-Error-on-libmapi.h-tp31626288p31627272.html Sent from the Gnome - Evolution - Dev mailing list archive at Nabble.com. ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
On Mon, 2011-05-16 at 01:45 -0700, tudstudent wrote: Okey, maybe it makes sense to describe how I run the package: ./configure CFLAGS=-I/usr/lib64/samba4/include make (which delivers me the errors) ... /usr/include/libmapi/libmapi.h:49:20: fatal error: dcerpc.h: No such file or Try with these set: export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/samba/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig: $PREFIX/samba/lib/pkgconfig:$PREFIX/share/pkgconfig Then you might be able to get sane results when invoking: $ pkg-config --cflags libmapi which should cover your -I too (by the way, it might not be in lib64). Hope that helps, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
Oke, this is what i did with above message: export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/samba/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/samba/lib/pkgconfig:$PREFIX/share/pkgconfig then: pkg-config --cflags libmapi This delivers the next error: Package talloc was not found in the pkg-config search path. Perhaps you should add the directory containing `talloc.pc' to the PKG_CONFIG_PATH environment variable Package 'talloc', required by 'MAPI', not found This package is installed. Milan Crha wrote: On Mon, 2011-05-16 at 01:45 -0700, tudstudent wrote: Okey, maybe it makes sense to describe how I run the package: ./configure CFLAGS=-I/usr/lib64/samba4/include make (which delivers me the errors) ... /usr/include/libmapi/libmapi.h:49:20: fatal error: dcerpc.h: No such file or Try with these set: export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/samba/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig: $PREFIX/samba/lib/pkgconfig:$PREFIX/share/pkgconfig Then you might be able to get sane results when invoking: $ pkg-config --cflags libmapi which should cover your -I too (by the way, it might not be in lib64). Hope that helps, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers -- View this message in context: http://old.nabble.com/Compile-Evolution-Mapi-3.1.1--%3E-Error-on-libmapi.h-tp31626288p31631218.html Sent from the Gnome - Evolution - Dev mailing list archive at Nabble.com. ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Compile Evolution-Mapi 3.1.1 - Error on libmapi.h
On Mon, 2011-05-16 at 10:35 -0700, tudstudent wrote: export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/samba/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/samba/lib/pkgconfig: $PREFIX/share/pkgconfig then: pkg-config --cflags libmapi This delivers the next error: Package talloc was not found in the pkg-config search path. Perhaps you should add the directory containing `talloc.pc' to the PKG_CONFIG_PATH environment variable Package 'talloc', required by 'MAPI', not found This package is installed. Hi, good, then you know where to look next. Solve this and it'll work for you. I cannot tell you anything more than the pkg-config does, the message is self-describing. By the way, I thought it's obvious but it seems it wasn't, in those two exports at the beginning, you should replace $PREFIX with a prefix where your samba4 is installed, probably /usr if you do not compile it yourself. Also check the paths exist for you, or change them accordingly to your system/setup. Bye, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers