POV-Ray : Newsgroups : povray.unix : [beta] source distribution of POV-Ray 3.6 for UNIX Server Time
1 Jul 2024 05:42:56 EDT (-0400)
  [beta] source distribution of POV-Ray 3.6 for UNIX (Message 1 to 10 of 43)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Nicolas Calimet
Subject: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 1 Jul 2004 19:41:27
Message: <40e4a127@news.povray.org>
A beta version of the source distribution of POV-Ray 3.6 for UNIX is 
now available for download.  The source archive can be obtained
in two formats depending on the compression method (tarball compressed
with either GNU gzip or the bzip2 utility):

http://pov4grasp.free.fr/povray-3.6.tar.gz  (8.7 MB)
http://pov4grasp.free.fr/povray-3.6.tar.bz2 (7.9 MB)

	Of course you do _not_ need to download both packages  :-)

	Note that the beta status concerns _only_ the build system included in 
this UNIX-specific source distribution.  The official
source distribution for UNIX as well as for the other supported
platforms will be available in a few days.
	As a beta source distribution, we do not recommand you to
try to install the program as root, as it may screw up your system
in case the installation is buggy.  You may try to install POV-Ray as 
non-priviledged user first, and check that it works as expected.
Refer to the installation documentation (see below).
	Similarly, if you are not familiar with building source packages on a 
UNIX system in general, we do not recommand to use this beta source 
distribution.

	After downloading the file, uncompress and unpack the archive
using for instance:

% tar xvzf povray-3.6.tar.gz

	Doing so will create a povray-3.6/ directory.  Go to this
directory with 'cd' and read the README and INSTALL file.  The latter
explains how to prepare the source package for compilation and instal-
lation on your machine.

	The build system has been completely rewritten for POV-Ray 3.6,
and while it has been tested on various platforms, it may fail on your
particular system.  If this is the case, please report the problem(s)
in this thread only.  Simple guidelines in how to make a report are 
given in the INSTALL file (see the "Compatibility" section).  Depending 
on the nature of your problem, we may ask you to post additional data
to help us debugging the build system.
	If otherwise you manage to build POV-Ray successfully, you are
welcome to report your platform specs, so as to add it in the list of
compatible systems.  The "Compatibility" section again shows you what
kind of information to report.

	Thanks for testing the new build system of POV-Ray 3.6 for UNIX!

	- Nicolas Calimet


Post a reply to this message

From: Nicolas Calimet
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 1 Jul 2004 19:46:29
Message: <40e4a255$1@news.povray.org>
Argh, sorry for the 'buggy' formatting of my message  :-(

	- NC


Post a reply to this message

From: Le Forgeron
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 07:48:10
Message: <Xns951A8C68E5428jgrimbertmeandmyself@203.29.75.35>


>      Argh, sorry for the 'buggy' formatting of my message  :-(
> 
>      - NC
> 

Ok, downloaded and testing... on solaris 2.5.1, gcc 3.3.2, sparc-cpu

Problem are:
- vsnprintf is unknown (whereas vsprintf is ok)
- X11 include are not C++ compliant... 

How the hell do you disable X Window display ?


Retrying with ./configure --without-x ...
Failed

 
=========================================================================
======
POV-Ray 3.6 has been configured with the following features:
  I/O restrictions: enabled
  X Window display: enabled
  SVGAlib display : disabled
 
Type 'make' to build, and 'make install' to install all files in the 
hierarchy
/usr/local
=========================================================================
======


Retrying with ./configure --with-x=NO ...
Ditto.
Retrying with ./configure --with-x=no ...
Ditto.

Stuck at trying to remove that X from povray...

And here the full list of errors (I replaced vsnprintf with vsprintf, 
even if it open a possible buffer overrun exploit, to go further in the 
compilation).

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix 
-I../../libraries/zlib -I../../libraries/png -I/usr/openwin/include   -
pipe -Wno-multichar -O3  -c -o fileinputoutput.o `test -f 
'fileinputoutput.cpp' || echo './'`fileinputoutput.cpp
fileinputoutput.cpp: In member function `void pov_base::OStream::printf
(const 
   char*, ...)':
fileinputoutput.cpp:306: error: `vsnprintf' undeclared (first use this 
   function)
fileinputoutput.cpp:306: error: (Each undeclared identifier is reported 
only 
   once for each function it appears in.)

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix 
-I../../libraries/zlib -I../../libraries/png -I/usr/openwin/include   -
pipe -Wno-multichar -O3  -c -o processoptions.o `test -f 
'processoptions.cpp' || echo './'`processoptions.cpp
processoptions.cpp: In member function `virtual void 
   pov_base::ProcessOptions::ParseError(const char*, ...)':
processoptions.cpp:391: error: `vsnprintf' undeclared (first use this 
function)
processoptions.cpp:391: error: (Each undeclared identifier is reported 
only 
   once for each function it appears in.)
