Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105051 - app-text/html2text-1.3.2 failed, 1.3.1 compiled fine
Summary: app-text/html2text-1.3.2 failed, 1.3.1 compiled fine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-06 11:30 UTC by Gleb Litvjak
Modified: 2008-04-03 13:28 UTC (History)
2 users (show)

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


Attachments
Authorize only the use of g++ as c++ compiler (html2text-1.3.2-c++-compiler.patch,269 bytes, patch)
2005-09-22 07:27 UTC, Alexandre Buisse (RETIRED)
Details | Diff
Corrected Darwin patch (html2text-1.3.2-darwin.patch,344 bytes, patch)
2005-10-14 07:43 UTC, Arnaud Launay
Details | Diff
Reordered patch (html2text-1.3.2-darwin.patch,344 bytes, patch)
2005-10-14 07:56 UTC, Arnaud Launay
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb Litvjak 2005-09-06 11:30:46 UTC
Can't install app-text/html2text-1.3.2, it fails at the configure step: 
 
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --build=i686-pc-linux-gnu 
Checking C++ compiler... use "gcc" 
Checking <sys/poll.h>... Error: Could not get "poll()" to working. 
 
html2text-1.3.1 compiles fine. 
 
Emerge info: 
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, 
glibc-2.3.4.20040808-r1,glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.13 
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.5 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe 
-momit-leaf-frame-pointer -funit-at-a-time -ftracer -fprefetch-loop-arrays" 
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/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/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe 
-momit-leaf-frame-pointer -funit-at-a-time -ftracer -fprefetch-loop-arrays" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="en_GB.utf8" 
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" 
LINGUAS="ru" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 3dnow 3dnowext X Xaw3d a52 aalib alsa apm audiofile avi berkdb 
bitmap-fonts bonobo cddb cdparanoia cdr crypt css cups curl dvd dvdr dvdread 
eds emboss encode fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp 
gimp-print gimpprint gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal 
imagemagick imlib java jpeg jpeg2k kde kdeenablefinal kqemu libg++ libwww mad 
mikmod mmx mng motif mozilla mp3 mpeg mplayer mysql nas ncurses nptl nvidia 
ogg oggvorbis openal opengl oss pam pascal pdflib perl php pic plugin png 
postgres ppds python qt quicktime rar readline samba scanner sdl sensord slang 
speex spell sse sse2 ssl subtitles svg svga tcltk tcpd tetex theora tidy tiff 
truetype truetype-fonts type1-fonts unicode usb visualization vorbis 
win32codecs wmf wxgtk1 xine xml xml2 xmms xrandr xscreensaver xv xvid zlib 
linguas_ru userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, MAKEOPTS 
 
 
 

Reproducible: Always
Steps to Reproduce:
Comment 1 Alexandre Buisse (RETIRED) gentoo-dev 2005-09-21 09:14:25 UTC
This is really weird, as diffing the configure of 1.3.1 and 1.3.2 shows
absolutely no changes in the poll.h related area.

Two patched were added and one removed in the ebuilds when changing version, but
they do not seem to modify the ./configure. You could however try to comment the
epatch lines in the src_unpack function.
Have you also tried to manually untar and run ./configure from there ?
Comment 2 Gleb Litvjak 2005-09-21 09:21:42 UTC
When I manually untar and run './configure' from 1.3.2a archive, it passes OK, 
so I can run 'make'. However, the portage still gives the same error when I try 
to emerge 1.3.2a. This is very weird. 
Comment 3 Alexandre Buisse (RETIRED) gentoo-dev 2005-09-22 07:27:08 UTC
It seems that the problem comes from the included patch, then
(html2text-1.3.2-darwin.patch). It is designed to use $CC first if it is
defined, then g++ and last CC (while the configure for 1.3.1 uses CC first).

I made some tries here and for some reason, it seems only able to use g++...

I suggest to replace the applying of html2text-1.3.2-darwin.patch by the
attached html2text-1.3.2-c++-compiler.patch
Comment 4 Alexandre Buisse (RETIRED) gentoo-dev 2005-09-22 07:27:59 UTC
Created attachment 69009 [details, diff]
Authorize only the use of g++ as c++ compiler
Comment 5 Arnaud Launay 2005-10-14 07:42:24 UTC
Confirmed here, same problem, and the patch corrects it.
Hmm, problem probably comes from the if line, with $CC if $CC isn't defined, it
reads as:
if -c $tmp_file.C 2>/dev/null
And
    -c file
        True if file exists and is a character special file.
as $tmp_file exists, the if is true, and thus, CXX is defined to null... which
of course breaks everything else.

better patch enclosed (test for $CC, if it does not exist, then sets it to CC).
Comment 6 Arnaud Launay 2005-10-14 07:43:33 UTC
Created attachment 70662 [details, diff]
Corrected Darwin patch

Corrected Darwin patch for CC test
Comment 7 Arnaud Launay 2005-10-14 07:49:05 UTC
And my patch doesn't work if CC is already set...
Comment 8 Arnaud Launay 2005-10-14 07:56:32 UTC
Created attachment 70663 [details, diff]
Reordered patch

Ok, so:
- first check if $CC is set, if not set $CC to CC
- then try the compilers in this order: g++, cc, $CC, CC
Comment 9 Fabian Groffen gentoo-dev 2005-10-16 01:56:45 UTC
ok, we changed it because otherwise the compiler was not found on OSX.

The "Reordered patch" works fine for ppc-macos and also seems to work on my x86
machine.

I replaced the patch with the given one in CVS.  Thanks a lot.
Comment 10 Fabian Groffen gentoo-dev 2005-10-16 02:01:24 UTC
ohw... please check, if it works for all, then I'll close this bug.
Comment 11 Fabian Groffen gentoo-dev 2008-04-03 13:28:57 UTC
it aparently does.