LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2013, 01:09 PM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Rep: Reputation: 1
error with "png_struct"


Hi,

I am installing a package called povray version 3.6. When I type "make", I receive the following error on fedora 19:

Quote:
/usr/include/png.h:857:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
typedef struct png_struct_def png_struct;
Your comments for solving this problem will be highly appreciated.
 
Old 11-07-2013, 02:05 PM   #2
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 470

Rep: Reputation: Disabled
Never installed it but, Read the install directions and make sure you are running make from the right directory.
 
Old 11-07-2013, 03:05 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
'povray version 3.6' : Problematic. Old version. Very old. 2006 ?
Fixes are available.
Would take some time to try out all "maybe fixes".

Easier : Set up a (temporary) 'atrpms repo'.
( Atrpms is not compatible with the main repos. Updates would fail.
# 'yum install povray' : Will provide povray-3.7.0.RC7-1.fc19

Compiling : povray-3.7.0.RC7 will build on Fedora 19 with no errors.
http://www.povray.org/beta/ >>
>> http://www.povray.org/redirect/www.p....0.RC7.tar.bz2
> povray-3.7.0.RC7.tar.bz2

-
 
1 members found this post helpful.
Old 11-08-2013, 12:06 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
that OLD version of the ray tracer "pov-ray"
is looking for the libpng12 source code
fedora 19 has libpng15

see the problem
also that OLD povray code was built for a OLD version of gcc
( a guess gcc 4.0 )
the current gcc 4.8 in fedora is WAY WAY WAY MORE strict in coding standards

if you MUST use a old version of that program on a VERY VERY NEW operating system , you will have some problems

install gcc 4.1 or 3.4 alongside the 4.8 that is installed ( from source)
install the old libpng 12 ( from source )

force the old version of povray to build with libpng 12 instead of the default 15


I would use the current version of pov-ray
http://www.povray.org/beta/

atrpms repo has it " povray-3.7.0.RC7-1.fc19 "
install the atrpms.repo ( and the yum-prioritizes plugin and CONFIGURE IT !!!!!! )
then use yum to install povray

the repo rpm -- 64 bit !!!
http://dl.atrpms.net/f19-x86_64/atrp...7-1.noarch.rpm

Last edited by John VV; 11-08-2013 at 12:09 AM.
 
Old 11-08-2013, 01:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 4 .

Fedora 19 comes with 'libpng12-devel'.
Not really any help for povray-6.1, that will still fail
(Fedora 19 / gcc-4.8.1).
But with another libpng error.

-
 
Old 11-08-2013, 07:21 AM   #6
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
I did't use atrpms repo. But, I have also tried the newer version of povray (3.7.0) and here is the error I got:

Quote:
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for boostlib >= 1.37... yes
checking whether the Boost::Thread library is available... yes
checking whether the boost thread library is usable... no
configure: error: in `/home/sara/Packages/povray-3.7.0.RC7':
configure: error: cannot link with the boost thread library
See `config.log' for more details
I searched the config.log, but I can't see what library is missing!!!
Attached Files
File Type: txt config.log.txt (37.2 KB, 5 views)
 
Old 11-08-2013, 08:53 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 6 .

How is your ./configure command ?

This will do : $ ./configure COMPILED_BY="Name mail@mail.foo"
... with Fedora 19 / povray-3.7.0.RC7.tar.bz2

P.S. : The 32bits Fedora 19 was used. Which is yours ?


-

Last edited by knudfl; 11-08-2013 at 08:57 AM.
 
Old 11-08-2013, 09:11 AM   #8
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Quote:
# 6 .

How is your ./configure command ?

This will do : $ ./configure COMPILED_BY="Name mail@mail.foo"
The configure I used is like what you said. I just erased the name and email in config.log when I wanted to post it here.

Quote:
P.S. : The 32bits Fedora 19 was used. Which is yours ?
Mine is 64bits
 
Old 11-08-2013, 10:09 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 8 .

OK, I will try with a test compile on the 64bits Fedora.


# 6 : Why don't you install the Atrpms package ?

-
 
1 members found this post helpful.
Old 11-08-2013, 01:02 PM   #10
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Thanks installed by Atrpms. Just need to find how to make an input file for it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "SDA must have a GPT disk label" error while installing RHEL6 - "IBM x3650 M3" Server garbagegigo@gmail.com Linux - Server 12 02-25-2014 06:34 PM
"bad tty" & "file descriptor error" while building RPM on F13 gosssamer Linux - Software 7 12-28-2010 06:02 PM
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 08:54 AM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 02:16 PM
Regular expression matching , match "error string" but not "other error" jmcmillan Programming 3 07-07-2008 10:50 AM


All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration