Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86727 - bincimap needs -without-optimization econf on osx
Summary: bincimap needs -without-optimization econf on osx
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on: 104058
Blocks:
  Show dependency tree
 
Reported: 2005-03-25 17:54 UTC by Shabba
Modified: 2008-03-01 22:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shabba 2005-03-25 17:54:58 UTC
tryig to get bincimap running via portage, as it should work on osx according to their site
initial compile failed for me (see actual results log)

I did some googling, and found this thread: http://www.bincimap.andreas.hanssen.name/archive/?0::1376
AND
 http://www.bincimap.andreas.hanssen.name/archive/?0::1383

The author posted the solution ;o))

>> ./configure --without-optimizations
>> make
>> There has historically been problems with the optimizing compiler bundled 
>> with Max OS X.
>> Andy :-)
>> Andreas Aardal Hanssen    | http://www.andreas.hanssen.name/gpg
>> Author of Binc IMAP           |  "It is better not to do something
>> http://www.bincimap.org/ |        than to do it poorly."

I changed the econf part of src_compile to:
econf `use_enable ssl ssl` --without-optimization --sysconfdir=/etc/bincimap || die
and it compiled fine then


Reproducible: Always
Steps to Reproduce:
1. keyworded bincimap for ppc-macos
2. emerge bincimap-1.2.12
3. notice compile fails
4. add --without-optimization
5. emerge again
6. compile succeeds
Actual Results:  
MacShabba:/Users/shabba root# USE="-ssl" emerge  bincimap
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/bincimap-1.2.12 to /
>>> md5 src_uri ;-) bincimap-1.2.12final.tar.bz2
>>> Unpacking source...
>>> Unpacking bincimap-1.2.12final.tar.bz2 to /var/tmp/portage/bincimap-1.2.12/work
>>> Source unpacked.
 * Applying bincimap-1.2.12-gentoo.diff ...                                                                                                 
[ ok ]
 * econf: updating bincimap-1.2.12final/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating bincimap-1.2.12final/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=powerpc-apple-darwin --mandir=/usr/share/man --infodir=/usr/
share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-ssl --
sysconfdir=/etc/bincimap
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for powerpc-apple-darwin-g++... no
checking for powerpc-apple-darwin-c++... no
checking for powerpc-apple-darwin-gpp... no
checking for powerpc-apple-darwin-aCC... no
checking for powerpc-apple-darwin-CC... no
checking for powerpc-apple-darwin-cxx... no
checking for powerpc-apple-darwin-cc++... no
checking for powerpc-apple-darwin-cl... no
checking for powerpc-apple-darwin-FCC... no
checking for powerpc-apple-darwin-KCC... no
checking for powerpc-apple-darwin-RCC... no
checking for powerpc-apple-darwin-xlC_r... no
checking for powerpc-apple-darwin-xlC... no
checking for g++... g++
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 g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for powerpc-apple-darwin-gcc... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for sys/wait.h that is POSIX.1 compatible... yes
checking --prefix... using /usr
checking --bindir... /usr/bin
checking --sysconfdir... using /etc/bincimap
checking --localstatedir... using /var/lib
checking --datadir... using /usr/share
checking wether to include /usr/kerberos/include... not necessary
checking wether to compile static or shared... shared
checking wether to compile with optimization... yes
checking for dlopen in -ldl... yes
checking whether -lsocket is available... no
checking for OpenSSL includes... .
checking for OpenSSL libraries... .
checking whether O_LARGEFILE is defined... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating conf/Makefile
config.status: creating conf/xinetd-bincimap
config.status: creating conf/bincimap.conf
config.status: creating conf/xinetd-bincimaps
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating doc/manual/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/authenticators/Makefile
config.status: creating service/log/Makefile
config.status: creating service/Makefile
config.status: creating service/run
config.status: creating service/log/run
config.status: creating service/run-ssl
config.status: creating service/log/run-ssl
config.status: creating src/Makefile
config.status: creating bincimap.spec
config.status: creating README
config.status: creating config.h
config.status: executing default-1 commands
make  all-recursive
Making all in conf
make[2]: Nothing to be done for `all'.
Making all in contrib
Making all in authenticators
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in doc
Making all in manual
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in man
make[2]: Nothing to be done for `all'.
Making all in service
Making all in log
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -fno-exceptions -O2 -I. -c address.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -fno-exceptions -O2 -I. -c argparser.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -fno-exceptions -O2 -I. -c authenticate.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -fno-exceptions -O2 -I. -c base64.cc
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h: In member function 
   `bool Binc::CommandLineArgs::parse(int, char**)':
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -fno-exceptions -O2 -I. -c bincimapd.cc
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
/usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/atomicity.h:65: error: `asm' 
   operand requires impossible reload
make[2]: *** [argparser.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

!!! ERROR: net-mail/bincimap-1.2.12 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Fabian Groffen gentoo-dev 2005-08-28 12:03:12 UTC
bincimap needs checkpassword, which does not compile with all of its USE flags,
hence cannot compile bincimap.


WARNING:
this is stuff greatly involved with the notorious D.J. Bernstein.
Comment 2 Fabian Groffen gentoo-dev 2008-03-01 22:10:16 UTC
killing this bug due to DJB and its outdatedness