processoptions.cpp: In member function `virtual void 
   pov_base::ProcessOptions::ParseErrorAt(pov_base::ITextStream*, const 
char*, 
   ...)':
processoptions.cpp:403: error: `vsnprintf' undeclared (first use this 
function)
processoptions.cpp: In member function `virtual void 
   pov_base::ProcessOptions::WriteError(const char*, ...)':
processoptions.cpp:415: error: `vsnprintf' undeclared (first use this 
function)


g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix 
-I../../libraries/zlib -I../../libraries/png -I/usr/openwin/include   -
pipe -Wno-multichar -O3  -c -o stringutilities.o `test -f 
'stringutilities.cpp' || echo './'`stringutilities.cpp
stringutilities.cpp: In function `const char* pov_base::pov_tsprintf
(const 
   char*, ...)':
stringutilities.cpp:134: error: `vsnprintf' undeclared (first use this 
   function)
stringutilities.cpp:134: error: (Each undeclared identifier is reported 
only 
   once for each function it appears in.)


g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix 
-I../../libraries/zlib -I../../libraries/png -I/usr/openwin/include   -
pipe -Wno-multichar -O3  -c -o textstreambuffer.o `test -f 
'textstreambuffer.cpp' || echo './'`textstreambuffer.cpp
textstreambuffer.cpp: In member function `void 
   pov_base::TextStreamBuffer::printf(const char*, ...)':
textstreambuffer.cpp:69: error: `vsnprintf' undeclared (first use this 
   function)
textstreambuffer.cpp:69: error: (Each undeclared identifier is reported 
only 
   once for each function it appears in.)

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -I../../unix 
-I../../libraries/zlib -I../../libraries/png -I/usr/openwin/include   -
pipe -Wno-multichar -O3  -c -o textstream.o `test -f 'textstream.cpp' || 
echo './'`textstream.cpp
textstream.cpp: In member function `void pov_base::OTextStream::printf
(const 
   char*, ...)':
textstream.cpp:270: error: `vsnprintf' undeclared (first use this 
function)
textstream.cpp:270: error: (Each undeclared identifier is reported only 
once 
   for each function it appears in.)

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -
I../../source/base -I../../unix -I../../libraries/zlib -
I../../libraries/png -I/usr/openwin/include   -pipe -Wno-multichar -O3  -
c -o defaultrenderfrontend.o `test -f 'defaultrenderfrontend.cpp' || echo 
'./'`defaultrenderfrontend.cpp
defaultrenderfrontend.cpp: In member function `void 
   pov_frontend::DefaultRenderFrontend::BannerPrintf(const char*, ...)':
defaultrenderfrontend.cpp:63: error: `vsnprintf' undeclared (first use 
this 
   function)
defaultrenderfrontend.cpp:63: error: (Each undeclared identifier is 
reported 
   only once for each function it appears in.)

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../source -
I../../source/base -I../../unix -I../../libraries/zlib -
I../../libraries/png -I/usr/openwin/include   -pipe -Wno-multichar -O3  -
c -o messageoutput.o `test -f 'messageoutput.cpp' || echo 
'./'`messageoutput.cpp
messageoutput.cpp: In member function `void 
   pov_frontend::MessageOutput::Printf(int, const char*, ...)':
messageoutput.cpp:88: error: `vsnprintf' undeclared (first use this 
function)
messageoutput.cpp:88: error: (Each undeclared identifier is reported only 
once 
   for each function it appears in.)

g++ -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../source/base -
I../source/frontend -I../unix -I../libraries/zlib -I../libraries/png -
I../libraries/tiff/libtiff  -I/usr/openwin/include   -pipe -Wno-multichar 
-O3  -c -o userio.o `test -f 'userio.cpp' || echo './'`userio.cpp
userio.cpp: In function `int pov::Debug_Info(const char*, ...)':
userio.cpp:157: error: `vsnprintf' undeclared (first use this function)
userio.cpp:157: error: (Each undeclared identifier is reported only once 
for 
   each function it appears in.)
userio.cpp: In function `int pov::Warning(unsigned int, const char*, 
...)':
userio.cpp:180: error: `vsnprintf' undeclared (first use this function)
userio.cpp: In function `int pov::WarningAt(unsigned int, const char*, 
long 
   int, long unsigned int, const char*, ...)':
userio.cpp:229: error: `vsnprintf' undeclared (first use this function)
userio.cpp: In function `int pov::PossibleError(const char*, ...)':
userio.cpp:268: error: `vsnprintf' undeclared (first use this function)
userio.cpp: In function `int pov::Error(const char*, ...)':
userio.cpp:314: error: `vsnprintf' undeclared (first use this function)
userio.cpp: In function `int pov::ErrorAt(const char*, long int, long 
unsigned 
   int, const char*, ...)':
userio.cpp:369: error: `vsnprintf' undeclared (first use this function)

g++ -DHAVE_CONFIG_H -DPOVLIBDIR=\"/usr/local/share/povray-3.6\" -
DPOVCONFDIR=\"/usr/local/etc/povray/3.6\" -DPOVCONFDIR_BACKWARD=
\"/usr/local/etc\" -I. -I. -I..  -I.. -I../source -I../source/base -
I../source/frontend -I../source -I../libraries/zlib -I../libraries/png -
I../libraries/tiff/libtiff  -I/usr/openwin/include   -pipe -Wno-multichar 
-O3  -c -o xwin.o `test -f 'xwin.cpp' || echo './'`xwin.cpp
In file included from xwin.cpp:122:
/usr/openwin/include/X11/Xlib.h:1894: error: ISO C++ forbids declaration 
of `
   XSetTransientForHint' with no type
/usr/openwin/include/X11/Xlib.h:1902: error: ISO C++ forbids declaration 
of `
   XActivateScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:1909: error: ISO C++ forbids declaration 
of `
   XAddHost' with no type
/usr/openwin/include/X11/Xlib.h:1917: error: ISO C++ forbids declaration 
of `
   XAddHosts' with no type
/usr/openwin/include/X11/Xlib.h:1924: error: ISO C++ forbids declaration 
of `
   XAddToExtensionList' with no type
/usr/openwin/include/X11/Xlib.h:1931: error: ISO C++ forbids declaration 
of `
   XAddToSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:1985: error: ISO C++ forbids declaration 
of `
   XAllowEvents' with no type
/usr/openwin/include/X11/Xlib.h:1991: error: ISO C++ forbids declaration 
of `
   XAutoRepeatOff' with no type
/usr/openwin/include/X11/Xlib.h:1997: error: ISO C++ forbids declaration 
of `
   XAutoRepeatOn' with no type
/usr/openwin/include/X11/Xlib.h:2004: error: ISO C++ forbids declaration 
of `
   XBell' with no type
/usr/openwin/include/X11/Xlib.h:2037: error: ISO C++ forbids declaration 
of `
   XChangeActivePointerGrab' with no type
/usr/openwin/include/X11/Xlib.h:2046: error: ISO C++ forbids declaration 
of `
   XChangeGC' with no type
/usr/openwin/include/X11/Xlib.h:2054: error: ISO C++ forbids declaration 
of `
   XChangeKeyboardControl' with no type
/usr/openwin/include/X11/Xlib.h:2064: error: ISO C++ forbids declaration 
of `
   XChangeKeyboardMapping' with no type
/usr/openwin/include/X11/Xlib.h:2075: error: ISO C++ forbids declaration 
of `
   XChangePointerControl' with no type
/usr/openwin/include/X11/Xlib.h:2088: error: ISO C++ forbids declaration 
of `
   XChangeProperty' with no type
