ok :-/

once again, step by step from beginning ;)

1. create a folder for amr and change to it
mkdir -p ~/src/amr
cd ~/src/amr

2. download the files
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-520.zip
wget http://www.mbuni.org/downloads/mbuni-amr-patch

3. unzip the amr-archive
unzip 26104-520.zip
unzip 26104-520_ANSI_C_source_code.zip

4. patching the files
patch -p1 < mbuni-amr-patch

if i make these steps i get the result:
patching file decoder.c
patching file encoder.c
patching file makefile.gcc

5. copy it to your server


Appendix:
it is not a problem to rearchive the zip into another format and copy it
to the server and run the steps on it. only the 3rd point differ then.

if it don't work anyway i would check, if your patch tool is possibly outdated.
i have installed 
patch 2.5.9-5
and 
patchutils 0.2.31-4

br,
thomas


On Tue, Jun 08, 2010 at 11:04:21PM -0400, Jin Ser wrote:
| Hi,
| 
|  My problem for the patch is still the same error even when I logged in as
| root and ran the command. The error is exactly the same as before which was:
| 
| 
| patching file decoder.c
| | > Hunk #1 FAILED at 14.
| | > Hunk #2 FAILED at 83.
| | > 2 out of 2 hunks FAILED -- saving rejects to file decoder.c.rej
| | > patching file encoder.c
| | > Hunk #1 FAILED at 121.
| | > 1 out of 1 hunk FAILED -- saving rejects to file encoder.c.rej
| | > patching file makefile.gcc
| | > Reversed (or previously applied) patch detected!  Assume -R? [n] n
| | > Apply anyway? [n] y
| | > Hunk #1 FAILED at 53.
| | > Hunk #2 FAILED at 78.
| | > Hunk #3 FAILED at 114.
| | > 3 out of 3 hunks FAILED -- saving rejects to file makefile.gcc.rej
| 
| This is the right patch code right?
| http://www.mbuni.org/downloads/mbuni-amr-patch The error seems to indicate
| errors in the code itself.
| 
| I also ran through the number and name of each file to make sure there were
| no extra files or missing files.
| 
| I appreciate all the help and suggestions so far, thanks!
| 
| 
| On Tue, Jun 8, 2010 at 12:24 PM, <users-requ...@mbuni.org> wrote:
| 
| > Send Users mailing list submissions to
| >        users@mbuni.org
| >
| > To subscribe or unsubscribe via the World Wide Web, visit
| >        http://lists.mbuni.org/mailman/listinfo/users
| > or, via email, send a message with subject or body 'help' to
| >        users-requ...@mbuni.org
| >
| > You can reach the person managing the list at
| >        users-ow...@mbuni.org
| >
| > When replying, please edit your Subject line so it is more specific
| > than "Re: Contents of Users digest..."
| >
| >
| > Today's Topics:
| >
| >   1. Re: Re: Users Digest, Vol 44, Issue 2 (Thomas Sieh)
| >   2. MM7 on MBuni (William Beachley)
| >
| >
| > ----------------------------------------------------------------------
| >
| > Message: 1
| > Date: Mon, 7 Jun 2010 19:40:09 +0200
| > From: Thomas Sieh <ts...@gmx.de>
| > Subject: Re: [Users] Re: Users Digest, Vol 44, Issue 2
| > To: users@mbuni.org
| > Message-ID: <20100607174009.gt20...@zecke.blacklist.selfip.org>
| > Content-Type: text/plain; charset="utf-8"
| >
| > hi,
| >
| > i have to say again, that i never tried it by myself, but i would do the
| > following as ROOT-user:
| >
| > 1. change to your amr folder, that contains the following files. If you
| > can't extract the file on the server, its ok to create an other archive
| > or whatever and copy it to the server...
| >
| > decoder.c
| > interf_dec.h
| > interf_rom.h
| > readme.txt
| > sp_dec.c
| > sp_enc.h
| > encoder.c
| > interf_enc.c
| > makefile.gcc
| > rom_dec.h
| > sp_dec.h
| > typedef.h
| > interf_dec.c
| > interf_enc.h
| > makefile.win32
| > rom_enc.h
| > sp_enc.c
| >
| > 2. copy your patch-file (mbuni-amr-patch) into it, too
| > it should look like this:
| >
| > decoder.c
| > interf_dec.h
| > interf_rom.h
| > readme.txt
| > sp_dec.c
| > sp_enc.h
| > encoder.c
| > interf_enc.c
| > makefile.gcc
| > rom_dec.h
| > sp_dec.h
| > typedef.h
| > interf_dec.c
| > interf_enc.h
| > makefile.win32
| > rom_enc.h
| > sp_enc.c
| > mbuni-amr-patch
| >
| > 3. now run the following command:
| > patch -p1 < mbuni-amr-patch
| > dependent on the folder you have to be ROOT!
| >
| >
| > 4. now you should have your patched amr-software
| > which you can compile
| >
| >
| >
| > On Mon, Jun 07, 2010 at 11:59:05AM -0400, Jin Ser wrote:
| > | thanks! I managed to solve the autoconf problem. Turns out my version was
| > | 2.10. I installed the latest version at 2.65 and that problem is
| > resolved.
| > |
| > | However, I am still unable to resolve the patch. I am in the amr folder
| > and
| > | I did use the exact address of the patch file, which was
| > ~/mbuni-amr-patch
| > | in my case.
| > |
| > | I was unable to use zip in my server so I unzipped it on my computer and
| > | saved it as a .tgz file in order to tar it on the server. In the amr
| > folder,
| > | there is another folder labeled '26104-520_ANSI_C_source_code.
| > |
| > | Could it be something wrong with the patch itself? And by that I mean
| > that I
| > | saved the file from the page:
| > | http://www.mbuni.org/downloads/mbuni-amr-patchwhich was given in the
| > | downloads section.
| > |
| > | It also did not work when I saved the text as a RTF.
| > |
| > |
| > | On Sun, Jun 6, 2010 at 12:24 PM, <users-requ...@mbuni.org> wrote:
| > |
| > | > Send Users mailing list submissions to
| > | >        users@mbuni.org
| > | >
| > | > To subscribe or unsubscribe via the World Wide Web, visit
| > | >        http://lists.mbuni.org/mailman/listinfo/users
| > | > or, via email, send a message with subject or body 'help' to
| > | >        users-requ...@mbuni.org
| > | >
| > | > You can reach the person managing the list at
| > | >        users-ow...@mbuni.org
| > | >
| > | > When replying, please edit your Subject line so it is more specific
| > | > than "Re: Contents of Users digest..."
| > | >
| > | >
| > | > Today's Topics:
| > | >
| > | >   1. Installation of 3GPP AMR encoder/decoder patch (Jin Ser)
| > | >   2. Re: Installation of 3GPP AMR encoder/decoder patch (Thomas Sieh)
| > | >
| > | >
| > | > ----------------------------------------------------------------------
| > | >
| > | > Message: 1
| > | > Date: Sun, 6 Jun 2010 00:29:29 -0400
| > | > From: Jin Ser <ser...@seas.upenn.edu>
| > | > Subject: [Users] Installation of 3GPP AMR encoder/decoder patch
| > | > To: users@mbuni.org
| > | > Message-ID:
| > | >        <aanlktimnot3utuosnb6xqvyzr1is9u8i6b2dqkpnl...@mail.gmail.com>
| > | > Content-Type: text/plain; charset="iso-8859-1"
| > | >
| > | > I'm having a problem with this installation with the command line:
| > | >
| > | > sudo patch -p1 < .../mbuni-amr-patch
| > | >
| > | > When running this, I get the following error:
| > | >
| > | > patching file decoder.c
| > | > Hunk #1 FAILED at 14.
| > | > Hunk #2 FAILED at 83.
| > | > 2 out of 2 hunks FAILED -- saving rejects to file decoder.c.rej
| > | > patching file encoder.c
| > | > Hunk #1 FAILED at 121.
| > | > 1 out of 1 hunk FAILED -- saving rejects to file encoder.c.rej
| > | > patching file makefile.gcc
| > | > Reversed (or previously applied) patch detected!  Assume -R? [n] n
| > | > Apply anyway? [n] y
| > | > Hunk #1 FAILED at 53.
| > | > Hunk #2 FAILED at 78.
| > | > Hunk #3 FAILED at 114.
| > | > 3 out of 3 hunks FAILED -- saving rejects to file makefile.gcc.rej
| > | >
| > | > I have saved the patch to a file before uploading it to my Ubuntu Lucid
| > | > server.
| > | >
| > | > Also, I have not successfully installed the gateway, as I get this
| > error
| > | > when I run ./bootstrap:
| > | >
| > | > autoconf: configure.in: No such file or directory
| > | >
| > | > Can I get help with this? I do not have much experience setting up such
| > | > gateways.
| > | >
| > | > Thanks!
| > | > -------------- next part --------------
| > | > An HTML attachment was scrubbed...
| > | > URL:
| > | >
| > 
http://lists.mbuni.org/pipermail/users/attachments/20100606/e2cb481d/attachment-0001.html
| > | >
| > | > ------------------------------
| > | >
| > | > Message: 2
| > | > Date: Sun, 6 Jun 2010 13:38:03 +0200
| > | > From: Thomas Sieh <ts...@gmx.de>
| > | > Subject: Re: [Users] Installation of 3GPP AMR encoder/decoder patch
| > | > To: users@mbuni.org
| > | > Message-ID: <20100606113803.gk20...@zecke.blacklist.selfip.org>
| > | > Content-Type: text/plain; charset="utf-8"
| > | >
| > | > hi,
| > | >
| > | > i have never installed it by myself, but i have an idea what could be
| > | > the problem.
| > | >
| > | > have you tried
| > | >
| > | > sudo patch -p1 < ../mbuni-amr-patch
| > | > instead of
| > | > sudo patch -p1 < .../mbuni-amr-patch
| > | >
| > | > are you in the correct directory?
| > | >
| > | >
| > | > is there no other output from ./bootstrap?
| > | > which version of autoconf do you use?
| > | > i don't know, but i suppose you have got an old autoconf installed,
| > | > that don't support the configure.ac from the source.
| > | > I expect that you try to install the latest release
| > (mbuni-1.4.0.tar.gz)
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > On Sun, Jun 06, 2010 at 12:29:29AM -0400, Jin Ser wrote:
| > | > | I'm having a problem with this installation with the command line:
| > | > |
| > | > | sudo patch -p1 < .../mbuni-amr-patch
| > | > |
| > | > | When running this, I get the following error:
| > | > |
| > | > | patching file decoder.c
| > | > | Hunk #1 FAILED at 14.
| > | > | Hunk #2 FAILED at 83.
| > | > | 2 out of 2 hunks FAILED -- saving rejects to file decoder.c.rej
| > | > | patching file encoder.c
| > | > | Hunk #1 FAILED at 121.
| > | > | 1 out of 1 hunk FAILED -- saving rejects to file encoder.c.rej
| > | > | patching file makefile.gcc
| > | > | Reversed (or previously applied) patch detected!  Assume -R? [n] n
| > | > | Apply anyway? [n] y
| > | > | Hunk #1 FAILED at 53.
| > | > | Hunk #2 FAILED at 78.
| > | > | Hunk #3 FAILED at 114.
| > | > | 3 out of 3 hunks FAILED -- saving rejects to file makefile.gcc.rej
| > | > |
| > | > | I have saved the patch to a file before uploading it to my Ubuntu
| > Lucid
| > | > | server.
| > | > |
| > | > | Also, I have not successfully installed the gateway, as I get this
| > error
| > | > | when I run ./bootstrap:
| > | > |
| > | > | autoconf: configure.in: No such file or directory
| > | > |
| > | > | Can I get help with this? I do not have much experience setting up
| > such
| > | > | gateways.
| > | > |
| > | > | Thanks!
| > | >
| > | > | _______________________________________________
| > | > | Users mailing list
| > | > | Users@mbuni.org
| > | > | http://lists.mbuni.org/mailman/listinfo/users
| > | > -------------- next part --------------
| > | > A non-text attachment was scrubbed...
| > | > Name: not available
| > | > Type: application/pgp-signature
| > | > Size: 835 bytes
| > | > Desc: Digital signature
| > | > Url :
| > | >
| > 
http://lists.mbuni.org/pipermail/users/attachments/20100606/031a797d/attachment-0001.bin
| > | >
| > | > ------------------------------
| > | >
| > | > _______________________________________________
| > | > Users mailing list
| > | > Users@mbuni.org
| > | > http://lists.mbuni.org/mailman/listinfo/users
| > | >
| > | >
| > | > End of Users Digest, Vol 44, Issue 2
| > | > ************************************
| > | >
| >
| > | _______________________________________________
| > | Users mailing list
| > | Users@mbuni.org
| > | http://lists.mbuni.org/mailman/listinfo/users
| > -------------- next part --------------
| > A non-text attachment was scrubbed...
| > Name: not available
| > Type: application/pgp-signature
| > Size: 835 bytes
| > Desc: Digital signature
| > Url :
| > 
http://lists.mbuni.org/pipermail/users/attachments/20100607/2d2eb544/attachment-0001.bin
| >
| > ------------------------------
| >
| > Message: 2
| > Date: Mon, 7 Jun 2010 20:31:21 +0000 (UTC)
| > From: William Beachley <beach...@gmail.com>
| > Subject: [Users] MM7 on MBuni
| > To: users@mbuni.org
| > Message-ID: <loom.20100607t222235-...@post.gmane.org>
| > Content-Type: text/plain; charset=utf-8
| >
| > This is a sample of how an MM7 message should be constructed.  Notice there
| > are
| > 2 boundaries defined.  MBuni seems to only send 1 boundary which is causing
| > problems for my MMSC.  Is there a way to get MBuni to construct MMS using 2
| > mime
| > boundaries even when the content is just plain text?
| >
| > POST /mms-rs/mm7 HTTP/1.1
| > Host: mms.omms.com
| > Content-Type: multipart/related;
| > boundary="NextPart_000_0028_01C19839.84698430";
| > type=text/xml;
| >        start="</tnn-200102/mm7-submit>"
| > Content-Length: nnnn
| > SOAPAction: ""
| >
| > --NextPart_000_0028_01C19839.84698430
| > Content-Type:text/xml; charset="utf-8"
| > Content-ID: </tnn-200102/mm7-submit>
| >
| > <?xml version="1.0" ?>
| > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
| >      <env:Header>
| >                <mm7:TransactionID
| > xmlns:mm7="
| > http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3
| > "
| > env:mustUnderstand="1">
| >                        vas00001-sub
| >                </mm7:TransactionID>
| >        </env:Header>
| >        <env:Body>
| >                <SubmitReq
| > xmlns="
| > http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3
| > ">
| >                        <MM7Version>5.6.0</MM7Version>
| >                        <SenderIdentification>
| >                                <VASPID>TNN</VASPID>
| >                                <VASID>News</VASID>
| >                        </SenderIdentification>
| >                        <Recipients>
| >                                <To>
| >                                        <Number>7255441234</Number>
| >                                        <RFC2822Address
| > displayOnly="true">7255442...@omms.com</RFC2822Address>
| >                                </To>
| >                                <Cc>
| >                                        <Number>7255443333</Number>
| >                                </Cc>
| >                                <Bcc>
| >                                        <RFC2822Address>7255444...@omms.com
| > </RFC2822Address>
| >                                </Bcc>
| >                        </Recipients>
| >                        <ServiceCode>gold-sp33-im42</ServiceCode>
| >                        <LinkedID>mms00016666</LinkedID>
| >                        <MessageClass>Informational</MessageClass>
| >                        <TimeStamp>2002-01-02T09:30:47-05:00</TimeStamp>
| >
| >  <EarliestDeliveryTime>2002-01-02T09:30:47-05:00</EarliestDeliveryTime>
| >                        <ExpiryDate>P90D</ExpiryDate>
| >                        <DeliveryReport>true</DeliveryReport>
| >                        <Priority>Normal</Priority>
| >                        <Subject>News for today</Subject>
| >                        <ContentClass>video-rich</ContentClass>
| >                        <DRMContent>true</DRMContent>
| >                        <ChargedParty>Sender</ChargedParty>
| >                        <DistributionIndicator>true</DistributionIndicator>
| >                        <Content 
href="cid:SaturnPics-01020930@news.tnn.com<cid%3asaturnpics-01020...@news.tnn.com>"
| > allowAdaptations="true"/>
| >                </SubmitReq>
| >        </env:Body>
| > </env:Envelope>
| >
| > --NextPart_000_0028_01C19839.84698430
| > Content-Type: multipart/mixed; boundary="StoryParts 74526 8432 2002-77645"
| > Content-ID:<saturnpics-01020...@news.tnn.com>
| >
| > --StoryParts 74526 8432 2002-77645
| > Content-Type: text/plain; charset="us-ascii"
| >
| > Science news, new Saturn pictures...
| >
| > --StoryParts 74526 8432 2002-77645
| > Content-Type: image/gif;
| > Content-ID:<saturn.gif>
| > Content-Transfer-Encoding: base64
| >
| >
| > R0lGODdhZAAwAOMAAAAAAIGJjGltcDE0OOfWo6Ochbi1n1pmcbGojpKbnP/lpW54fBMTE1RYXEFO
| > …
| >
| > --StoryParts 74526 8432 2002-77645--
| > --NextPart_000_0028_01C19839.84698430--
| >
| >
| >
| >
| > ------------------------------
| >
| > _______________________________________________
| > Users mailing list
| > Users@mbuni.org
| > http://lists.mbuni.org/mailman/listinfo/users
| >
| >
| > End of Users Digest, Vol 44, Issue 4
| > ************************************
| >
| 
| 
| 
| -- 
| Jin Ser
| ser...@seas.upenn.edu
| University of Pennsylvania
| Class of 2011
| School of Engineering and Applied Sciences
| Candidate for Bachelor of Science in Engineering (BSE) for Electrical
| Engineering
| Candidate for Master of Science in Engineering (MSE) for Electrical
| Engineering

| _______________________________________________
| Users mailing list
| Users@mbuni.org
| http://lists.mbuni.org/mailman/listinfo/users

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users

Reply via email to