[Top][All Lists]

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

Re: [SOLVED] Nokia 5130c-2: calendar: UNHANDLED FRAME RECEIVED

From: gnokii
Subject: Re: [SOLVED] Nokia 5130c-2: calendar: UNHANDLED FRAME RECEIVED
Date: Sun, 23 Jan 2011 13:57:55 +0530

> -----Original Message-----
> From: Daniele Forsi [mailto:address@hidden 
> Sent: 22 January 2011 15:52
> To: address@hidden
> Cc: address@hidden
> Subject: Re: Nokia 5130c-2: calendar: UNHANDLED FRAME RECEIVED
> 2011/1/22  <address@hidden>:
> > misc.c:192: error: 'PM_DEFAULT_S40_3RD' undeclared here 
> (not in a function)
> >
> > Was PM_DEFAULT_S40_3RD introduced in a later version of 
> gnokii than 0.6.29?
> yes, sorry
> you should use the git version (see "git" in also for
> a calendar bug fix for S40 3rd, else it will crash after you add that
> define
> -- 
> Daniele Forsi

Thanks Daniele and Pawel :-)

Now able to get a calendar.note.event from the phone, delete it on the phone
and write it back.

The fix was -- as you suggested -- to download,
edit misc.c changing

"5130 XpressMusic",  "RM-495",    PM_DEFAULT


"5130 XpressMusic",  "RM-495",   PM_DEFAULT_S40_3RD

(gotcha: the whitespace after the first comma is a space but after the
second a tab)

In case anyone wants to do this within a SlackBuild with sbopkg framework
here's the quick-and-dirty script used.  gnokii-master.tar.gz was renamed as
gnokii-0.6.30pre.tar.gz.  The repository directory /home/c/d/Repository/src/
is local.

=== script begins ===

# Configure script environment
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export PATH=/usr/sbin:/sbin:/usr/bin:/bin
set -e
set -o nounset
unalias -a

# Configuration variables
# ~~~~~~~~~~~~~~~~~~~~~~~
source /etc/sbopkg/sbopkg.conf
readonly PRGNAM=gnokii
#readonly VERSION=0.6.29
readonly VERSION=0.6.30pre
readonly app_area=office
readonly TMP=/tmp/SBo
readonly CWD=/tmp/$PRGNAM

# Cleanup
# ~~~~~~~
rm -fr /tmp/${PRGNAM:-dont_remove_tmp_if_PRGNAM_not_set}
rm -fr $TMP/$PRGNAM-*

# Setup and modify the SlackBuild
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cp -p $REPO_ROOT/$REPO_NAME/$REPO_BRANCH/$app_area/$PRGNAM.tar.gz /tmp/ &&
cd /tmp && tar xzvf $PRGNAM.tar.gz
cd $CWD
cp -p $PRGNAM.SlackBuild $
[[ $VERSION != 0.6.29 ]] && sed -i "s/0.6.29/$VERSION/" $PRGNAM.SlackBuild
sed -i 's/mkdir -p $TMP $PKG $OUTPUT/mkdir -p $PKG $OUTPUT/'
sed -i 's/rm -rf $PRGNAM-$VERSION/#rm -rf $PRGNAM-$VERSION/'
sed -i 's|tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2|#tar xvf
$CWD/$PRGNAM-$VERSION.tar.bz2|' $PRGNAM.SlackBuild
set +e
diff $ $PRGNAM.SlackBuild | tee
set -e

# Setup the source
# ~~~~~~~~~~~~~~~~
if [[ $VERSION = 0.6.29 ]]; then
cp -p $source_tarball /tmp/$PRGNAM
[[ ! -d $TMP ]] && mkdir $TMP
cd $TMP
tar xvf $CWD/${source_tarball##*/}

# Modify the source
# ~~~~~~~~~~~~~~~~~
if [[ $VERSION = 0.6.30pre ]]; then
    mv $PRGNAM-master $PRGNAM-$VERSION
    cp -p $PRGNAM-$VERSION/common/misc.c $PRGNAM-$VERSION/common/
    sed -i 's/"5130 XpressMusic",  "RM-495",\tPM_DEFAULT/"5130 XpressMusic",
"RM-495",   PM_DEFAULT_S40_3RD/' \
    set +e
    diff $PRGNAM-$VERSION/common/ $PRGNAM-$VERSION/common/misc.c |
tee $CWD/misc.c.diff
    set -e

# Prepare the source
# ~~~~~~~~~~~~~~~~~~
# Steps taken from
libtoolize -c -f
glib-gettextize -f -c
intltoolize --force --copy --automake
aclocal -I m4/
autoheader -I m4/
automake --add-missing

echo "Now: 
cd $CWD; ./$PRGNAM.SlackBuild"
=== script ends ===



reply via email to

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