/usr/openwin/include/X11/Xlib.h:2096: error: ISO C++ forbids declaration 
of `
   XChangeSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:2105: error: ISO C++ forbids declaration 
of `
   XChangeWindowAttributes' with no type
/usr/openwin/include/X11/Xlib.h:2162: error: ISO C++ forbids declaration 
of `
   XCirculateSubwindows' with no type

and so on...




-- 




l'habillement, les chaussures que le maquillage et les accessoires.


Post a reply to this message

From: Mike Andrews
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 09:40:01
Message: <web.40e564b7e60bfa2159735c0c0@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
[snip]
>  Thanks for testing the new build system of POV-Ray 3.6 for UNIX!
>
>  - Nicolas Calimet

I'm trying a compile under MSys (minimal shell system for MinGW).

Clean install of msys-1.0.10, gcc-3.4.0 most recent versions of necessary
packages.

../configure -without-x -without-svga ...

configures fine.

Running make is fine until

/mingw/bin/gcc -o mkg3states -I.././../zlib   -pipe -O3 -march=pentiumpro
-mtune=pentiumpro -malign-double -minline-all-stringops     -I.
-I../libtiff   ../libtiff/mkg3states.c
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x201):mkg3states.c:
undefined reference to `getopt'
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x24d):mkg3states.c:
undefined reference to `getopt'
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x257):mkg3states.c:
undefined reference to `optind'
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0xcd0):mkg3states.c:
undefined reference to `optarg'
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0xce2):mkg3states.c:
undefined reference to `optarg'
collect2: ld returned 1 exit status
make[3]: *** [tif_fax3sm.c] Error 1
make[3]: Leaving directory `/c/mike/povray-3.6/libraries/tiff/libtiff'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/mike/povray-3.6/libraries'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/mike/povray-3.6'
make: *** [all] Error 2

For some reason it doesn't seem to be finding <getopt.h> although this
should be in the include chain: "port.h" -> <unistd.h> -> <getopt.h>

Hmm ... even if I explicitly #include <getopt.h> I still get the same
errors.

Any ideas anyone?

Mike Andrews.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 10:53:45
Message: <40e576f9@news.povray.org>
In article <Xns951A8C68E5428jgrimbertmeandmyself@203.29.75.35> , Le Forgeron
<jgr### [at] freelocalhost>  wrote:

> Ok, downloaded and testing... on solaris 2.5.1, gcc 3.3.2, sparc-cpu
>
> Problem are:
> - vsnprintf is unknown (whereas vsprintf is ok)

Note that this suggest you have an extremely outdated standard C library.
vsnprintf has been part of the ISO C standard since 1999.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Le Forgeron
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 11:13:24
Message: <Xns951AAF349A4E3jgrimbertmeandmyself@203.29.75.35>


> In article <Xns951A8C68E5428jgrimbertmeandmyself@203.29.75.35> , Le
> Forgeron <jgr### [at] freelocalhost>  wrote:
> 
>> Ok, downloaded and testing... on solaris 2.5.1, gcc 3.3.2, sparc-cpu
>>
>> Problem are:
>> - vsnprintf is unknown (whereas vsprintf is ok)
> 
> Note that this suggest you have an extremely outdated standard C
> library. vsnprintf has been part of the ISO C standard since 1999.
> 
>     Thorsten

Agreed (and the X11 include (openwin) which are not ANSI C compliant is 
the biggest problem...)
Solaris 2.5.1 is really an old system.
Nevertheless, configure tests for vsprintf... it should also for 
vsnprintf, shouldn't it ?

I would say vs(n)printf is not very significant bug.

But being unable to configure when X is present but not wanted (or 
compatible, but C++ hates K&R syntax... so better compiling povray 
without X11 at all for me) is the real problem.
(And might not be limited to my solaris...)

I'll be offline for the weekend (which start right now!)


-- 




l'habillement, les chaussures que le maquillage et les accessoires.


Post a reply to this message

From: Thierry Boudet
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 12:25:55
Message: <40e58c93$1@news.povray.org>
Mike Andrews wrote:
> C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x201):mkg3states.c:
> undefined reference to `getopt'

    [...]

> For some reason it doesn't seem to be finding <getopt.h> although this
> should be in the include chain: "port.h" -> <unistd.h> -> <getopt.h>
> 
    You don't have "getopt" in you libraries.
    It was not a problem with the include.
    May be adding -lgetop will help...


Post a reply to this message

From: Mike Andrews
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 2 Jul 2004 13:50:00
Message: <web.40e59f4de60bfa2159735c0c0@news.povray.org>
Thierry Boudet <oul### [at] chezcom> wrote:
> Mike Andrews wrote:
> >
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x201):mkg3states.c:
> > undefined reference to `getopt'
>
>     [...]
>
> > For some reason it doesn't seem to be finding <getopt.h> although this
> > should be in the include chain: "port.h" -> <unistd.h> -> <getopt.h>
> >
>     You don't have "getopt" in you libraries.
>     It was not a problem with the include.
>     May be adding -lgetop will help...

Hi Thierry,

I should have noticed that it was at the link stage rather than at compile!
It's obviously been much too long since I did any serious compilation ...

I got PoV to compile first time with Cygwin so I not too bothered at the
moment :-) but I'll try to have another look at Mingw compiling over the
weekend.

Mike.


Post a reply to this message

From: Wolfgang Wieser
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 3 Jul 2004 06:50:31
Message: <40e68f76@news.povray.org>
Nicolas Calimet wrote:

> A beta version of the source distribution of POV-Ray 3.6 for UNIX is
> now available for download.  
>
Great! 

Just compiled it on a SuSE P4 with builddir!=sourcedir and 
--without-svga. Everything went fine. 

Then, I downloaded the sources without the bundeled libraries (well, I 
do not want to discuss this one here, sigh) to my home box. 

Running configure had some trouble: It detected pentiumpro optimization 
for my AthlonXP. This is because $host=i686 and "uname -p" yields an error 
because uname (at least on my debian system) does not know the option -p. 

One could do something like: 
  if test -f /proc/cpuinfo ; then
    case "$(fgrep "model name" /proc/cpuinfo | head -1)" in
      *Athlon*XP*)  etc ... ;;
      ...)
    esac
  fi

(The fgrep string will be 
"model name      : AMD Athlon(tm) XP processor 1700+"
in my case; especially note the "head -1" which is needed for SMP/HT 
systems.)

I'd suggest to use the /proc/cpuinfo primarily if we're not cross-compiling 
and /proc/cpuinfo is available. It gives easiest access to the supported 
extensions, too: 
bash# fgrep flags /proc/cpuinfo 
flags           : fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
Especially note "sse". 

Here is a list of accessible hardware: 

--P4:--
model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
--AthlonXP:--
model name      : AMD Athlon(tm) XP processor 1700+
flags           : fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
--P3:--
model name      : Pentium III (Coppermine)
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
--P1:--
model name      : Pentium 75 - 200
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
-----------

So, for now, I reverted to using --disable-optimiz and passing my own CFLAGS 
and CXXFLAGS which worked as expected. 

However, I did not test the installation routines since I am always using 
POVRay directly from the build directory. 

Great compliment to the HTML documentation. Especially the links make it 
much better to navigate and the index for searching will eliminate the 
need for "grep xyz -r doc/" in many cases. 

So, this was my feedback on _compiling_ the sources. I'll post something 
about the sources itself in p.programming shortly. 

Wolfgang


Post a reply to this message

From: Nicolas Calimet
Subject: Re: [beta] source distribution of POV-Ray 3.6 for UNIX
Date: 3 Jul 2004 07:20:32
Message: <40e69680$1@news.povray.org>
> - vsnprintf is unknown (whereas vsprintf is ok)

	As Thorsten wrote, this is a sign of too old C library.  And
reverting to the non-n version is not an option, nor is it to try to
provide an alternate implementation.  It is very likely that I will
just make configure stop with error if vsnprintf is not found.

> How the hell do you disable X Window display ?
> Retrying with ./configure --without-x ...
> Failed
> Retrying with ./configure --with-x=no ...
> Ditto.

	Thanks for reporting.
	Actually the option works (in either way shown above) on the systems
I could try it.  However it does not on your system, meaning that some test
is not robust enough.  The fix is very simple, so I'm confident it will work
next time for you.

	- NC


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.