osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: build problem on solaris - msg#00001

List: python.numeric.general

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

On Wed, Jun 01, 2005 at 07:25:47AM -0700, Gerald John M. Manipon wrote:
> Hello,
>
> I compiled python 2.4.1 on a solaris 2.8 box using gcc 3.2.3. When
> I try to build Numeric 24.0b2, I get this error:
>
> building 'RNG.RNG' extension
> /usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -O -fPIC -IInclude
> -IPackages/FFT/Include -IPackages/RNG/Include
> -I/export/00/gmanipon/sciflo/include/python2.4 -c
> Packages/RNG/Src/ranf.c -o
> build/temp.solaris-2.8-sun4u-2.4/Packages/RNG/Src/ranf.o
> Packages/RNG/Src/ranf.c: In function `Mixranf':
> Packages/RNG/Src/ranf.c:153: conflicting types for `gettimeofday'
> /usr/include/sys/time.h:390: previous declaration of `gettimeofday'
> Packages/RNG/Src/ranf.c:153: warning: extern declaration of
> `gettimeofday' doesn't match global one
> error: command '/usr/local/bin/gcc' failed with exit status 1
>
> Has anyone encountered this problem? Any help is greatly appreciated.

Could you add this as a bug to the bug tracker at
http://sourceforge.net/tracker/?group_id=1369&atid=101369
and assign it to me (dmcooke)? That ranf.c file is full of
platform-specific tweaks for handling the time, which shouldn't be
necessary (really, if it wants the time, it should use the Python time
module).

I'd just edit Packages/RNG/Src/ranf.c, and delete the declaration
of gettimeofday. From what I could google about Solaris's gettimeofday,
I think it'll work.

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/
|cookedm@xxxxxxxxxxxxxxxxxxx


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005


Thread at a glance:

Previous Message by Date:

build problem on solaris

Hello, I compiled python 2.4.1 on a solaris 2.8 box using gcc 3.2.3. When I try to build Numeric 24.0b2, I get this error: building 'RNG.RNG' extension /usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -O -fPIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/export/00/gmanipon/sciflo/include/python2.4 -c Packages/RNG/Src/ranf.c -o build/temp.solaris-2.8-sun4u-2.4/Packages/RNG/Src/ranf.o Packages/RNG/Src/ranf.c: In function `Mixranf': Packages/RNG/Src/ranf.c:153: conflicting types for `gettimeofday' /usr/include/sys/time.h:390: previous declaration of `gettimeofday' Packages/RNG/Src/ranf.c:153: warning: extern declaration of `gettimeofday' doesn't match global one error: command '/usr/local/bin/gcc' failed with exit status 1 Has anyone encountered this problem? Any help is greatly appreciated. Gerald ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

Next Message by Date:

Re: build problem on solaris

Done, but it was assigned id 1212776. Anyways, I did what you said and it compiled fine. I ran the tests and no errors came up. Thanks! Gerald David M. Cooke wrote: On Wed, Jun 01, 2005 at 07:25:47AM -0700, Gerald John M. Manipon wrote: Hello, I compiled python 2.4.1 on a solaris 2.8 box using gcc 3.2.3. When I try to build Numeric 24.0b2, I get this error: building 'RNG.RNG' extension /usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -O -fPIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/export/00/gmanipon/sciflo/include/python2.4 -c Packages/RNG/Src/ranf.c -o build/temp.solaris-2.8-sun4u-2.4/Packages/RNG/Src/ranf.o Packages/RNG/Src/ranf.c: In function `Mixranf': Packages/RNG/Src/ranf.c:153: conflicting types for `gettimeofday' /usr/include/sys/time.h:390: previous declaration of `gettimeofday' Packages/RNG/Src/ranf.c:153: warning: extern declaration of `gettimeofday' doesn't match global one error: command '/usr/local/bin/gcc' failed with exit status 1 Has anyone encountered this problem? Any help is greatly appreciated. Could you add this as a bug to the bug tracker at http://sourceforge.net/tracker/?group_id=1369&atid=101369 and assign it to me (dmcooke)? That ranf.c file is full of platform-specific tweaks for handling the time, which shouldn't be necessary (really, if it wants the time, it should use the Python time module). I'd just edit Packages/RNG/Src/ranf.c, and delete the declaration of gettimeofday. From what I could google about Solaris's gettimeofday, I think it'll work. ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

Previous Message by Thread:

build problem on solaris

Hello, I compiled python 2.4.1 on a solaris 2.8 box using gcc 3.2.3. When I try to build Numeric 24.0b2, I get this error: building 'RNG.RNG' extension /usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -O -fPIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/export/00/gmanipon/sciflo/include/python2.4 -c Packages/RNG/Src/ranf.c -o build/temp.solaris-2.8-sun4u-2.4/Packages/RNG/Src/ranf.o Packages/RNG/Src/ranf.c: In function `Mixranf': Packages/RNG/Src/ranf.c:153: conflicting types for `gettimeofday' /usr/include/sys/time.h:390: previous declaration of `gettimeofday' Packages/RNG/Src/ranf.c:153: warning: extern declaration of `gettimeofday' doesn't match global one error: command '/usr/local/bin/gcc' failed with exit status 1 Has anyone encountered this problem? Any help is greatly appreciated. Gerald ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

Next Message by Thread:

Re: build problem on solaris

Done, but it was assigned id 1212776. Anyways, I did what you said and it compiled fine. I ran the tests and no errors came up. Thanks! Gerald David M. Cooke wrote: On Wed, Jun 01, 2005 at 07:25:47AM -0700, Gerald John M. Manipon wrote: Hello, I compiled python 2.4.1 on a solaris 2.8 box using gcc 3.2.3. When I try to build Numeric 24.0b2, I get this error: building 'RNG.RNG' extension /usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -O -fPIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/export/00/gmanipon/sciflo/include/python2.4 -c Packages/RNG/Src/ranf.c -o build/temp.solaris-2.8-sun4u-2.4/Packages/RNG/Src/ranf.o Packages/RNG/Src/ranf.c: In function `Mixranf': Packages/RNG/Src/ranf.c:153: conflicting types for `gettimeofday' /usr/include/sys/time.h:390: previous declaration of `gettimeofday' Packages/RNG/Src/ranf.c:153: warning: extern declaration of `gettimeofday' doesn't match global one error: command '/usr/local/bin/gcc' failed with exit status 1 Has anyone encountered this problem? Any help is greatly appreciated. Could you add this as a bug to the bug tracker at http://sourceforge.net/tracker/?group_id=1369&atid=101369 and assign it to me (dmcooke)? That ranf.c file is full of platform-specific tweaks for handling the time, which shouldn't be necessary (really, if it wants the time, it should use the Python time module). I'd just edit Packages/RNG/Src/ranf.c, and delete the declaration of gettimeofday. From what I could google about Solaris's gettimeofday, I think it'll work. ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!