POV-Ray : Newsgroups : povray.unix : POV-Ray 3.6.1 fails to build on latest Arch Linux x64 ... Server Time
23 Dec 2024 07:21:49 EST (-0500)
  POV-Ray 3.6.1 fails to build on latest Arch Linux x64 ... (Message 1 to 2 of 2)  
From: skine0z
Subject: POV-Ray 3.6.1 fails to build on latest Arch Linux x64 ...
Date: 13 Nov 2012 05:25:01
Message: <web.50a21c4eb2927878a7421ea00@news.povray.org>
Hi all,

I'm trying to build POV-Ray 3.6.1 on Arch Linux x64 up-to-date. First of all i
found out that the version of libpng installed on my system (1.5) was too recent
for this version of POV-Ray and i was getting this type of error at the end of
the build log :

png_pov.cpp:1678:21: warning: 'png_struct_def::color_type' is deprecated
(declared at /usr/local/include/libpng15/png.h:1255) [-Wdeprecated-declarations]
make[2]: *** [png_pov.o] Error 1
make[2]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/source'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/source'
make: *** [install-recursive] Error 1

So i installed libpng 1.4 and 1.2 side by side with 1.5 (my O/S relies on 1.5),
things were the same with libpng 1.4 BUT are better with libpng 1.2 ... i'm
close to successfully build POV-Ray by linking this version of libpng and now
the log file ends like this :

make[1]: Entering directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/unix'
g++  -pipe -Wno-multichar -O3 -msse -mfpmath=sse -msse2 -march=k8 -mtune=k8
-malign-double -minline-all-stringops  -Wno-write-strings
-L/usr/local/libpng12/lib -lpng12 -o povray  svga.o unix.o xwin.o
...../source/libpovray.a ../source/base/libbase.a
.../source/frontend/libfrontend.a
-ltiff -ljpeg -lz -lXpm   -lSM -lICE -lX11 -lm
...../source/libpovray.a(png_pov.o): In function `pov::PNG_Image::~PNG_Image()':
png_pov.cpp:(.text+0xd1f): undefined reference to `png_write_finish_row'
collect2: error: ld returned 1 exit status
make[1]: *** [povray] Error 1
make[1]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/unix'
make: *** [install-recursive] Error 1

Now i have the famous "collect2: error: ld returned 1 exit status" but i don't
know how to solve it.

You can note that "march" and "mtune" are set to "k8" AND i have an INTEL Corei7
CPU ... is it the cause of the problem ?

Thank you for your help,

Best Regards


Post a reply to this message

From: skine0z
Subject: Re: POV-Ray 3.6.1 fails to build on latest Arch Linux x64 ...
Date: 13 Nov 2012 14:25:01
Message: <web.50a29e41fb5bcb1ba7421ea00@news.povray.org>
Hello,

I found the solution to my problem in another post of this forum : it's simple
.... i just add "--disable-lib-checks" to the configure command line in order to
force the configure script to use the libraries bundled in the POV-Ray source
package and it worked !

Regards


Post a reply to this message

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