LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-29-2010, 10:26 AM   #1
bharat411
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Make fails when trying to install SoX. Libpng problems.


I'm trying to install SoX, and get through configure fine, but it fails on make with the following:

Code:
/bin/sh ../libtool --silent  --tag=CC  --silent --mode=compile gcc -DHAVE_CONFIG_H
-I.  -DLADSPA_PATH="\"/var/tmp/sox/sox14/lib/ladspa\"" -DPKGLIBDIR="\"/var/tmp/sox
/sox14/lib/sox\""    -Wconversion    -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-
prototypes -Wstrict-prototypes -pedantic -MT libsox_la-spectrogram.lo -MD -MP -MF 
.deps/libsox_la-spectrogram.Tpo -c -o libsox_la-spectrogram.lo `test -f 
'spectrogram.c' || echo './'`spectrogram.c
spectrogram.c: In function `stop':
spectrogram.c:593: warning: implicit declaration of function `png_set_rows'
spectrogram.c:594: warning: implicit declaration of function `png_write_png'
spectrogram.c:594: `PNG_TRANSFORM_IDENTITY' undeclared (first use in this function)
spectrogram.c:594: (Each undeclared identifier is reported only once
spectrogram.c:594: for each function it appears in.)
make[1]: *** [libsox_la-spectrogram.lo] Error 1
make[1]: Leaving directory `/var/tmp/sox/sox-14.3.1/src'
make: *** [all-recursive] Error 1
I'm guessing this is more of a linker/pointer error than anything else because this is the beginning of spectrogram.c

Code:
#include "sox_i.h"
#include "fft4g.h"
#include "sgetopt.h"
#include <assert.h>
#include <math.h>
#include <png.h>
png.h is included, which is where PNG_TRANSFORM_IDENTITY is supposed to come from. Am I missing something? Any help at all would be appreciated

Thanks!
 
Old 10-30-2010, 01:20 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 668

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by bharat411 View Post
I'm trying to install SoX, and get through configure fine, but it fails on make with the following:

Code:
/bin/sh ../libtool --silent  --tag=CC  --silent --mode=compile gcc -DHAVE_CONFIG_H
-I.  -DLADSPA_PATH="\"/var/tmp/sox/sox14/lib/ladspa\"" -DPKGLIBDIR="\"/var/tmp/sox
/sox14/lib/sox\""    -Wconversion    -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-
prototypes -Wstrict-prototypes -pedantic -MT libsox_la-spectrogram.lo -MD -MP -MF 
.deps/libsox_la-spectrogram.Tpo -c -o libsox_la-spectrogram.lo `test -f 
'spectrogram.c' || echo './'`spectrogram.c
spectrogram.c: In function `stop':
spectrogram.c:593: warning: implicit declaration of function `png_set_rows'
spectrogram.c:594: warning: implicit declaration of function `png_write_png'
spectrogram.c:594: `PNG_TRANSFORM_IDENTITY' undeclared (first use in this function)
spectrogram.c:594: (Each undeclared identifier is reported only once
spectrogram.c:594: for each function it appears in.)
make[1]: *** [libsox_la-spectrogram.lo] Error 1
make[1]: Leaving directory `/var/tmp/sox/sox-14.3.1/src'
make: *** [all-recursive] Error 1
I'm guessing this is more of a linker/pointer error than anything else because this is the beginning of spectrogram.c

Code:
#include "sox_i.h"
#include "fft4g.h"
#include "sgetopt.h"
#include <assert.h>
#include <math.h>
#include <png.h>
png.h is included, which is where PNG_TRANSFORM_IDENTITY is supposed to come from. Am I missing something? Any help at all would be appreciated

Thanks!
png.h is included, but likely you haven't this file on your system.

On Fedora you have to install libpng-devel package. If you use other distribution - something similar.
 
Old 10-30-2010, 01:40 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 239Reputation: 239Reputation: 239
png.h is in libpng12-dev on my debian 5.0 system. Which implies that libpng12-0 is also installed. If you're on debian.

# apt-get install libpng12-0 libpng12-dev
 
  


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
Sodipodi fails to install - I "need libpng"...? tengun Linux - Software 2 09-23-2007 11:26 AM
pango install fails on make install Seph64 Linux From Scratch 1 10-16-2005 12:17 AM
make install fails for BBTV... no TV for me :( jimdaworm Linux - Newbie 11 05-10-2005 11:32 PM
mplayerplug-in 2.8 fails to make install awing_pilot Linux - Software 2 03-12-2005 06:30 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-06-2004 12:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration