LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-14-2009, 12:26 PM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Rep: Reputation: 31
.diff file help...


Hi i have install the easytag and it has a bag with the id3lib-3.8.3 in unicode... here is the patch :

Code:
http://www.slackware.com/~alien/slackbuilds/id3lib/build/id3lib_utf8.patch
I don't know how to run a .diff file... Any help on how to fix this bug ? Thanx a lot...
 
Old 02-14-2009, 12:36 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: OpenSUSE 12.1 CentOS 6.2
Posts: 9,012

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
Usually to apply a patch you have to issue the command
Code:
patch -p0 < id3lib_utf8.patch
The line
Code:
diff -ruN id3lib-3.8.3.orig/src/io_helpers.cpp id3lib-3.8.3/src/io_helpers.cpp
specify the file to which the patch will be applied, that is io_helpers.cpp under the directory id3lib-3.8.3/src.
 
Old 02-14-2009, 12:47 PM   #3
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 268

Rep: Reputation: 73
If you were to apply the patch manually, in this case it would be:
Code:
patch -p1 < id3lib_utf8.patch
If you're running Slackware, then just use the accompanying slackbuild script that goes along with it.
http://www.slackware.com/~alien/slac...lib.SlackBuild
 
Old 02-16-2009, 07:45 AM   #4
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
So look something... I change the file io_helpers and now...when i run make it returns this error to me..

Quote:
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
io_helpers.cpp: In function ‘size_t dami::io::writeUnicodeText(ID3_Writer&, dami::String, bool)’:
io_helpers.cpp:375: error: expected primary-expression before ‘unsigned’
io_helpers.cpp:375: error: expected `;' before ‘unsigned’
io_helpers.cpp:378: error: ‘pdata’ was not declared in this scope
make[2]: *** [io_helpers.lo] Error 1
make[2]: Leaving directory `/home/d4emon/Desktop/id3lib/id3lib-3.8.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/d4emon/Desktop/id3lib/id3lib-3.8.3'
make: *** [all] Error 2
Any ideas on how to fix this bad bug ?
Why i receive this error ?
 
Old 02-16-2009, 11:55 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
I think you are using an out-dated build. There is a newer patch in this dir:
http://slackbuilds.org/repository/12...raries/id3lib/
 
Old 02-16-2009, 12:51 PM   #6
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
So... i only download

id3lib-3.8.3.tar.gz and
id3lib.tar.gz
run the .SlackBuild file and im ok...? It will patch it itself ? or i have to do anything else..?
 
Old 02-17-2009, 09:38 AM   #7
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
So... here i am again.. Listen...I install the id3lib and before this i patch it with these commands :
Quote:
patch -p0 < id3lib_utf8.patch
patch -p0 < id3lib_Doxyfile.patch
So.. When im going to install the easytag from source code now.. it gives me this error in make command:

Quote:
/home/d4emon/Desktop/easytag-2.1/src/about.c:119: undefined reference to `g_dgettext'
/home/d4emon/Desktop/easytag-2.1/src/about.c:159: undefined reference to `g_dgettext'
/home/d4emon/Desktop/easytag-2.1/src/about.c:159: undefined reference to `g_dgettext'
/home/d4emon/Desktop/easytag-2.1/src/about.c:159: undefined reference to `g_dgettext'
/home/d4emon/Desktop/easytag-2.1/src/about.c:159: undefined reference to `g_dgettext'
about.o:/home/d4emon/Desktop/easytag-2.1/src/about.c:159: more undefined references to `g_dgettext' follow
collect2: ld returned 1 exit status
make[3]: *** [easytag] Error 1
make[3]: Leaving directory `/home/d4emon/Desktop/easytag-2.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/d4emon/Desktop/easytag-2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/d4emon/Desktop/easytag-2.1'
make: *** [all] Error 2
and if i go to install it from SlackBuild file it returns this :

Quote:
about.c.text+0x3c): undefined reference to `g_dgettext'
about.c.text+0x56): undefined reference to `g_dgettext'
about.c.text+0x70): undefined reference to `g_dgettext'
about.c.text+0x8a): undefined reference to `g_dgettext'
about.c.text+0xa4): undefined reference to `g_dgettext'
about.o:about.c.text+0xbe): more undefined references to `g_dgettext' follow
collect2: ld returned 1 exit status
make[3]: *** [easytag] Error 1
make[3]: Leaving directory `/tmp/SBo/easytag-2.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/easytag-2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/easytag-2.1'
make: *** [all] Error 2
Please help me cuz i can't fix my mp3's tags...Thanx..
 
Old 02-17-2009, 01:50 PM   #8
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
Any ideas??? I m gonna go crazy...
 
Old 02-17-2009, 02:18 PM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Use the id3lib.tar.gz from the directory I linked to. Unpack it and move the source tarball insie the unpacked directory. the cd into there and run './id3lib.SlackBuild'
 
Old 02-18-2009, 10:47 AM   #10
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
yea dude... i m doing this and gives me the second error...:S Does the SlackBuild patch itself the id3lib?
 
Old 02-18-2009, 11:24 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
The id3lib.tar.gz archive should contain all the needed files except for the sources themselves. When executed, the SlackBuild script runs the patch commands before configuring and compiling.
It would help to know which distro and version you are running as thewre may be compatibility problesm with your compiler or library versions.
 
Old 02-18-2009, 11:38 AM   #12
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
Hmm slackware 12.2
 
Old 02-18-2009, 01:56 PM   #13
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Did you do a full install? Do you have gettext and gettext-tools installed?
 
Old 02-18-2009, 02:24 PM   #14
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
In gettext --help returns this :
Quote:
Usage: gettext [OPTION] [[TEXTDOMAIN] MSGID]
or: gettext [OPTION] -s [MSGID]...

Display native language translation of a textual message.

-d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN
-e enable expansion of some escape sequences
-E (ignored for compatibility)
-h, --help display this help and exit
-n suppress trailing newline
-V, --version display version information and exit
[TEXTDOMAIN] MSGID retrieve translated message corresponding
to MSGID from TEXTDOMAIN

If the TEXTDOMAIN parameter is not given, the domain is determined from the
environment variable TEXTDOMAIN. If the message catalog is not found in the
regular directory, another location can be specified with the environment
variable TEXTDOMAINDIR.
When used with the -s option the program behaves like the `echo' command.
But it does not simply copy its arguments to stdout. Instead those messages
found in the selected catalog are translated.
Standard search directory: /usr/share/locale

Report bugs to <bug-gnu-gettext@gnu.org>.
in gettext-tools returns nothing :S

So? i have to install gettext-tools?
 
Old 02-18-2009, 02:26 PM   #15
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Gentoo
Posts: 307

Original Poster
Rep: Reputation: 31
I found this in slackbuilds
What you say about installing it ?
 
  


Reply

Tags
diff, files


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
diff file ust Linux - Newbie 2 07-19-2008 06:56 AM
Apply diff to a file powah Linux - Newbie 1 03-07-2006 02:00 PM
What is *.diff file? carboncopy Slackware 1 05-19-2004 10:26 AM
DIFF (or other file comparison) ciscokid1967 Linux - General 1 12-11-2003 02:13 PM
I have a patch (diff file). What now? Gurduloo Linux - Newbie 2 05-27-2003 02:20 PM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration