[suncommunity] Re: Error compiling Xine

  • From: suresh kolan <kolansuresh9@xxxxxxxxx>
  • To: suncommunity@xxxxxxxxxxxxx
  • Date: Sun, 31 Aug 2003 16:53:48 -0700 (PDT)

Looks like the compiler is getting the argument -L.

Following is the output before it bails out....

-----------------------------------------------------
/bin/bash ../../libtool-nofpic --mode=link gcc 
-Wchar-subscripts -Wmissing-decl
arations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wal
l -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE 
-O3 -mcpu=ultrasparc -mtun
e=ultrasparc -funroll-loops -funroll-all-loops
-finline-functions    -o xineplug
_decode_image.la -rpath
/usr/local/lib/xine/plugins/1.0.0 -avoid-version
-module
 -export-symbols-regex xine_plugin_info image.lo
../../src/xine-engine/libxine.l
a -ldl -lpng12 -lz -lm -lposix4
rm -fr .libs/xineplug_decode_image.la
.libs/xineplug_decode_image.* .libs/xinepl
ug_decode_image.*
generating symbol list for `xineplug_decode_image.la'
/usr/ccs/bin//nm -p  image.lo  | sed -n -e 's/^.*[    
 ]\([BDT][BDT]*\)[      ]
[       ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' | sed 's/.* //' | sort |
 uniq > .libs/xineplug_decode_image.exp
egrep -e "xine_plugin_info"
".libs/xineplug_decode_image.exp" > ".libs/xineplug_
decode_image.expT"
mv -f ".libs/xineplug_decode_image.expT"
".libs/xineplug_decode_image.exp"
echo "{ global:" > .libs/xineplug_decode_image.so.exp
cat .libs/xineplug_decode_image.exp | sed -e
"s/\(.*\)/\1;/" >> .libs/xineplug_d
ecode_image.so.exp
echo "local: *; };" >>
.libs/xineplug_decode_image.so.exp
 /usr/ccs/bin/ld -G -M
.libs/xineplug_decode_image.so.exp -h
xineplug_decode_ima
ge.so -o .libs/xineplug_decode_image.so  image.lo 
-R/opt/xine-lib-1-rc0a/src/xi
ne-engine/.libs -R/usr/local/lib 
../../src/xine-engine/.libs/libxine.so -ldl -l
png12 -lz -lm -lposix4  -lc 
ld: fatal: library -lpng12: not found
ld: fatal: File processing errors. No output written
to .libs/xineplug_decode_im
age.so
*** Error code 1
make: Fatal error: Command failed for target
`xineplug_decode_image.la'
Current working directory
/opt/xine-lib-1-rc0a/src/libxinevdec
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive'
Current working directory /opt/xine-lib-1-rc0a/src
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive'
Current working directory /opt/xine-lib-1-rc0a
*** Error code 1
make: Fatal error: Command failed for target `all'

-------------------------------------------------------
--- "Michael A. Moran" <mamoran@xxxxxxxxxxx> wrote:
>  
> LD_LIBRARY_PATH tells the OS where to look for
> dynamic libraries at
> run-time. The -L /some/path option tells the
> compiler where to look for
> compiling and linking.  Check to see that the
> compiler is getting a '-L
> /usr/local/lib'  argument.
> 
> Michael A. Moran
> 
> 
> suresh kolan wrote:
> Hi, Sorry it was a typo in the LD_LIBRARY_PATH in my
> mail. I have
> /usr/local/lib in my LD_LIBRARY_PATH. I reran the
> "make" again and I am
> getting same error message. I have looked into the
> config.log file and it
> doesnt seems to have problem with finding
> libpng...Following is the output
> inthe config.log file configure:18998: checking for
> libpng-config
> configure:19016: found /usr/local/bin/libpng-config
> configure:19029: result:
> /usr/local/bin/libpng-config configure:19125:
> checking for freetype-config
> configure:19156: result: no configure:19164: result:
> *** freetype-config not
> found, freetype2 support disabl ed *** .... ....
>
ac_cv_path_LIBPNG_CONFIG=/usr/local/bin/libpng-config
> ... ...
> LIBPNG_CONFIG='/usr/local/bin/libpng-config' ...
> .... PNG_LIBS='-lpng12 -lz
> -lm' Thanks Kolan --- Wayne Abbott
> <wabbott@xxxxxxxxxxxxx>[1] wrote: Since
> your configure command was successful take a look at
> config.log and search
> for "png" - maybe something will jump out at you. I
> took a look at my
> /usr/local/lib directory and it does seem that
> libpng is ultimately called
> libpng12.xxx now - I hadn't noticed that before
> since I've been using libpng
> for quite some time. In any case make sure your
> LD_LIBRARY_PATH is set
> correctly - you mentioned /usr/local/bin instead of
> /usr/local/lib. Regards
> Wayne Thanks for your reply. I am trying to install
> xine-lib-1-rc0a.
> According to the instructions from xine.de website,
> I was successfully able
> to do "./configure". But when I run the "make"
> command I am getting this
> error message. I have /usr/local/bin in the
> LD_LIBRARY_PATH. The "make" did
> run for long time..and then it gave me this error
> msg. I have 5.9
> Generic_112233-01 sun4u sparc SUNW. I have gcc 3.2
> installed Best Regards
> Kolan --- Wayne Abbott <wabbott@xxxxxxxxxxxxx>[2]
> wrote: Not knowing what
> you've done thus far can you give us more
> information (i.e. which S9 update,
> what compiler and version, what required libs have
> you installed, etc.)? Did
> your configure command run without errors? If not
> check config.log to see
> what happened. In any case the -lpng12 seems funny
> to me. I would think it
> should be -lpng which should properly find libpng
> assuming your
> LD_LIBRARY_PATH includes where the library is
> located which is typically
> /usr/local/lib. Regards Wayne Hi, I am trying to
> install xine on Sun solaris
> 9, and I am getting the following error message. Any
> pointers will be
> greatlyappreciated. ld: fatal: library -lpng12: not
> found ld: fatal: File
> processing errors. No output written to
> .libs/xineplug_decode_image.so ***
> Error code 1 make: Fatal error: Command failed for
> target
> `xineplug_decode_image.la' Current working directory
> /opt/xine-lib-1-rc0a/src/libxinevdec *** Error code
> 1 make: Fatal error:
> Command failed for target `all-recursive' Current
> working directory
> /opt/xine-lib-1-rc0a/src *** Error code 1 make:
> Fatal error: Command failed
> for target `all-recursive' Current working directory
> /opt/xine-lib-1-rc0a
> ***Error code 1 make: Fatal error: Command failed
> for target `all'
> __________________________________ Do you Yahoo!?
> Yahoo! SiteBuilder - Free,
> easy-to-use web site design software
> http://sitebuilder.yahoo.com[3] 
> 
> 
> --- Links ---
>    1 mailto:wabbott@xxxxxxxxxxxxx
>    2 mailto:wabbott@xxxxxxxxxxxxx
>    3 http://sitebuilder.yahoo.com
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Other related posts: