rushps / factplusplus

Automatically exported from code.google.com/p/factplusplus
0 stars 0 forks source link

[MAKE] Gentoo build problems - SOLVED #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>What steps will reproduce the problem?
1. cd SVN_Facet++
2. cd src
3. make

>What is the expected output? What do you see instead?
The expected output were a clean build.
I have a cuple of issue regarding linking libraries or CFLAGS (xerces-c,jni).

>What version of the product are you using? On what operating system?
I'm using lastest SVN version of Fact++ (rev. 619) on gentoo amd64 system:
$ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.2,
glibc-2.9_p20081201-r2, 2.6.30-gentoo-r2 x86_64)                          

=================================================================         

System uname:
Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-g
entoo-1.12.11.1

Timestamp of tree: Wed, 22 Jul 2009 21:45:01 +0000                        

distcc 3.1 x86_64-pc-linux-gnu [disabled]                                 

ccache version 2.4 [enabled]                                              

app-shells/bash:     3.2_p39                                              

dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                  

dev-lang/python:     2.5.4-r3, 2.6.2-r1                                   

dev-util/ccache:     2.4-r7                                               

dev-util/cmake:      2.6.4                                                

sys-apps/baselayout: 1.12.11.1                                            

sys-apps/sandbox:    1.6-r2                                               

sys-devel/autoconf:  2.13, 2.63                                           

sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2    

sys-devel/binutils:  2.18-r3                                              

sys-devel/gcc-config: 1.4.1                                               

sys-devel/libtool:   2.2.6a                                               

virtual/os-headers:  2.6.30                                               

ACCEPT_KEYWORDS="amd64"                                                   

CBUILD="x86_64-pc-linux-gnu"              
CFLAGS="-march=nocona -O2 -pipe"                              
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
/etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch
preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/
ftp://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.leaseweb.com/gentoo/
ftp://212.219.56.138/sites/www.ibiblio.org/gentoo/"                       

LANG="it_IT.UTF8"                                                         

LC_ALL="C"                                                                

LDFLAGS="-Wl,-O1"                                                         

LINGUAS="it"                                                              

MAKEOPTS="-j5"                                                            

PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"                                                    

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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gechi
/usr/portage/local/layman/science /usr/portage/local/layman/kde-testing
/usr/portage/local/layman/x11 /usr/portage/local/layman/vmware
/usr/portage/local/layman/qting-edge /usr/portage/local/layman/xen"

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="16bit 16bit-indices 16bittmp 64bit 7zip R X X509 a52 aac aalib
accessibility ace acl acpi addbookmarks ads aften akode akonadi alac alisp
alsa amarok amd64 ao aotuv apache2 apidocs apm ares arts artswrappersuid
aspell aspnet aspnet2 aspnetedit bash-completion berkdb bzip2 cairo cdaudio
cli cpudetection cracklib crypt cups dbus doc dri dvb dvd dvdr dvdread
encode exif fame fat fbcon fbdev fbsplash ffmpeg fftw finger flac flash
fontconfig fortran ftp fuse fusion gd gdbm gecko geoip ggi gif git glgd
glib gpg gphoto2 gpm grub gs gsm gstreamer gtk gtk+ guidexml gzip h323 hal
hardened hddtemp hdri high-ints hpn html http hvm iconv id3 id3tag ieee1394
image imagemagick inkjar int64 iodbc ipv6 isdnlog jack jadetex java
java-external java5 javacomm jpeg jpeg2k kde lame lash ldap libcaca
libgcrypt libsamplerate libssh2 libvisual lirc lm_sensors logitech-mouse
logrotate loop-aes lzo lzw mad md5sum messages metric midi mikmod mime
mixer mjpeg mmap mmkeys mmx mmxext mp2 mp3 mp3tunes mp4 mp4live mpd mpeg
mpeg2 mplayer mtp mudflap multilib multipath multipleip multiprocess
musepack musicbrainz mysql ncurses networkmanager nfqueue nfs nls nntp nptl
nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc ogg openal opengl
openmp openntpd openssh openssl opensslcrypt openvpn pam pango pcre pdf
perfprofiling perl phonon player plugins png pnm portage portaudio postproc
pppd prelude pvr python q32 q8 qemu qt3 qt3support qt4 quicktime quotas
radio rar raw rc5 readline realmedia reflection regexp reiserfs resolvconf
roundrobin rpm rss samba sasl sdl sdl-image sdl-sound sdlaudio
semantic-desktop sensord session sftp sharedmem shorten sift simplexml smp
sockets sourceview spell spl sql sqlite srt sse sse2 ssl ssse3 stream
submenu subtitles subversion svg svgz swat swig sysfs syslog sysvipc szip
taglib tagwriting tcp tcpd tcpmd5 tftp tga theora threads threadsafe
threadsonly tidy tiff timestats timezone timidity tos transcode truetype
tunepimp twolame type1 uclibc-compat ui unicode unzip upnp urandom usb
uudeview uuencode v4l v4l2 vamp vcd vcdx vdr verse vga video visual
visualization vlm vnc vorbis vram vroot wav wavpack webkit wma wmf wmp x264
x86emu xattr xbase xcb xcf xcomposite xen xetex xext xfce xfs xine xinetd
xml xmldoclet xmlreader xmlwriter xmp xmpi xorg xpm xrender xulrunner xv
xvid xvmc xvnc yaepg yv12 zeroconf zip zlib zvbi" ALSA_CARDS="ali5451
als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul 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"
DVB_CARDS="tda1004x" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
lcdm001 mtxorb ncurses text" LINGUAS="it" LIRC_DEVICES="flyvideo"
NETBEANS_MODULES="apisupport harness ide j2ee java nb websvccommon xml soa
visualweb webcommon groovy gsf cnd dlight enterprise ergonomics identity
mobility php profiler ruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga fbdev
vesa vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

######################## SOLVED ###########################

To get a clean compile I need to set some ENV_VAR and the JNI MakeFile:

### TO GET Xerces-c CLEAN COMPILE ###
--> since I've installed xerces-c manually in a custom prefix-dir:
$export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/user/xerces/lib/"
$export LDPATH=$LD_LIBRARY_PATH
$export PATH="$PATH:/home/user/xerces/bin/"
### IMPORTANT: You have to set XERCESROOT var
$export XERCESCROOT="/home/user/xerces/"

### TO GET JNI CLEAN COMPILE ###
--> go to src/Fact++.JNI/Makefile and edit the following line:
> INCLUDES = -I/System/Library/Frameworks/JavaVM.framework/Headers

--> add the JDK include dir (where jni.h is located) and (IMPORTANT) the  
'jnd_md.h' dir:
> -I/opt/sun-jdk-1.6.0.14/include/ -I /opt/sun-jdk-1.6.0.14/include/linux/

-->Becomes (ONE LINE):
INCLUDES = -I/System/Library/Frameworks/JavaVM.framework/Headers
-I/opt/sun-jdk-1.6.0.14/include/ -I /opt/sun-jdk-1.6.0.14/include/linux/

--> Setting CFLAGS with -fPIC var:
$export JAVA_HOME="$JAVA_HOME:/opt/sun-jdk-1.6.0.14/"
$export CXXFLAGS="-O3 -pipe -fPIC";
$export CFLAGS=$CXXFLAGS;

-->Run make:
$make -j4

Original issue reported on code.google.com by ccancell...@gmail.com on 23 Jul 2009 at 11:56

GoogleCodeExporter commented 8 years ago

Original comment by dmitry.t...@gmail.com on 10 Sep 2009 at 2:48

GoogleCodeExporter commented 8 years ago
Now there is no need to add xerces dependencies; only Java part is necessary

Original comment by dmitry.t...@gmail.com on 5 Jul 2010 at 5:50