[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: jabbin



I've found the relevant piece of code:

#if defined(WIN32)
     volatile unsigned int lowtick=0,hightick=0;
     __asm
        {
           rdtsc
              mov lowtick, eax
              mov hightick, edx
              }
     tick = hightick;
     tick <<= 32;
     tick |= lowtick;
#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) )
     asm("rdtsc" : "=A" (tick));
#elif defined (__SUNPRO_CC) || defined( __sparc__ )	
     tick = gethrtime();
#elif defined(__MACH__)
     int fd=open("/dev/random",O_RDONLY);
     read(fd,&tick,sizeof(tick));
     closesocket(fd);
#else
#     error Need some way to seed the random number generator
#endif
     int seed = int(tick);
#ifdef WIN32
     srand(seed);
#else
     srandom(seed);
#endif
  }

Does anyone know what the appropriate code for PowerPC would be?

On 8/24/06, Andrew Donnellan <ajdlinux@gmail.com> wrote:
On 8/24/06, Francesco Pedrini <f_pedrini@tiscali.it> wrote:
On Sunday 06 August 2006 06:40, Andrew Donnellan wrote:
> > I am looking for a sponsor for my package "jabbin".
> >
> > * Package name    : jabbin
> >   Version         : 2.0beta2-2
> >   Upstream Author : Stefano Grini <stefanogrini@gmail.com>/Jabbin
> > Team <http://jabbin.com>
> > * URL             : http://jabbin.com
> > * License         : GPL
> >   Section         : net
> >
> > It builds these binary packages:
> > jabbin     - Jabber IM client with VoIP support
>
> I've tried to build jabbin on my iBook (ppc), but it FTBFS with
>
> g++ -c -pipe -O0 -g3 -Wall -W -g -D_REENTRANT  -DHAVE_XSS -DPOSIX -DJINGLE
-DQCA_STATIC -DOSSL_097 -DXMPP_TEST -DQT_THREAD_SUPPORT -DQT_SHARED
-DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I.
-I../3party/libjingle -I../voip -I../3party/jrtplib -I../voip/portaudio
-Icutestuff/util -Icutestuff/network -Itools/trayicon -Itools/idle
-Itools/systemwatch -Itools/mac_dock -Itools/zip -Itools/dirwatch
-Itools/openpgp -Itools/globalaccel -Itools/advwidget -I../3party/qca
-I../iris/libidn -I../iris/include -I../iris/xmpp-core -I../iris/xmpp-im
-I../iris/jabber -Ilibpsi/iconset -Ilibpsi/psiwidgets -Ilibpsi/psipng
-I/usr/include/qt3 -I/usr/X11R6/include -I.ui/ -I. -Ioptions -I.moc/ -o
.obj/stun.o ../voip/stun.cpp
> ../voip/stun.cpp:681:7: error: #error Need some way to seed the random
> number generator

This must be an error generated in an #ifdef or something. As I can't
hack C++ I'll just report it to upstream.

andrew


> ../voip/stun.cpp:722: warning: unused parameter 'input'
> ../voip/stun.cpp:722: warning: unused parameter 'length'
> ../voip/stun.cpp:722: warning: unused parameter 'key'
> ../voip/stun.cpp:722: warning: unused parameter 'sizeKey'
> make[2]: *** [.obj/stun.o] Error 1
> make[2]: Leaving directory `/tmp/buildd/jabbin-2.0beta2a/src'
> make[1]: *** [sub-src] Error 2
> make[1]: Leaving directory `/tmp/buildd/jabbin-2.0beta2a'
> make: *** [build-stamp] Error 2
>
> HTH
>
> Francesco.
>
>
> --
> :wq
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>



--
Andrew Donnellan
http://andrewdonnellan.com
http://ajdlinux.blogspot.com
Jabber - ajdlinux@jabber.org.au
GPG - hkp://subkeys.pgp.net 0x5D4C0C58
-------------------------------
Member of Linux Australia - http://linux.org.au
Debian user - http://debian.org
Get free rewards - http://ezyrewards.com/?id=23484
OpenNIC user - http://www.opennic.unrated.net



Reply to: