[Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread Shrinivasan T
I am trying to compile dhvani in ubuntu 11.10

Got the code dhvani-0.95 from
http://sourceforge.net/projects/dhvani/

when compiling using just ./configure,
getting the error as
can not find zlib header.

zlib is there in my system.

$whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz

zlib1g-dev also installed in my system

To test the zlib availability,

 cat zlib.c
#include 
int main(){
printf("%s", (zlibVersion()));
}

gcc zlib.c -lz -o zlib-test
zlib.c: In function ‘main’:
zlib.c:3:1: warning: incompatible implicit declaration of built-in
function ‘printf’ [enabled by default]

shrinivasan@shrinivasan-ThinkPad-T410:~/test$ ./zlib-test
1.2.3.4


So, zlib is there.

Then why the dhvani can not find it?

Did anyone compiled dhvani in latest ubuntu?

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread 0

> when compiling using just ./configure,
> getting the error as
> can not find zlib header.
>

It will help if you can paste the error report from configure script.

-- 
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread Shrinivasan T
On Tue, Apr 10, 2012 at 7:34 PM, 0 <0...@0throot.com> wrote:
>
>> when compiling using just ./configure,
>> getting the error as
>> can not find zlib header.
>>
>
> It will help if you can paste the error report from configure script.

Get the output of ./configure here.
http://paste.ubuntu.com/923352/

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread Mohan L
On Tue, Apr 10, 2012 at 7:18 PM, Shrinivasan T wrote:

> I am trying to compile dhvani in ubuntu 11.10
>
> Got the code dhvani-0.95 from
> http://sourceforge.net/projects/dhvani/
>
> when compiling using just ./configure,
> getting the error as
> can not find zlib header.
>
> zlib is there in my system.
>
>
Hi Shrini,

In configure.in :

AC_CHECK_HEADER([gsm.h],, [AC_MSG_ERROR([[cannot find zlib header]])])

$ sudo apt-get install libgsm1 libgsm1-dev

Now try configure :

$./configure

 Thanks
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread Mohan L
On Tue, Apr 10, 2012 at 8:02 PM, Mohan L 

>
>>
> Hi Shrini,
>
> In configure.in :
>
> AC_CHECK_HEADER([gsm.h],, [AC_MSG_ERROR([[cannot find zlib header]])])
>


>
> $ sudo apt-get install libgsm1 libgsm1-dev
>
> Now try configure :
>
> $./configure
>
>
Just installing libgsm1-dev disappear "cannot find zlib header" error for
me. I just conformed in Ubuntu 11.10.

It seems it looks gsm.h header file and reports cannot find zlib header.
You can see this in configure.in file .

Thanks
Mohan L

>
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-10 Thread Shrinivasan T
Hi,


> Just installing libgsm1-dev disappear "cannot find zlib header" error for
> me. I just conformed in Ubuntu 11.10.

Thanks for the info.
I installed libgsm1-dev and the zlib error disappeared.

But, now soundtouch is giving errors.

Check the outout of ./configure here.
http://paste.ubuntu.com/924408/

output and error of make is here.
http://paste.ubuntu.com/924409/

$apt-cache search soundtouch
libsoundtouch-dev - Development files for the sound stretching library
libsoundtouch-ocaml - OCaml bindings for the sound stretching library
-- runtime files
libsoundtouch-ocaml-dev - OCaml bindings for the sound stretching
library -- runtime files
libsoundtouch0 - Sound stretching library
libsoundtouch0-dbg - Debugging symbols for the sound stretching library
liquidsoap-plugin-soundtouch - audio streaming language -- Soundtouch plugin
soundstretch - Stretches and pitch-shifts sound independently
libsoundtouch1c2 - sound stretching library

Installed all the above.

Still the make is seeking for some soundtouch library.

Did you compile dhvani successfully?






-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-11 Thread MohanR

> output and error of make is here.
> http://paste.ubuntu.com/924409/

I don't see errors in this link. Did you compile sucessfully?

Thanks,
Mohan R.
Watchout: another mohan here, not Mr.L.Mohan. I hope one day I'll be
like him.

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-11 Thread Shrinivasan T
>
> I don't see errors in this link. Did you compile sucessfully?


http://paste.ubuntu.com/925071/

Here is the correct error messages link.

Can't compile it.

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-11 Thread MohanR

> 
> http://paste.ubuntu.com/925071/
> 
> Here is the correct error messages link.
> 
> Can't compile it.
> 

Do a clean build from top directory. I seems 'autotools' messed-up
somewhere in previous compilation.

1. make distclean
2. make all

Thanks,
Mohan R

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-11 Thread Mohan L
On Wed, Apr 11, 2012 at 10:18 PM, MohanR  wrote:

>
> >
> > http://paste.ubuntu.com/925071/
> >
> > Here is the correct error messages link.
> >
> > Can't compile it.
> >
>
> Do a clean build from top directory. I seems 'autotools' messed-up
> somewhere in previous compilation.
>
> 1. make distclean
> 2. make all
>
>
Hi Srini,

I assume you have installed libsoundtouch-dev, libsoundtouch0 library.

Try the above suggested by Mohan R. If you have still problem. Try this in
your top source directory :

$ make distclean
$ aclocal
$ libtoolize
$ autoconf
$ automake -a
$./configure
$ make
$ sudo make install

Sometimes you don't need to run libtoolize manually. automake -a will run
it for you.

Thanks
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-16 Thread Shrinivasan T
>
> $ make distclean
> $ aclocal
> $ libtoolize
> $ autoconf
> $ automake -a
> $./configure
> $ make
> $ sudo make install
>


Thanks for the detailed steps.

I compiled successfully.

But, when called dhvani to read any text file, getting the following error.
Segmentation fault (core dumped)

How to make it working?


-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] compiling dhvani in ubuntu 11.10

