error compiling labplot-1.5.1.1 on gentoo

Help
2006-04-11
2012-11-04
  • compiling labplot 1.5.1.1 on gentoo leads to following error message:

    bscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-check-new -fno-common -c -o opj2dat.o opj2dat.cc
    i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLVERSION=\"1.5.1\" -DLVERSION_DATE=1 -DHAVE_STRTOD=1 -DHAVE_LOG2=1 -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_TIFF=1 -DHAVE_GSL=1 -DHAVE_GSL14=1 -DHAVE_GSL16=1 -DHAVE_GSL17=1 -DGSL_DISABLE_DEPRECATED=1 -DHAVE_FFTW3=1 -DHAVE_MAGICK=1 -DHAVE_GL=1 -DHAVE_UNDO=1 -DKDELIBSUFF=\"\" -DHAVE_DLFCN_H=1 -DHAVE_SGI_STL=1 -DHAVE_CRYPT=1 -Dkde_socklen_t=socklen_t -Dksize_t=socklen_t -DHAVE_SYS_TYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_BITYPES_H=1 -DHAVE_RES_INIT=1 -DHAVE_RES_INIT=1 -DHAVE_RES_INIT_PROTO=1 -DSIZEOF_INT=4 -DSIZEOF_SHORT=2 -DSIZEOF_LONG=4 -DSIZEOF_CHAR_P=4 -DSIZEOF_SIZE_T=4 -DSIZEOF_UNSIGNED_LONG=4 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPTHREAD=1 -DWITHOUT_ARTS=1 -DSTDC_HEADERS=1 -I. -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-check-new -fno-common -c -o OPJFile.o OPJFile.cc
    OPJFile.cc: In member function int OPJFile::Parse()': OPJFile.cc:216: warning:int LAYER' might be used uninitialized in this
    function
    OPJFile.cc:278: warning: int ATYPE' might be used uninitialized in this function /bin/sh ../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-check-new -fno-common -o opj2dat opj2dat.o OPJFile.o i686-pc-linux-gnu-g++: OPJFile.o: No such file or directory make[1]: *** [opj2dat] Error 1 make[1]: *** Waiting for unfinished jobs.... OPJFile.cc: In member functionint OPJFile::Parse()':
    OPJFile.cc:216: warning: int LAYER' might be used uninitialized in this function OPJFile.cc:278: warning:int ATYPE' might be used uninitialized in this
    function
    make[1]: Leaving directory `/var/tmp/portage/labplot-1.5.1.1/work/LabPlot-1.5.1.1/liborigin'
    make: *** [all-recursive] Error 1

    !!! ERROR: sci-visualization/labplot-1.5.1.1 failed.
    !!! Function kde_src_compile, Line 226, Exitcode 2
    !!! died running emake, kde_src_compile:make
    !!! If you need support, post the topmost build error, NOT this status message.

    I compiled it with:

    # ACCEPT_KEYWORDS="~x86" emerge -av labplot

    These are the packages that I would merge, in order:

    Calculating dependencies ...done!
    [ebuild N ] sci-visualization/labplot-1.5.1.1 -arts +audiofile -cdf -debug +fftw +imagemagick -jpeg2k -kexi +opengl +tiff +xinerama 0 kB

    Total size of downloads: 0 kB

    Do you want me to merge these packages? [Yes/No]

    My "emerge info" if this helps anything:

    Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.15-gentoo-r1n i686)

    System uname: 2.6.15-gentoo-r1n i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
    Gentoo Base System version 1.6.14
    distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
    dev-lang/python: 2.3.5-r2, 2.4.2
    sys-apps/sandbox: 1.2.12
    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-r1
    sys-devel/binutils: 2.16.1
    sys-devel/libtool: 1.5.22
    virtual/os-headers: 2.6.11-r2
    ACCEPT_KEYWORDS="x86"
    AUTOCLEAN="yes"
    CBUILD="i686-pc-linux-gnu"
    CFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse -fomit-frame-pointer"
    CHOST="i686-pc-linux-gnu"
    CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
    CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
    CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -mmmx -msse -fomit-frame-pointer"
    DISTDIR="/usr/portage/distfiles"
    FEATURES="autoconfig distlocks sandbox sfperms strict"
    GENTOO_MIRRORS="ftp://ftp.tugraz.at/pub/mirror/gentoo/ http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
    MAKEOPTS="-j2"
    PKGDIR="/usr/portage/packages"
    PORTAGE_TMPDIR="/var/tmp"
    PORTDIR="/usr/portage"
    PORTDIR_OVERLAY="/usr/local/ebuilds /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/science"
    SYNC="rsync://rsync.gentoo.org/gentoo-portage"
    USE="x86 X Xaw3d aac aalib alsa apm asf audiofile avi berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdparanoia cdr crypt cups curl dga dri dv dvd dvdr dvdread dvix4linux eds emacs emboss encode esd exif expat fam ffmpeg fftw flac foomaticdb fortran gcj gd gdbm gif gimpprint glut glx gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imap imlib ipv6 irda isdnlog ithreads java jpeg junit latex lcms ldap libg++ libwww mad mikmod mime mmx mng motif mp3 mpeg musicbrainz ncurses nls nptl nptlonly nvidia odbc ofx ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl plugin png pnp pppd python quicktime readline real ruby samba sasl scanner sdl slang speex spell sqlite ssl svg svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wmf wxwindows xanim xface xfs xine xinerama xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
    Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS

    Greetings

    Kermit

     
    • Works, thx a lot

       
    • Stefan Gerlach
      Stefan Gerlach
      2006-04-11

      Hi,

      This problem occasionally happens when compiling with "make -j2". Please remove the "-j2" option and it should work as expected.
      I will try to fix this problem asap.