database.c: In function `CeReadRecordProps': database.c:371: warning: cast from pointer to integer of different size database.c:378: warning: cast from pointer to integer of different size database.c: In function `PreparePropValForWriting': database.c:414: warning: cast to pointer from integer of different size database.c:443: warning: cast to pointer from integer of different size make[3]: *** [database.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -Wsign-compare -Wno-long-long -Werror -ansi -march=k8 -pipe -O2 -Isupport -march=k8 -pipe -O2 -MT file_management.lo -MD -MP -MF .deps/file_management.Tpo -c file_management.c -fPIC -DPIC -o .libs/file_management.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -Wsign-compare -Wno-long-long -Werror -ansi -march=k8 -pipe -O2 -Isupport -march=k8 -pipe -O2 -MT file_management.lo -MD -MP -MF .deps/file_management.Tpo -c file_management.c -o file_management.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.0/work/synce-librapi2-0.9.0/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.0/work/synce-librapi2-0.9.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.0/work/synce-librapi2-0.9.0' make: *** [all] Error 2
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r5 x86_64) ================================================================= System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2" DISTDIR="/mnt/nfs_dist" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.citkit.ru/pub/Linux/gentoo http://mirror.aiya.ru/pub/gentoo/ ftp://mirror.aiya.ru/pub/gentoo/" LANG="ru_RU.koi8r" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://192.168.2.1/gentoo-portage" USE="X alsa amd64 audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl dvd dvdread eds emboss encode expat fam foomaticdb fortran gif glut gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg lcms lzw lzw-tiff mng mp3 mpeg ncurses nls nptl nvidia opengl pam pdflib perl png python quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales xine xml2 xmms xpm xv zlib linguas_ru userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
I don't think this is the same error... but 0.9.2 isn't building for me on amd64 either... /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -g -Wall -Wsign-compare -Wno-long-long -I../src -I../src/support -march=athlon64 -O2 -pipe -msse3 -o pcp pcommon.o pcp.o ../src/librapi.la -lsynce /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -g -Wall -Wsign-compare -Wno-long-long -I../src -I../src/support -march=athlon64 -O2 -pipe -msse3 -o pls pcommon.o pls.o ../src/librapi.la -lsynce mkdir .libs x86_64-pc-linux-gnu-gcc -g -Wall -Wsign-compare -Wno-long-long -I../src -I../src/support -march=athlon64 -O2 -pipe -msse3 -o .libs/pls pcommon.o pls.o ../src/.libs/librapi.so /usr/lib64/libsynce.so ../src/.libs/librapi.so: undefined reference to `_CeWriteRecordProps' ../src/.libs/librapi.so: undefined reference to `_CeReadRecordProps' collect2: ld returned 1 exit status make[3]: *** [pls] Error 1 make[3]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-gcc -g -Wall -Wsign-compare -Wno-long-long -I../src -I../src/support -march=athlon64 -O2 -pipe -msse3 -o .libs/pcp pcommon.o pcp.o ../src/.libs/librapi.so /usr/lib64/libsynce.so ../src/.libs/librapi.so: undefined reference to `_CeWriteRecordProps' ../src/.libs/librapi.so: undefined reference to `_CeReadRecordProps' collect2: ld returned 1 exit status make[3]: *** [pcp] Error 1 make[3]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.2/work/librapi-0.9.2/tools' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.2/work/librapi-0.9.2/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/synce-librapi2-0.9.2/work/librapi-0.9.2' make: *** [all] Error 2 !!! ERROR: app-pda/synce-librapi2-0.9.2 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 609: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info: Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r9 x86_64) ================================================================= System uname: 2.6.16-suspend2-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.15 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac aim alsa apache2 automount avi berkdb bitmap-fonts bzip2 cdr cli crypt cups dlloader dri dv dvd dvdr dvdread eds emboss encode esd fbcon ffmpeg firefox foomaticdb fortran gif gnome gphoto2 gpm gstreamer gtk gtk2 hal howl icq imagemagick imlib ipv6 irc isdnlog jabber java jpeg lj lzw lzw-tiff mad mono mp3 mpeg msn ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre pda pdf pdflib perl png pppd python qt qt3 quicktime readline reflection rss samba sdl session sndfile spell spl ssl tcpd tiff truetype-fonts type1-fonts usb vcd vorbis xine xinerama xml xmms xorg xpm xv yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
I've the same problem as you, Todd, also on amd64. So I started to find out something about the link error: ../src/.libs/librapi.so /usr/lib64/libsynce.so ../src/.libs/librapi.so: undefined reference to `_CeWriteRecordProps' ../src/.libs/librapi.so: undefined reference to `_CeReadRecordProps' collect2: ld returned 1 exit status My first idea was to run "find $workdir$/librapi2-0.9.2/ | xargs grep -i cewriterecordprops" Output is the following, if that helps: ../src/rapi/database.c:CEOID _CeWriteRecordProps( HANDLE hDbase, CEOID oidRecord , WORD cPropID, CEPROPVAL* rgPropVal)/*{{{*/ ../src/rapi/database.c: * Format of the CeWriteRecordProps packet - primit ives are encoded in the CEPROPVAL structures, lpwstr and blob properties are ../src/rapi/rapi_api.h:CEOID _CeWriteRecordProps( ../src/rapi2.c: NULL, /* CeWriteRecordProps * / Binary file ../src/rapi2.o matches Binary file ../src/.libs/rapi2.o matches Binary file ../src/.libs/librapi.so.2 matches Binary file ../src/.libs/librapi.a matches Binary file ../src/.libs/rapi_indirection.o matches Binary file ../src/.libs/librapi.so.2.0.0 matches Binary file ../src/.libs/rapi.o matches Binary file ../src/.libs/librapi.so matches ../src/rapi_indirection.c:CEOID CeWriteRecordProps( ../src/rapi_indirection.c: return ( *context->rapi_ops->CeWriteRecordProps ) ( ../src/rapi_indirection.h: CEOID ( *CeWriteRecordProps ) ( Binary file ../src/rapi_indirection.o matches ../src/rapi.c: &_CeWriteRecordProps, /* CeWriteRecordProps */ ../src/rapi.h:CEOID CeWriteRecordProps( Binary file ../src/rapi.o matches ../TODO:o Fix bug in CeWriteRecordProps ../tests/rapi/CeCreateDatabase.cpp: TEST_NOT_FALSE(write_record = Ce WriteRecordProps(database, 0, 1, &write_values[i])); ../tests/rapi/CeCreateDatabase.cpp: TEST_NOT_FALSE(record = CeWriteRecordPro ps(database, 0, VALUE_COUNT, write_values)); Binary file ../tests/rapi/CeCreateDatabase.o matches I'll do some further research, but actually i've no clue how to fix it or how to write a patch. Please help. By the way: http://bugs.gentoo.org/show_bug.cgi?id=135060 says something about the slang-package, which is required by libsynce. librapi needs this lib, i think and i haven't slang installed. I'll try remerging libsynce with slang installed and then remerge librapi, but maybe it really is some spelling-mistake in the sources.
just to mention it: synce-librapi2-0.9.1 works fine on amd64.
The code is "ifdef"ed out for amd64. In src/rapi/database.c lines 290+ #if SIZEOF_VOID_P == 4 ... #endif The SIZEOF_VOID_P is 8 in rapi_config.h. Chris
*** Bug 141628 has been marked as a duplicate of this bug. ***
*** Bug 148956 has been marked as a duplicate of this bug. ***
Try with 0.9.2 and report back, please.
synce-librapi2-0.9.2 compiled cleanly, but can't test because i already wiped wince from my ipaq. but now app-pda/synce-gnomevfs-0.2 fails. this should go into a seperate bugreport, i guess. :-/ i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"gnome-vfs-synce-module\" -DPACKAGE_TARNAME=\"gnome-vfs-synce-module\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"gnome-vfs-synce-module 0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"gnome-vfs-synce-module\" -DVERSION=\"0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include -I/usr/include -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/gnome-vfs-module-2.0 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c libsyncevfs.c -MT libsyncevfs.lo -MD -MP -MF .deps/libsyncevfs.TPlo -fPIC -DPIC -o .libs/libsyncevfs.lo libsyncevfs.c: In function 'get_file_attributes': libsyncevfs.c:515: error: invalid lvalue in assignment libsyncevfs.c:528: error: invalid lvalue in assignment libsyncevfs.c:531: error: invalid lvalue in assignment libsyncevfs.c:535: error: invalid lvalue in assignment libsyncevfs.c: In function 'get_root_attributes': libsyncevfs.c:564: error: invalid lvalue in assignment libsyncevfs.c:570: error: invalid lvalue in assignment make[1]: *** [libsyncevfs.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/synce-gnomevfs-0.2/work/synce-gnomevfs-0.2/src' make: *** [all-recursive] Error 1 !!! ERROR: app-pda/synce-gnomevfs-0.2 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile synce-gnomevfs-0.2.ebuild, line 20: Called die
Created attachment 106157 [details, diff] fixes synce-librapi2-0.9.2 build error on amd64 synce-librapi2-0.9.2 doesn't compile on amd64, requires this patch taken from PLD Linux http://lists.pld-linux.org/mailman/pipermail/pld-cvs-commit/Week-of-Mon-20061211/132870.html
Er, never mind. synce-librapi-0.9.3 compiles fine unpatched! http://bugs.gentoo.org/show_bug.cgi?id=159958