2012-04-16 Thread Mohan L
> Thanks for the detailed steps.
>
> I compiled successfully.
>
> But, when called dhvani to read any text file, getting the following error.
> Segmentation fault (core dumped)
>
> How to make it working?
>
>
While posting bug in mailing list please try to give more information to
reproduce error.

I have compiled dhvani in my Ubuntu to help your previous configuration
issue. I just tried some thing like  :

$ dhvani -t "നമസ്കാരം"
Segmentation fault

I am not sure why it is reporting the run time error: Segmentation fault. I
used strace and gdb to trace the issue.

I took strace :

$strace dhvani -t "നമസ്കാരം"

open(NULL, O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EFAULT *(Bad address)*
fstat64(8, {st_mode=S_IFREG|0664, st_size=35818, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb27d4000
read(8,
"\21\0\31\0Q\0h\0{\0f\0Q\0T\0;\0i\0\265\0\276\0\276\0\237\0|\0z\0"...,
8192) = 8192
brk(0x9156000)  = 0x9156000
---* SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++*
Segmentation fault

Then I used gdb to see what is the problem :


$ gdb dhvani
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/local/bin/dhvani...done.


(gdb) run dhvani -t "നമസ്കാരം"
Starting program: /usr/local/bin/dhvani dhvani -t "നമസ്കാരം"
[Thread debugging using libthread_db enabled]
[New Thread 0xb37cbb70 (LWP 7191)]

Program received signal SIGSEGV, Segmentation fault.
0xb7e7a3e5 in fwrite () from /lib/i386-linux-gnu/libc.so.6


See the above output. It through  the SIGSEGV signal from the operating
system. This means that I am trying to access an invalid memory address.
Let's take a backtrace:

(gdb) backtrace
*#0  0xb7e7a3e5 in fwrite () from /lib/i386-linux-gnu/libc.so.6*
#1  0xb7fb34a3 in process_pitch_tempo (options=0x804c3f8,
inputfile_name=0x8071da8 "/tmp/dhvani-st7188", output_filename=0x0)
at soundtouch_utils.c:136
#2  0xb7fb83b6 in process_sound () at synthesizer.c:1646
#3  0xb7fb8936 in speak_text (text=0xb4eb "നമസ്കാരം", usr_language=-1)
at synthesizer.c:1905
#4  0xb7fb8c45 in text_to_speech (string=0xb4eb "നമസ്കാരം",
dhvani_opts=0x804c3f8) at synthesizer.c:1986
#5  0xb7f9dcd3 in dhvani_say (string=0xb4eb "നമസ്കാരം",
options=0x804c3f8) at dhvani_lib.c:74
#6  0x08048c6e in main (argc=4, argv=0xb334) at dhvani.c:198

The above output says fwrite() call in glibc reports Segmentation fault.
so I want to switch to stack frame 1 and see where the program crashed:

(gdb) frame 1
#1  0xb7fb34a3 in process_pitch_tempo (options=0x804c3f8,
inputfile_name=0x8071da8 "/tmp/dhvani-st7188", output_filename=0x0)
at soundtouch_utils.c:136
136fwrite(buffer, sizeof(short), read_count, out);


the program crashed inside the call to fwrite() and also note the address
of output_filename : it is output_filename=0x0  , output_filename pointing
invalid address.

(gdb) print out
$1 = (FILE *) 0x0

the value of out is 0x0, which is the NULL pointer. This is not what we
want - out should be stdout/output file. It indicates that I have to pass
proper output file to store output.

then I tried with output file name :

$ dhvani -t "നമസ്കാരം"  -o first.wav

Now it works for me.

Your problem may be something else. But this the way to get idea of why it
is giving Segmentation fault.


Thanks
Mohan L
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc