make -j2 'LDLIBS+= -pthread' powerpc-apple-darwin9-gcc -O2 -pipe-mcpu=G4 -mtune=G4 -fPIC -c mdb.c powerpc-apple-darwin9-gcc -O2 -pipe-mcpu=G4 -mtune=G4 -fPIC -c midl.c mdb.c: In function ‘mdb_env_open’: mdb.c:4232: error: ‘O_DSYNC’ undeclared (first use in this function) mdb.c:4232: error: (Each undeclared identifier is reported only once mdb.c:4232: error: for each function it appears in.) Makefile:67: recipe for target 'mdb.o' failed make: *** [mdb.o] Error 1 ____________ This seems to be a known problem; found this at MacPorts: http://trac.macports.org/ticket/35467 INFO: Portage 2.2.14-prefix (python 3.3.3-final-0, prefix/darwin/macos/10.5/ppc, gcc-4.2.1, unavailable, 9.8.0 Power Macintosh) ================================================================= System Settings ================================================================= System uname: Darwin-9.8.0-Power_Macintosh-powerpc-32bit Timestamp of tree: Sat, 29 Nov 2014 10:03:39 +0000 distcc 2.18.5-Apple.1 powerpc-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.1-r2 dev-lang/python: 2.7.8, 3.2.5-r3, 3.3.3 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-devel/autoconf: 2.69 sys-devel/automake: 1.12.4, 1.14.1 sys-devel/gcc-config: 1.8-r1 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.1-r1 Repositories: gentoo_prefix ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc-apple-darwin9" CFLAGS=" -O2 -pipe-mcpu=G4 -mtune=G4" CHOST="powerpc-apple-darwin9" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS=" -O2 -pipe-mcpu=G4 -mtune=G4" DISTDIR="/Volumes/GENTOO/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" MAKEOPTS="-j2" PKGDIR="/Volumes/GENTOO/usr/portage/packages" PORTAGE_CONFIGROOT="/Volumes/GENTOO/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Volumes/GENTOO/var/tmp" PORTDIR="/Volumes/GENTOO/usr/portage" PORTDIR_OVERLAY="" USE="animgif apng aqua autotrace bzip2 coreaudio corefonts cracklib cxx fftw fontconfig gif graphviz hdri ipv6 jbig jpeg jpeg2k lcms lzma modules ncurses nls objc objc++ openldap openmp pango perl png postscript ppc-macos prefix q32 q64 q8 readline ssh ssl svg tiff truetype unicode webp wmf xml xpm zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON BUILD LOG: [32;01m * [39;49;00mPackage: dev-db/lmdb-0.9.14 [32;01m * [39;49;00mRepository: gentoo_prefix [32;01m * [39;49;00mMaintainer: eras@gentoo.org ldap-bugs@gentoo.org [32;01m * [39;49;00mUSE: elibc_Darwin kernel_Darwin ppc-macos prefix userland_GNU [32;01m * [39;49;00mFEATURES: nostrip preserve-libs userpriv usersandbox >>> Unpacking source... >>> Unpacking lmdb-0.9.14.tar.gz to /Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work >>> Source unpacked in /Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work >>> Preparing source in /Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work/mdb-mdb/libraries/liblmdb ... >>> Source prepared. >>> Configuring source in /Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work/mdb-mdb/libraries/liblmdb ... >>> Source configured. >>> Compiling source in /Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work/mdb-mdb/libraries/liblmdb ... make -j2 'LDLIBS+= -pthread' powerpc-apple-darwin9-gcc -O2 -pipe-mcpu=G4 -mtune=G4 -fPIC -c mdb.c powerpc-apple-darwin9-gcc -O2 -pipe-mcpu=G4 -mtune=G4 -fPIC -c midl.c mdb.c: In function ‘mdb_env_open’: mdb.c:4502: error: ‘O_DSYNC’ undeclared (first use in this function) mdb.c:4502: error: (Each undeclared identifier is reported only once mdb.c:4502: error: for each function it appears in.) powerpc-apple-darwin9-gcc -O2 -pipe-mcpu=G4 -mtune=G4 -c mdb_stat.c Makefile:69: recipe for target 'mdb.o' failed make: *** [mdb.o] Error 1 make: *** Waiting for unfinished jobs.... [31;01m*[0m ERROR: dev-db/lmdb-0.9.14::gentoo_prefix failed (compile phase): [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=dev-db/lmdb-0.9.14::gentoo_prefix'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-db/lmdb-0.9.14::gentoo_prefix'`. [31;01m*[0m The complete build log is located at '/Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/temp/environment'. [31;01m*[0m Working directory: '/Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work/mdb-mdb/libraries/liblmdb' [31;01m*[0m S: '/Volumes/GENTOO/var/tmp/portage/dev-db/lmdb-0.9.14/work/mdb-mdb/libraries/liblmdb' Reproducible: Always
I fixed this by adding a CFLAG defining O_DSYNC.
ld: unknown option: -soname collect2: ld returned 1 exit status Makefile:55: recipe for target 'liblmdb.so' failed make: *** [liblmdb.so] Error 1 make: *** Waiting for unfinished jobs.... Undefined symbols for architecture ppc: "_posix_memalign", referenced from: _mdb_env_copyfd2 in liblmdb.a(mdb.o) ld: symbol(s) not found for architecture ppc When I brought this up on the openldap bug list, I was informed that lmdb should not be installed separately from openldap: >>> LMDB should not be pulled separately from OpenLDAP. I.e., only the >>> bundled >>> version of LMDB should be used with a given version of OpenLDAP. >> >> I've already had this conversation with the gentoo maintainers; they >> refuse to listen to reason. It's all their problem now. http://www.openldap.org/lists/openldap-bugs/201501/msg00095.html Suggestions or recommendations? How can I install openldap without it trying to pull in lmdb? Thanks.
How is this with 0.9.19?
Hi Fabian-- Thanks for checking in. My PPC died a long time ago; I'm now working with a Mac Pro Tower and I moved over to MacPorts which just seemed more logical for the older OSes. Thanks for all your help over the years! I had a good run with Gentoo!
ok :) thanks for all your efforts over the years!