

This should tell you.manouchk wrote: See `config.log' for more details.

I'm compiling again (it takes times!) in order to get the config.log again.# emerge --info
* Overlay eclass overrides eclass from PORTDIR:
*
* '/usr/local/sci/eclass/fortran.eclass'
*
* It is best to avoid overridding eclasses from PORTDIR because it will
* trigger invalidation of cached ebuild metadata that is distributed with
* the portage tree. If you must override eclasses from PORTDIR then you
* are advised to run `emerge --regen` after each time that you run `emerge
* --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
* would like to disable this warning.
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.50GHz
Timestamp of tree: Sun, 23 Mar 2008 20:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python: 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/portage_distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://gentoo.virginmedia.com/sites/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="en fr pt_BR"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/science /usr/portage/local/layman/xeffects /usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X aac acl acpi aim alsa audiofile avahi bash-completion berkdb blas bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emacs emboss encode esd ethereal evo exif fam ffmpeg fftw firefox flac foomaticdb fortran ftp gcj gdbm gif gphoto2 gpm gstreamer gtk gtk2 h323 hal iconv ieee1394 imagemagick imap ipv6 isdnlog jabber jpeg jpeg2k kde kdexdelta kerberos lapack ldap lirc mad maildir matroska mbox memlimit midi mikmod mmx mng mp3 mpeg msn mudflap ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pcre pdf perl plotutils png ppds pppd python qt qt3 qt3support qt4 quicktime readline recode reflection samba scanner sdl session sndfile sox speex spell spl sse sse2 ssl svg symlink tcpd tetex threads tiff truetype unicode usb v4l vcd vorbis wifi win32codecs wmf x86 xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr pt_BR" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
more /usr/local/portage/sci-physics/objcryst-fox/objcryst-fox-1.7.5.1-r962.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils flag-o-matic toolchain-funcs
MY_P=Fox-${PV}-R962
#S= ${WORKDIR}/${MY_P}
DESCRIPTION="ObjCryst++ : object-oriented Crystallographic Library, for the analysis of Crystal str
uctures from scattering experiments: optimized scattering computation, Graphical interface for stru
ctures and data, global optimization algorithms"
HOMEPAGE="http://objcryst.sourceforge.net"
SRC_URI="mirror://sourceforge/objcryst/Fox-${PV}-R962.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc opt"
RDEPEND="x11-libs/gtk+
x11-base/xorg-x11
media-libs/mesa"
DEPEND="${RDEPEND}"
if use opt; then
einfo "using optimized flags"
replace-flags -O2 -O3
append-flags -w -ffast-math -fstrict-aliasing -pipe -fomit-frame-pointer -funroll-loops
if [ "`gcc-major-version`" -ge "4" ]; then
einfo "ading vectorisation because gcc-version>4"
append-flags -ftree-vectorize
fi
fi
src_compile() {
cd "${WORKDIR}/${MY_P}/Fox"
if use doc; then
emake doc || "make doc failed"
fi
emake || die "make failed"
}
src_install() {
cd "${WORKDIR}/${MY_P}/Fox"
#install binary Fox
dobin src/Fox
#install doc
if use doc; then
dodoc README LICENSE ChangeLog
dohtml src-doc/*
fi
# Install the examples
insinto /usr/share/${PF}/examples/
doins -r example/*
}





Code: Select all
CXXFLAGS='-I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst/.. -I./ -I/include -I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst -I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../static-libs/include -DOBJCRYST_GL -I/usr/X11R6/include -IGL -DHAVE_GLUT -D__WX__CRYST__ `/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst/../static-libs/bin/wx-config --cxxflags` -DHAVE_FFTW '
Code: Select all
$ more configure|grep -i cxxflags
CXXFLAGS
CXXFLAGS
CXXFLAGS C++ compiler flags
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
CXXFLAGS=""
CXXFLAGS="-g"
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
CXXFLAGS="-g -O2"
CXXFLAGS="-g"
CXXFLAGS="-O2"
CXXFLAGS=
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
CXXFLAGS!$CXXFLAGS$ac_delim



Exactly. Thank you. Let say if I cna localise the problem tonightslycordinator wrote:Like I said, the configure works fine when the whole thing is run from a terminal/shell. The configure script has something in it that uses backticks which only function correctly in a terminal. Since portage isn't running the configure inside a terminal the backticks don't function (which is the expected result).
So maybe send a message to the upstream devs about it. Or see if you can patch the confgure script yourself.

It definitely is not working well. I tried to understand the meaning of $(VAR) ${VAR}...--- Fox-1.7.5.3-R973.orig/ObjCryst/rules-gnu.mak 2008-03-30 20:42:14.000000000 +0000
+++ Fox-1.7.5.3-R973/ObjCryst/rules-gnu.mak 2008-03-31 01:45:28.000000000 +0000
@@ -36,10 +36,20 @@
# header files
SEARCHDIRS = -I${DIR_CRYST}/.. -I./ -I$(DIR_TAU)/include -I${DIR_CRYST} -I$(DIR_STATIC_LIBS)/include
+#Use static linking to wx and freeglut libraries ?
+ifneq ($(shared),1)
+WXCONFIG= $(DIR_CRYST)/../static-libs/bin/wx-config
+else
+WXCONFIG= /usr/bin/wx-config
+endif
+
+WXCONFIGCXXFLAGS = ${WXCONFIG} --cxxflags
+WXCONFIGLIBS = ${WXCONFIG} --libs
+
#wxWindows flags
ifeq ($(wxcryst),1)
- WXCRYSTFLAGS = -D__WX__CRYST__ `$(WXCONFIG) --cxxflags`
- WX_LDFLAGS = -L/usr/X11R6/lib -lwxcryst `$(WXCONFIG) --libs` $(GL_WX_LIB)
+ WXCRYSTFLAGS = -D__WX__CRYST__ $(WXCONFIGCXXFLAGS)
+ WX_LDFLAGS = -L/usr/X11R6/lib -lwxcryst $(WXCONFIGLIBS) $(GL_WX_LIB)
else
WXCRYSTFLAGS :=
WX_LDFLAGS :=
@@ -64,19 +74,15 @@
endif
endif
-#Use static linking to wx and freeglut libraries ?
-ifneq ($(shared),1)
-WXCONFIG= $(DIR_CRYST)/../static-libs/bin/wx-config
-else
-WXCONFIG= wx-config
-endif
# If using glut (freeglut)
GLUT_FLAGS= -DHAVE_GLUT
GLUT_LIB= -lglut
#Using OpenGL ?
+WXCONFIG_GL_LIBS = ${WXCONFIG} --gl-libs
+
ifeq ($(opengl),1)
-GL_WX_LIB = `$(WXCONFIG) --gl-libs` -lGL -lGLU $(GLUT_LIB)
+GL_WX_LIB = `$(WXCONFIG_GL_LIBS) -lGL -lGLU $(GLUT_LIB)
GL_FLAGS = -DOBJCRYST_GL -I/usr/X11R6/include -IGL $(GLUT_FLAGS)
else
GL_WX_LIB :=
@@ -160,7 +166,7 @@
ifneq ($(shared),1)
libwx: $(BUILD_DIR)/static-libs/bin/wx-config libfreeglut
else
-libwx:
+libwx:
endif
else
libwx:


Code: Select all
make -f gnu.mak wxcryst=1 opengl=1 fftw=1 debug= shared=1 -C src Fox
make[1]: entrant dans le répertoire « /home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.3-r973/work/Fox-1.7.5.3-R973/Fox/src »
Fox.cpp:23:29: erreur: wx/wxprec.h : Aucun fichier ou répertoire de ce type
Code: Select all
more Fox-1.7.5.3-R973.orig/Fox/src/gnu.mak
BUILD_DIR = $(CURDIR)/../..
include $(BUILD_DIR)/ObjCryst/rules.mak
ifeq ($(profile),2)
%.o : %.c
@rm -f $(*F).gcda $(*F).gcno
@$(MAKEDEPEND)
${CC} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
else
%.o : %.c
@$(MAKEDEPEND)
${CC} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
endif
ifeq ($(profile),2)
%.o : %.cpp libwx
@rm -f $(*F).gcda $(*F).gcno
@$(MAKEDEPEND)
${CXX} ${CPPFLAGS} ${CXXFLAGS} -D'__FOXVERSION__="$(foxversion)"' -c $< -o $@
else
%.o : %.cpp libwx
@$(MAKEDEPEND)
${CXX} ${CPPFLAGS} ${CXXFLAGS} -D'__FOXVERSION__="$(foxversion)"' -c $< -o $@
endif
%.o : %.rc
windres -i $< -o $@ --include-dir ${DIR_WXWINDOWS}/include
-include Fox.dep
#Main Application
Fox: Fox.o libwx libnewmat libCrystVector libQuirks libRefinableObj libcctbx libCryst libwxCryst lib
fftw
${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so lib%, $^} ${LOADLIBES}
Fox-nogui: Fox.o libnewmat libCrystVector libQuirks libRefinableObj libcctbx libCryst
${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so lib%, $^} ${LOADLIBES}
fox: Fox
# target for making everything
.PHONY : all
all: Fox
# target for removing all object files
.PHONY : tidy
tidy::
@${RM} core *.o *.dep
# target for removing all object files and libraries
.PHONY : clean
clean:: tidy
@${RM} *.a Fox
cvsignore:
cp -f ${DIR_CRYST}/.cvsignore ./
