gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnokii 0.6.29 and 0.6.32 master segfaults


From: Charles
Subject: Re: gnokii 0.6.29 and 0.6.32 master segfaults
Date: Wed, 25 Apr 2012 19:25:49 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120404 Thunderbird/11.0.1

On 25/04/12 15:13, Daniele Forsi wrote:
> ah, so the differences are that you're using a 64bit build and libusb-compat
> 
> Any chance you can try the same phone and gnokii version(s) on a
> computer with 32bit and/or libusb-0?
> 
>> > descriptor.c:707:1: error: implicit declaration of function ‘printf’
>> > descriptor.c:707:1: warning: incompatible implicit declaration of
>> > built-in function ‘printf’
> add this:
> #include <stdio.h>

I don't have a Slackware 13.37 (32-bit) OS so, yes, I could do it but
would have to start by downloading the installation media which would
take a couple of days (will start that now).  Can we continue
investigating on the existing OS first?

The same phone worked on Slackware64 13.1 with gnokii built from the
gnokii-master source downloaded on 22jun11.  Slackware64 13.1 had
libusb-1.0.6 and libusb-compat-0.1.3 -- whereas Slackware64 13.37 has
libusb-1.0.8 and the same libusb-compat-0.1.3.

Sorry for not realising stdio.h was required -- that's basic C programming!

I am not confident about getting the as-installed gnokii to use libusb
with the added debugging.  Was this the correct technique?

address@hidden:~# sed -i '22i\#include <stdio.h>'
/tmp/libusb-1.0.8/libusb/descriptor.c
address@hidden:~# sed -i '708i\        printf("%d %d %d\\n", di, si,
tbuf[0]);' /tmp/libusb-1.0.8/libusb/descriptor.c
[inspected the modified source; it looked as intended]
address@hidden:~# cd /tmp/libusb-1.0.8 && make
address@hidden:~# ls -l /tmp/package-libusb/usr/lib64/
total 84
lrwxrwxrwx 1 root root    19 Apr 25 18:56 libusb-0.1.so.4 ->
libusb-0.1.so.4.4.4
-rwxr-xr-x 1 root root 18024 Apr 25 18:40 libusb-0.1.so.4.4.4
-rwxr-xr-x 1 root root   939 Apr 25 18:40 libusb-1.0.la
lrwxrwxrwx 1 root root    19 Apr 25 18:56 libusb-1.0.so.0 ->
libusb-1.0.so.0.0.0
-rwxr-xr-x 1 root root 53488 Apr 25 18:40 libusb-1.0.so.0.0.0
-rwxr-xr-x 1 root root   951 Apr 25 18:40 libusb.la
drwxr-xr-x 2 root root    16 Apr 25 18:40 pkgconfig
[added /tmp/package-libusb/usr/lib64 to /etc/ld.so.conf]
address@hidden:~# cat /etc/ld.so.conf
/tmp/package-libusb/usr/lib64
/usr/local/lib
/usr/local/lib64
/usr/x86_64-slackware-linux/lib
/usr/lib64/seamonkey
address@hidden:~# ldconfig

Then ran the as-installed gnokii (so no debugging) but did not see the
expected output from libusb:

address@hidden:~$ gnokii --identify
GNOKII Version 0.6.32git
LOG: debug mask is 0x1
Config read from file /home/c/.config/gnokii/config.
phone instance config:
model = series40
port = 1
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
overrun: 1010 0
device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Segmentation fault





reply via email to

[Prev in Thread] Current Thread [Next in Thread]