Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80874 - media-libs/avifile: confict between qt and dmalloc useflags
Summary: media-libs/avifile: confict between qt and dmalloc useflags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: InVCS
: 90278 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-05 08:35 UTC by Paul Slinski
Modified: 2005-04-24 17:18 UTC (History)
1 user (show)

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


Attachments
requested output (config.log,102.06 KB, text/plain)
2005-03-22 15:33 UTC, Paul Slinski
Details
Config.log from emerge (config.log,105.71 KB, text/plain)
2005-04-19 05:56 UTC, Daniel Perzynski
Details
Config.log from pure configure without any configure options (config.log,128.21 KB, text/plain)
2005-04-19 05:57 UTC, Daniel Perzynski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slinski 2005-02-05 08:35:06 UTC
Attempting to build avifile-0.7.41.20041001-r2 with qt support against qt-3.3.4-r1 fails with the error attached.

Reproducible: Always
Steps to Reproduce:
1. merge qt
2. merge avifile
3.

Actual Results:  
[truncated]
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../include  -I/usr/qt/3/include
-DQT_THREAD_SUPPORT -I/usr/include/SDL -D_REENTRANT         -I../libavqt   
-DPIXMAP_PATH=\"/usr/share/avifile-0.7/pixmaps\" -Wall -Wno-unused -I../include
 -O3 -march=pentium4 -fomit-frame-pointer -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c configdialog.cpp
In file included from /usr/qt/3/include/qurloperator.h:45,
                 from /usr/qt/3/include/qfiledialog.h:57,
                 from playercontrol.cpp:31:
/usr/qt/3/include/qnetworkprotocol.h:219: error: parse error before `)' token
make[1]: *** [playercontrol.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/avifile-0.7.41.20041001-r2/work/avifile-0.7-0.7.41/player'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.41.20041001-r2 failed.
!!! Function src_compile, Line 124, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
avifile with qt support.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 30 2005, 09:45:19)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoohttp://gentoo.mirrors.pair.com/"
LDFLAGS="-Wl,-z,now"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa aotuv apm arts artswrappersuid audiofile avi
bash-completion berkdb bitmap-fonts bzip2 caps cdparanoia crypt cups divx4linux
djbfft dmalloc dpms dts dv dvd dvdread dxr3 ecc edl encode esd f77 fam fame flac
font-server foomaticdb fpx gcj gdbm gif gimp gnokii gnome gphoto2 gpm graphviz
gstreamer gtk gtk2 gtkhtml idea ieee1394 imagemagick imlib ipv6 jack jai java
javascript jce jimi jms jmx jpeg jpeg2k junit kde kdeenablefinal lcms libcaca
libclamav libg++ libwww live lzomad matroska mikmod mjpeg mmap mmx mmx2 mng
motif mozilla mozxmlterm mpeg multicallmythtv nas ncurses network nptl nvidia
offensive oggvorbis openal opengl oss pam pda pdflib perl pic png povray pvm
python qt quicktime readline real rtc samba sblive scanner sdl silc slang slp
sms sndfile spell sse sse2 ssl svg svga svgz tcltk tcpd tetex tga theora threads
tiff truetype truetype-fonts type1-fonts userlocales v4l v4l2 vidix wifi wmf
xanim xine xinerama xml xml2 xmms xprint xscreensaver xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 1 Chris White (RETIRED) gentoo-dev 2005-03-22 06:10:39 UTC
[multiple bug change]

avifile 0.7.43 is out.  Please confirm your bugs against it.  Update the topic
if you can confirm it to the new version number.  Thanks :).
Comment 2 Paul Slinski 2005-03-22 15:31:18 UTC
No, not working but at least it gives a clue as to what the problem is.

checking for Qt library (version >= 200)... no
configure: WARNING:
*** Could not run Qt test program, checking why...
*** Configure discovered/uses these settings:
*** Qt libraries: /usr/qt/3/lib
*** Qt headers: /usr/qt/3/include
*** Note:
***    Compilation of Qt utilities also might be turned off (if not wanted).
***    If you are experiencing problems which will not be described
***    bellow please report then on 'avifile@prak.org' mailing list
***    (i.e. some misdetection or omitted path)

configure: error:
*** Qt test program compiled, but did not run. This usually means
*** that the run-time linker is not finding Qt library or finding the wrong
*** version of Qt. If it is not finding Qt, you will need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system.
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** i.e. bash> export LD_LIBRARY_PATH=/usr/qt/3/lib:$LD_LIBRARY_PATH
Comment 3 Paul Slinski 2005-03-22 15:33:20 UTC
Created attachment 54189 [details]
requested output

As requested by the ebuild. Here is the log.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-17 15:39:30 UTC
Re-emerge libjpeg, it's a conflict between two libstdc++ versions which causes the problem, probably.
Comment 5 Daniel Perzynski 2005-04-19 00:22:43 UTC
Re-emerging libjpeg didn't help :((
Comment 6 Daniel Perzynski 2005-04-19 00:36:39 UTC
Re-emerging libjpeg didn't help :((
Comment 7 Daniel Perzynski 2005-04-19 01:12:36 UTC
It's very interesting that when i run configure manually in /var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43 directory
configure script is finding freetype and qt libraries without a problem and compilation is also fine.
Comment 8 Daniel Perzynski 2005-04-19 01:57:04 UTC
Definitely I can tell that is it a ebuild file causing a problems here. When i've disabled all use_enable stuff emerge avfile is passing configure script. I know that it is because of autodetection feature of configure script but I'm not familiar with ebuild file design so i don't know how to fix it in a proper way :(
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-19 03:51:55 UTC
Can you provide updated config.log from emerge (after re-emerged libjpeg) and the config.log done manually?
Comment 10 Daniel Perzynski 2005-04-19 05:56:08 UTC
Created attachment 56651 [details]
Config.log from emerge
Comment 11 Daniel Perzynski 2005-04-19 05:57:48 UTC
Created attachment 56652 [details]
Config.log from pure configure without any configure options
Comment 12 Daniel Perzynski 2005-04-19 06:12:49 UTC
I've found what the problem is :) 
I've run configure with all these options which ebuild is passing to the configure script and the for sure I can tell that dmalloc USE flag is causing these problems. I've run configure script without it and it's working fine. 
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-19 06:21:44 UTC
Comment on attachment 56651 [details]
Config.log from emerge

Please use text/plain for config.log
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-19 06:22:18 UTC
Comment on attachment 56652 [details]
Config.log from pure configure without any configure options

as above
Comment 15 Daniel Perzynski 2005-04-20 00:30:52 UTC
emerging avifile with USE="-dmalloc" allows configure script to run succesfully. Unfortunately there is another problem when make command is invoked :( 

    # Check whether --enable-vidix or --disable-vidix was given.
if test "${enable_vidix+set}" = set; then
  enableval="$enable_vidix"

else
  enable_vidix=yes
fi;
    echo "$as_me:$LINENO: checking for vidix" >&5
echo $ECHO_N "checking for vidix... $ECHO_C" >&6
    if test x$enable_vidix = xyes -a x$ac_cv_prog_AWK != xno; then
      case "$target" in
        i?86-*-linux* | k?-*-linux* | athlon-*-linux*)
          enable_vidix=yes
          enable_linux=yes
          ;;

In i?86-*-linux* | k?-*-linux* | athlon-*-linux*) section there is no enable_dha_kmod=yes switch which is generating the following error:

Making install in drivers
make[1]: Entering directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/drivers'
Making install in libdha
make[2]: Entering directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/drivers/libdha'
Makefile:295: *** missing separator.  Stop.
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/drivers/libdha'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/drivers'
make: *** [install-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.43.20050224-r1 failed.
!!! Function src_install, Line 135, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Adding enable_dha_kmod=yes switch to the i?86-*-linux* | k?-*-linux* | athlon-*-linux*) section of configure script had allowed me to compile avifile succesfully. Unfortunately I don't know if inclusion of dha_kmod driver is set on by one of the configure switches for avifile or not. If someone could check it or even prepare a patch to add that swich during emerge process.



Comment 16 boris64 2005-04-24 05:05:19 UTC
i had exactly the same problem and can 
confirm that after disabling the dmalloc 
USE-flag avifile compiles flawlessly.
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-24 17:08:05 UTC
*** Bug 90278 has been marked as a duplicate of this bug. ***
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-24 17:09:25 UTC
Sounds like there's no way to work around this.
I'll add a check and a warning of not using qt and dmalloc useflags at the same time.
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-24 17:18:41 UTC
Added check, so using dmalloc and qt results in failure. Thanks for reporting.