Hi,
I was trying to install libmapi's Phaser release on a Fedora 9 box today and it
failed while linking the mapitest :
(used installsamba4.sh all)
[libmapi-0.7-PHASER]$ ./autogen.sh
./autogen.sh: running aclocal
./autogen.sh: running autoheader
./autogen.sh: running autoconf
Now run ./configure --prefix=path_to_samba and make
[libmapi-0.7-PHASER]$ ./configure --prefix=/usr/local/samba
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for uint_t... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for pidl... /usr/bin/pidl
checking for flex... flex
checking for /usr/local/samba/include/samba/version.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for TALLOC... yes
checking for SAMBA... yes
checking for LDB... yes
checking for bison... /usr/bin/bison
checking for SAMR... yes
checking for poptFreeContext in -lpopt... yes
checking for magic_open in -lmagic... yes
checking for smbtorture... /usr/local/samba/bin/smbtorture
checking for doxygen... /usr/bin/doxygen
configure: creating ./config.status
config.status: creating Makefile
config.status: creating swig/perl/Makefile
config.status: creating libmapi.pc
config.status: creating libmapiadmin.pc
config.status: creating libocpf.pc
config.status: creating Doxyfile
config.status: creating libmapi/Doxyfile
config.status: creating libocpf/Doxyfile
config.status: creating config.h
config.status: config.h is unchanged
===============================================================
OpenChange Configuration (Please review)
* Install:
- prefix: /usr/local/samba
* OpenChange MAPI library: yes
* OpenChange Libraries:
- libmapiadmin: yes
- libocpf: yes
* OpenChange Tools:
- openchangeclient: yes
- mapiprofile: yes
- openchangepfadmin: yes
- exchange2mbox: yes
- mapitest: yes
- openchangemapidump: yes
- schemaIDGUID: yes
- locale_codepage: yes
* OpenChange Torture Suite: yes
* OpenChange Documentation: yes
* OpenChange SWIG Bindings:
- Perl: no
===============================================================
[libmapi-0.7-PHASER]$ make
Parsing libmapi/conf/mapi-properties
Generating libmapi/mapitags.h
Generating libmapi/mapitags.c
Generating mapitags_enum.h
Parsing libmapi/conf/mapi-codes
Generating libmapi/mapicode.h
Generating libmapi/mapicode.c
Generating mapicodes_enum.h
Parsing libmapi/conf/mapi-named-properties
Generating libmapi/mapi_nameid_private.h
Generating exchange.h
Compiling exchange.idl
exchange.idl:876: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:972: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1020: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1234: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1617: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1623: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1643: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1659: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1739: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2033: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2034: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:240: warning: [out] argument `settings' not a pointer
exchange.idl:242: warning: [out] argument `unknown' not a pointer
exchange.idl:524: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:540: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:564: warning: [out] argument `org_group' not a pointer
exchange.idl:564: warning: top-level [out] pointer `org_group' is not a [ref]
pointer
exchange.idl:565: warning: [out] argument `user' not a pointer
exchange.idl:565: warning: top-level [out] pointer `user' is not a [ref] pointer
exchange.idl:2031: warning: [out] argument `size' not a pointer
exchange.idl:2032: warning: [out] argument `offset' not a pointer
Generating gen_ndr/ndr_exchange.h
Compiling exchange.idl
exchange.idl:876: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:972: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1020: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1234: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1617: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1623: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1643: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1659: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1739: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2033: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2034: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:240: warning: [out] argument `settings' not a pointer
exchange.idl:242: warning: [out] argument `unknown' not a pointer
exchange.idl:524: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:540: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:564: warning: [out] argument `org_group' not a pointer
exchange.idl:564: warning: top-level [out] pointer `org_group' is not a [ref]
pointer
exchange.idl:565: warning: [out] argument `user' not a pointer
exchange.idl:565: warning: top-level [out] pointer `user' is not a [ref] pointer
exchange.idl:2031: warning: [out] argument `size' not a pointer
exchange.idl:2032: warning: [out] argument `offset' not a pointer
./script/mkversion.sh: 'libmapi/version.h' created for OpenChange libmapi("0.7
(Phaser)")
Generating gen_ndr/ndr_exchange_c.h
Compiling exchange.idl
exchange.idl:876: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:972: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1020: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1234: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1617: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1623: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1643: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1659: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:1739: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2033: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:2034: warning: subcontext() is deprecated. Use represent_as() or
transmit_as() instead
exchange.idl:240: warning: [out] argument `settings' not a pointer
exchange.idl:242: warning: [out] argument `unknown' not a pointer
exchange.idl:524: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:540: warning: top-level [out] pointer `RowSet' is not a [ref]
pointer
exchange.idl:564: warning: [out] argument `org_group' not a pointer
exchange.idl:564: warning: top-level [out] pointer `org_group' is not a [ref]
pointer
exchange.idl:565: warning: [out] argument `user' not a pointer
exchange.idl:565: warning: top-level [out] pointer `user' is not a [ref] pointer
exchange.idl:2031: warning: [out] argument `size' not a pointer
exchange.idl:2032: warning: [out] argument `offset' not a pointer
Generating libmapi/proto.h
Compiling libmapi/IABContainer.c with -fPIC
Compiling libmapi/IProfAdmin.c with -fPIC
Compiling libmapi/IMAPIContainer.c with -fPIC
Compiling libmapi/IMAPIFolder.c with -fPIC
Compiling libmapi/IMAPIProp.c with -fPIC
Compiling libmapi/IMAPISession.c with -fPIC
Compiling libmapi/IMAPISupport.c with -fPIC
Compiling libmapi/IStream.c with -fPIC
Compiling libmapi/IMAPITable.c with -fPIC
Compiling libmapi/IMessage.c with -fPIC
Compiling libmapi/IMsgStore.c with -fPIC
Compiling libmapi/IStoreFolder.c with -fPIC
Compiling libmapi/IUnknown.c with -fPIC
Compiling libmapi/IMSProvider.c with -fPIC
Compiling libmapi/IXPLogon.c with -fPIC
Compiling libmapi/utils.c with -fPIC
Compiling libmapi/property.c with -fPIC
Compiling libmapi/cdo_mapi.c with -fPIC
Compiling libmapi/lzfu.c with -fPIC
Compiling libmapi/mapi_object.c with -fPIC
Compiling libmapi/mapi_id_array.c with -fPIC
Compiling libmapi/mapitags.c with -fPIC
Compiling libmapi/mapidump.c with -fPIC
Compiling libmapi/mapicode.c with -fPIC
Compiling libmapi/mapi_nameid.c with -fPIC
Compiling libmapi/emsmdb.c with -fPIC
Compiling libmapi/nspi.c with -fPIC
Compiling libmapi/simple_mapi.c with -fPIC
Compiling libmapi/util/lcid.c with -fPIC
Compiling libmapi/util/codepage.c with -fPIC
Compiling libmapi/x500.c with -fPIC
Compiling ndr_mapi.c with -fPIC
Compiling gen_ndr/ndr_exchange.c with -fPIC
Compiling gen_ndr/ndr_exchange_c.c with -fPIC
Compiling libmapi/socket/interface.c with -fPIC
Compiling libmapi/socket/netif.c with -fPIC
Generating libmapi/utf8_convert.yy.c
Compiling libmapi/utf8_convert.yy.c with -fPIC
<stdout>:1795: warning: ‘yyunput’ defined but not used
<stdout>:1838: warning: ‘input’ defined but not used
Linking libmapi.so.0.7
Generating libocpf/proto.h
Generating libocpf/ocpf.tab.c
Compiling libocpf/ocpf.tab.c with -fPIC
Generating libocpf/lex.yy.c
Compiling libocpf/lex.yy.c with -fPIC
Compiling libocpf/ocpf_public.c with -fPIC
Compiling libocpf/ocpf_dump.c with -fPIC
Compiling libocpf/ocpf_api.c with -fPIC
Compiling libocpf/ocpf_write.c with -fPIC
Linking libocpf.so.0.7
Generating libmapiadmin/proto.h
Compiling libmapiadmin/mapiadmin_user.c with -fPIC
Compiling libmapiadmin/mapiadmin.c with -fPIC
Linking libmapiadmin.so.0.7
Compiling utils/openchangepfadmin.c
Linking bin/openchangepfadmin
Compiling utils/mapitest/mapitest.c
Compiling utils/mapitest/mapitest_common.c
Compiling utils/mapitest/mapitest_print.c
Compiling utils/mapitest/mapitest_calls.c
Compiling utils/mapitest/mapitest_calls_ring1.c
Compiling utils/mapitest/mapitest_calls_ring2.c
Compiling utils/mapitest/mapitest_calls_ring3.c
Compiling utils/mapitest/mapitest_calls_ring4.c
Linking bin/mapitest
/usr/bin/ld: warning: libdcerpc_samr.so.0, needed by libmapiadmin.so.0.7, not
found (try using -rpath or -rpath-link)
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_Connect'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_OpenUser'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_LookupDomain'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_SetUserInfo'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_OpenDomain'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_GetUserPwInfo'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_LookupNames'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_DeleteUser'
libmapiadmin.so.0.7: undefined reference to `dcerpc_samr_CreateUser2'
collect2: ld returned 1 exit status
make: *** [bin/mapitest] Error 1
Looks like libdcerpc_samr.so is available under /usr/local/samba/lib/:
(It's missing the .0 as indicated in the warning above though (i.e.
libdcerpc_samr.so)
$ ls -al /usr/local/samba/lib/libdcerpc_sam*
lrwxrwxrwx 1 root root 23 2008-05-29 00:05 libdcerpc_samr.so ->
libdcerpc_samr.so.0.0.1
-rwxr-xr-x 1 root root 9558727 2008-05-29 00:05 libdcerpc_samr.so.0.0.1
Can anyone spot what I'm doing wrong here??
Thanks!
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel