<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>72440</bug_id>
          
          <creation_ts>2004-11-25 03:32 0000</creation_ts>
          <short_desc>Cannot emerge wvdial because of wvstream compile failure on amd64 hardware</short_desc>
          <delta_ts>2005-01-04 12:32:13 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>luca.barozzi@tin.it</reporter>
          <assigned_to>net-dialup@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>luca.barozzi@tin.it</who>
            <bug_when>2004-11-25 03:32:47 0000</bug_when>
            <thetext>When i try to emerge wvdial it starts compiling wvstream dependency.
Wvstrams fails to compile and complains about un undeclared &apos;Fake&apos; (object?).

Reproducible: Always
Steps to Reproduce:
1. emerge --sync (to 20041124 snapshot)
2. emerge wvdial
3.

Actual Results:  
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 2) net-libs/wvstreams-3.70-r2 to /
&gt;&gt;&gt; md5 src_uri ;-) wvstreams-3.70.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking wvstreams-3.70.tar.gz to /var/tmp/portage/wvstreams-3.70-r2/work
 * Applying 3.70-gcc3.patch ...                                           [ ok ]
* Applying 3.70-openssl.patch ...                                        [ ok
]&gt;&gt;&gt; Source unpacked.

--&gt; Making all in /var/tmp/portage/wvstreams-3.70-r2/work/wvstreams-3.70/src...
[ -e ../wvrules.mk ] &amp;&amp; ln -s ../wvrules.mk .
rm -rf include
mkdir include.new
cd include.new &amp;&amp; for d in utils streams configfile ipstreams crypto; do ln -s
../$d/*.h .; done
mv include.new include

--&gt; Making all in
/var/tmp/portage/wvstreams-3.70-r2/work/wvstreams-3.70/src/utils...
g++ $_R_CXXFLAGS -c base64.cc
g++ $_R_CXXFLAGS -c verstring.cc
g++ $_R_CXXFLAGS -c strutils.cc
g++ $_R_CXXFLAGS -c strcrypt.cc
g++ $_R_CXXFLAGS -c wvstring.cc
g++ $_R_CXXFLAGS -c wvstringlist.cc
g++ $_R_CXXFLAGS -c wvstringtable.cc
g++ $_R_CXXFLAGS -c wvlinklist.cc
g++ $_R_CXXFLAGS -c wvhashtable.cc
g++ $_R_CXXFLAGS -c wvsorter.cc
g++ $_R_CXXFLAGS -c wvbuffer.cc
wvbuffer.cc: In member function `unsigned char* WvBuffer::get(size_t)&apos;:
wvbuffer.cc:95: warning: int format, different type arg (arg 2)
wvbuffer.cc:117: warning: int format, different type arg (arg 2)
wvbuffer.cc:138: warning: int format, different type arg (arg 2)
wvbuffer.cc: In member function `unsigned char* WvBuffer::alloc(size_t)&apos;:
wvbuffer.cc:200: warning: int format, different type arg (arg 2)
wvbuffer.cc: In member function `void WvBuffer::unalloc(size_t)&apos;:
wvbuffer.cc:244: warning: int format, different type arg (arg 2)
wvbuffer.cc: In member function `void WvBuffer::put(const void*, size_t)&apos;:
wvbuffer.cc:299: warning: int format, different type arg (arg 2)
g++ $_R_CXXFLAGS -c wvtask.cc
g++ $_R_CXXFLAGS -c wvfork.cc
g++ $_R_CXXFLAGS -c wvsubproc.cc
g++ $_R_CXXFLAGS -c wvencoder.cc
g++ $_R_CXXFLAGS -c wvgzip.cc
g++ $_R_CXXFLAGS -c wvcrash.cc
g++ $_R_CXXFLAGS -c wvdiriter.cc
rm -f utils.libs
echo base64.o verstring.o strutils.o strcrypt.o wvstring.o wvstringlist.o
wvstringtable.o wvlinklist.o wvhashtable.o wvsorter.o wvbuffer.o wvtask.o
wvfork.o wvsubproc.o wvencoder.o wvgzip.o wvcrash.o wvdiriter.o &gt;utils.libs

--&gt; Making all in
/var/tmp/portage/wvstreams-3.70-r2/work/wvstreams-3.70/src/streams...
Using my own device locking functions in wvlockfile.
g++ $_R_CXXFLAGS -c wvstream.cc
In file included from wvstream.h:10,
                 from wvstream.cc:11:
../utils/wvcallback.h:104: error: `Fake&apos; has not been declared
../utils/wvcallback.h:104: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:104: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:104: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback0&lt;RET&gt;::WvCallback0(RET (*)())&apos;:
../utils/wvcallback.h:104: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h:104: error: (Each undeclared identifier is reported only
once for each function it appears in.)
../utils/wvcallback.h: In member function `RET WvCallback0&lt;RET&gt;::operator()()&apos;:
../utils/wvcallback.h:104: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:104: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:104: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:104: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback0_bound&lt;RET,
T&gt;::WvCallback0_bound(T&amp;, RET (T::*)())&apos;:
../utils/wvcallback.h:106: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:106: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:106: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:109: error: `Fake&apos; has not been declared
../utils/wvcallback.h:109: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:109: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:109: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback1&lt;RET, P1&gt;::WvCallback1(RET
(*)(P1))&apos;:
../utils/wvcallback.h:109: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback1&lt;RET,
P1&gt;::operator()(P1)&apos;:
../utils/wvcallback.h:109: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:109: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:109: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:109: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback1_bound&lt;RET, T,
P1&gt;::WvCallback1_bound(T&amp;, RET (T::*)(P1))&apos;:
../utils/wvcallback.h:111: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:111: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:111: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:114: error: `Fake&apos; has not been declared
../utils/wvcallback.h:114: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:114: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:114: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback2&lt;RET, P1, P2&gt;::WvCallback2(RET
(*)(P1, P2))&apos;:
../utils/wvcallback.h:114: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback2&lt;RET, P1,
P2&gt;::operator()(P1, P2)&apos;:
../utils/wvcallback.h:114: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:114: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:114: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:114: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback2_bound&lt;RET, T, P1,
P2&gt;::WvCallback2_bound(T&amp;, RET (T::*)(P1, P2))&apos;:
../utils/wvcallback.h:116: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:116: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:116: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:119: error: `Fake&apos; has not been declared
../utils/wvcallback.h:119: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:119: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:119: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback3&lt;RET, P1, P2,
P3&gt;::WvCallback3(RET (*)(P1, P2, P3))&apos;:
../utils/wvcallback.h:119: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback3&lt;RET, P1, P2,
P3&gt;::operator()(P1, P2, P3)&apos;:
../utils/wvcallback.h:119: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:119: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:119: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:119: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback3_bound&lt;RET, T, P1, P2,
P3&gt;::WvCallback3_bound(T&amp;, RET (T::*)(P1, P2, P3))&apos;:
../utils/wvcallback.h:121: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:121: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:121: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:125: error: `Fake&apos; has not been declared
../utils/wvcallback.h:125: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:125: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:125: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback4&lt;RET, P1, P2, P3,
P4&gt;::WvCallback4(RET (*)(P1, P2, P3, P4))&apos;:
../utils/wvcallback.h:125: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback4&lt;RET, P1, P2, P3,
P4&gt;::operator()(P1, P2, P3, P4)&apos;:
../utils/wvcallback.h:125: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:125: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:125: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:125: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback4_bound&lt;RET, T, P1, P2, P3,
P4&gt;::WvCallback4_bound(T&amp;, RET (T::*)(P1, P2, P3, P4))&apos;:
../utils/wvcallback.h:127: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:127: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:127: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:131: error: `Fake&apos; has not been declared
../utils/wvcallback.h:131: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:131: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:131: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback5&lt;RET, P1, P2, P3, P4,
P5&gt;::WvCallback5(RET (*)(P1, P2, P3, P4, P5))&apos;:
../utils/wvcallback.h:131: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback5&lt;RET, P1, P2, P3, P4,
P5&gt;::operator()(P1, P2, P3, P4, P5)&apos;:
../utils/wvcallback.h:131: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:131: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:131: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:131: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback5_bound&lt;RET, T, P1, P2, P3, P4,
P5&gt;::WvCallback5_bound(T&amp;, RET (T::*)(P1, P2, P3, P4, P5))&apos;:
../utils/wvcallback.h:134: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:134: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:134: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:138: error: `Fake&apos; has not been declared
../utils/wvcallback.h:138: error: expected unqualified-id before &apos;*&apos; token
../utils/wvcallback.h:138: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h:138: error: expected `)&apos; before &apos;*&apos; token
../utils/wvcallback.h: In constructor `WvCallback6&lt;RET, P1, P2, P3, P4, P5,
P6&gt;::WvCallback6(RET (*)(P1, P2, P3, P4, P5, P6))&apos;:
../utils/wvcallback.h:138: error: `FakeGlobalFunc&apos; undeclared (first use this
function)
../utils/wvcallback.h: In member function `RET WvCallback6&lt;RET, P1, P2, P3, P4,
P5, P6&gt;::operator()(P1, P2, P3, P4, P5, P6)&apos;:
../utils/wvcallback.h:138: error: `obj&apos; undeclared (first use this function)
../utils/wvcallback.h:138: error: `Func&apos; undeclared (first use this function)
../utils/wvcallback.h:138: error: expected `)&apos; before &quot;func&quot;
../utils/wvcallback.h:138: error: `globalfunc&apos; undeclared (first use this function)
../utils/wvcallback.h: In constructor `WvCallback6_bound&lt;RET, T, P1, P2, P3, P4,
P5, P6&gt;::WvCallback6_bound(T&amp;, RET (T::*)(P1, P2, P3, P4, P5, P6))&apos;:
../utils/wvcallback.h:142: error: `Fake&apos; undeclared (first use this function)
../utils/wvcallback.h:142: error: expected primary-expression before &apos;)&apos; token
../utils/wvcallback.h:142: error: `Func&apos; has not been declared
../utils/wvcallback.h: At global scope:
../utils/wvcallback.h:191: error: `BoundFunc&apos; has not been declared
../utils/wvcallback.h:191: error: ISO C++ forbids declaration of `_func&apos; with no
type
In file included from wvstream.cc:11:
wvstream.h:21: error: `BoundFunc&apos; has not been declared
wvstream.h:21: error: ISO C++ forbids declaration of `_func&apos; with no type
../utils/wvcallback.h: In member function `RET WvCallback2&lt;RET, P1,
P2&gt;::operator()(P1, P2) [with RET = void, P1 = WvStream&amp;, P2 = void*]&apos;:
wvstream.cc:122:   instantiated from here
../utils/wvcallback.h:114: error: return-statement with a value, in function
returning &apos;void&apos;
../utils/wvcallback.h:114: error: return-statement with a value, in function
returning &apos;void&apos;
make[2]: *** [wvstream.o] Error 1
make[1]: *** [streams] Error 2
make: *** [src] Error 2

!!! ERROR: net-libs/wvstreams-3.70-r2 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
Ready to run wvdial.

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.6-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /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/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://gentoo.inode.at/ http://mirror.switch.ch/mirror/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync3.it.gentoo.org/gentoo-sources&quot;
USE=&quot;amd64 X acpi alsa berkdb bitmap-fonts cdr crypt cups esd f77 fam flac
fortran gdbm gif gnome gpm gstreamer gtk imagemagick imlib ipv6 java jp2 jpeg
kde ldap libwww lzw lzw-tiff mozilla multilib mysql ncurses nls opengl oss pam
perl png python qt readline ruby samba ssl tcltk tcpd tetex tiff truetype usb
userlocales xml xml2 xmms xpm xrandr xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-11-26 14:02:47 0000</bug_when>
            <thetext>please use latest unstable versions of wvdial and wvstreams until we manage to set them as stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-12-08 12:11:51 0000</bug_when>
            <thetext>please run:
  echo &quot;dev-libs/xplc ~amd64&quot; &gt;&gt; /etc/portage/package.keywords
  echo &quot;net-libs/wvstreams ~amd64&quot; &gt;&gt; /etc/portage/package.keywords
  echo &quot;net-dialup/wvdial ~amd64&quot; &gt;&gt; /etc/portage/package.keywords
  emerge wvdial

and tell me if wvdial is working OK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luca.barozzi@tin.it</who>
            <bug_when>2004-12-09 14:43:46 0000</bug_when>
            <thetext>Sorry i cannot try becouse of broken modem drivers. I&apos;ll take it as an hint.
I did almost the same, except for xplc after the first bug reporting and managed to emerge wvdial without compile errors.

I have a Smart Link chipset modem and its drivers are made of a software modem daemon compiled on 32 bit architecture becouse of undiscolsed proprietary library and a kernel module compiled on 64 bit architecture (just because it is a module?). Well, they cannot talk each other. Some ioctl32() failure...

Looking for Conexant chipset support or some &apos;true&apos; modem now.

Sorry again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2004-12-18 11:15:03 0000</bug_when>
            <thetext>Arches, please mark as stable following ebuilds:
  dev-libs/xplc-0.3.10
  net-libs/wvstreams-4.0-r1
  net-dialup/wvdial-1.54.0

wvstreams versions prior to 4.0-r1 are broken</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-12-20 08:23:18 0000</bug_when>
            <thetext>hppa stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2004-12-22 05:19:38 0000</bug_when>
            <thetext>sparc done.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2004-12-27 11:49:43 0000</bug_when>
            <thetext>Alpha fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sekretarz@gentoo.org</who>
            <bug_when>2005-01-04 12:32:13 0000</bug_when>
            <thetext>amd64 done</thetext>
          </long_desc>
      
    </bug>

</bugzilla>