Re: Problems compiling mp4h

Rolf Sponsel <[email protected]> Mon, 31 Jan 2005 19:18:20 +0100
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
Hi Françoise,

Until the wml build problems are solved,
you could try the steps I have used for
installing wml-2.0.9 on SPARC/Solaris 7.

They should work for you too.

myhost(1)# pwd
myhost(2)# tar zxvf wml-2.0.9.tar.gz	# <- Using GNU tar
myhost(3)# cd wml-2.0.9
myhost(4)# echo $PATH
/usr/local/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/usr/bin:/bin:/usr/xpg4/bin:/usr/ucb
myhost(5)# echo $LD_LIBRARY_PATH	# <- unsetting LD_LIBRARY_PATH,
/usr/local/lib				#    and setting LD_RUN_PATH,
	#    is the preferred method on Solaris, and is what I usually
	#    use myself - these days. Haven't tried it with wml though.
	# See:
	#	<http://www.visi.com/~barr/ldpath.html>
	# 	Why LD_LIBRARY_PATH is bad				

myhost(6)# ./configure --prefix=/usr/local/wml

myhost(7)# cd wml_backend/p2_mp4h	# <- This seems to be the trick!

myhost(8)# ./configure --without-modules
myhost(9)# cd ../..
myhost(10)# pwd
Path is : /tmp/wml-2.0.9
myhost(11)# make
myhost(12)# make test			# <- Not required.
myhost(13)# make install


Hope this helps!

/ Rolf

Françoise König-Jost, 2005-01-28 11:12 GMT +01:00, wrote:

> Hi,
> 
> I'm trying to install wml 2.0.9 on a Sun Solaris 9 system and I get
> in trouble when compiling mp4h :
> 
> ---------------------------
> Making all in modules
> Making all in system
> source='sh.c' object='sh.lo' libtool=yes depfile='.deps/sh.Plo' tmpdepfile='.deps/sh.TPlo' depmode=gcc3 /bin/bash ../../depcomp /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../src -I../../intl
>     -g -O2 -c -o sh.lo ./sh.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib -I../../src -I../../intl -g -O2 -c sh.c -MT sh.lo -MD -MP -MF .de
> ps/sh.TPlo  -fPIC -DPIC -o sh.lo
> /bin/bash ../../libtool --mode=link gcc  -g -O2   -no-undefined -module -avoid-version -rpath /FKtest/wml-2.0.9/l
> ib/mp4h/1.3.0/system -export-dynamic -o sh.la -rpath /FKtest/wml-2.0.9/lib/mp4h/1.3.0/system -module sh.lo  -ldl
> mkdir .libs
> rm -fr .libs/sh.la .libs/sh.* .libs/sh.*
> (cd . && ln -s sh.lo sh.o)
> /usr/ccs/bin/ld -G -z defs -h sh.so -o .libs/sh.so  sh.lo  -ldl -lc 
> Undefined                       first referenced
>  symbol                             in file
> error                               sh.lo
> xfree                               sh.lo
> module_load                         sh.lo
> current_file                        sh.lo
> current_line                        sh.lo
> array_current_file                  sh.lo
> array_current_line                  sh.lo
> expansion_level                     sh.lo
> read_file_verbatim                  sh.lo
> predefined_attribute                sh.lo
> remove_special_chars                sh.lo
> push_file                           sh.lo
> warning_status                      sh.lo
> xstrdup                             sh.lo
> ld: fatal: Symbol referencing errors. No output written to .libs/sh.so
> *** Error code 1
> make: Fatal error: Command failed for target all-recursive'
> Current working directory /FKtest/wml-2.0.9-src/wml_backend/p2_mp4h/modules
> *** Error code 1
> make: Fatal error: Command failed for target all'
> Current working directory /FKtest/wml-2.0.9-src/wml_backend/p2_mp4h
> *** Error code 1
> make: Fatal error: Command failed for target all'
> -----------------------------------------
> 
> I have tried compiling with either gcc (rel 3.3.2) or a Sun compiler
> (Sun ONE Studio 8) and linking with either /usr/ccs/bin/ld or
> /usr/ucb/ld, it does not make any difference. 
> 
> Could someone help, please ?
> 
> Thanks in advance,
> 
> Francoise Koenig
> 

-- 
----
------
--------

Rolf Sponsel

___________________________________________e_n_d___o_f___m_e_s_s_a_g_e_

_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]