LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-04-2010, 01:35 PM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,405
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
emacs 23.1 slack64-current


When I installed slack64-current, I removed emacs 22 and compiled 23.1 from source. As src2pkg gave me some errors, I just used ./compile, etc.

After slackware's recent upgrades, I lost some xfce icons. This, however, was soon rectified by the steps suggested in one of the threads here on LQ.

Today I noticed that the icons within emacs are missing.

Code:
(emacs:19592): Gtk-WARNING **: Error loading theme icon 'gtk-new' for stock: Fatal error reading PNG image file: Incompatible libpng version in application and library.
At the moment I'm running:
libpng-1.4.1-x86_64-2

I thought I'd install emacs again. This time I grabbed the slackbuild for 22.2 from slackware.com (+ source for 23.1). I modified the slackbuild and that's the error I get when compiling:

Code:
-lXrender -lfontconfig -lfreetype -lX11 -lasound -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -ldbus-1 -lpthread -lrt -lgpm -lncurses   -lm -lgcc -lc -lgcc /usr/lib64/crtn.o 
image.o: In function `png_load':
image.c:(.text+0x3c75): undefined reference to `png_check_sig'
image.c:(.text+0x43d4): undefined reference to `png_check_sig'
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/tmp/emacs-23.1/src'
make: *** [src] Error 2

Thanks
 
Old 03-04-2010, 02:32 PM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 212Reputation: 212Reputation: 212
Maybe take a look at this
http://thread.gmane.org/gmane.emacs....0/focus=120331
 
Old 03-05-2010, 01:53 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
You need a patch to compile emacs against libpng14.
 
Old 03-05-2010, 02:54 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,405
Blog Entries: 1

Original Poster
Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Thanks for your replies.
I downloaded a patch from disturbed1's link. Now to be honest with you I have never patched anything. When/How would I apply that patch to emacs source?

Thank you
 
Old 03-05-2010, 04:01 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Iy you are using src2pkg, just place the patch beside the sources. I'm surprised you had trouble using src2pkg before as others have had success with emacs-23.x

To manually apply the patch, unpack the sources, then copy the patch into the toplevel of the sources, cd in there and apply the patch from the toplevel. For a plain *.patch or *.diff:
patch -p1 < *.diff
patch -p1 < *.patch
For compressed patches you can unpack them and use like above or:
for gzipped:
zcat *.patch.gz | patch -p1
 
Old 03-05-2010, 07:11 AM   #6
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,139
Blog Entries: 29

Rep: Reputation: 119Reputation: 119
Gilbert,

Perhaps Sycamorex ran into the same problem I had with Emacs 23 and src2pkg, where src2pkg stopped the build because Emacs wants to put files in locations other than the standard locations.

I'm away from my home computer and my work's IT department blocks the src2pkg wiki. (Why? Who knows, they also block a lot of the state's department of transportation's web sites -- and I'm a transportation planner!)

The solution for me, I believe, was to use the -ACN switch. However, I modified the src2pkg.conf file by changing AUTO_CONFIG_OPTIONS to =native.

Maybe you can expand on this a bit?

Regards,
 
Old 03-05-2010, 11:26 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,686
Blog Entries: 51

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Could you try this one?

http://www.slackwiki.org/Emacs_from_CVS
 
Old 03-05-2010, 11:27 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Hmm, I don't find that right now in our emails Drew, but I think it was --sysconfdir which was 'panicking the build. So,
src2pkg -e='--syscofndir=/etc' emacs-23.1.tar.?? shoudl fix it. Or, as you suggest:
src2pkg -ACN emacs-23.1.tar.??
 
Old 03-05-2010, 01:21 PM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,405
Blog Entries: 1

Original Poster
Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Right, thanks for your replies. This morning I tried to use the src2pkg with the patch and that's what I got:

Code:
root@slack64:/home/xtd8865/temp/emmm# src2pkg emacs-23.1.tar.bz2 
Found source archive: emacs-23.1.tar.bz2
Deleting old build files - Done
Creating working directories:
   PKG_DIR=/tmp/emacs-23.1-x86_64-1
   SRC_DIR=/tmp/emacs-23.1-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - Found
Applying: libpng14.patch
Found configure script - Done
Configuring sources using:
 LDFLAGS="-Wl,-L/lib64,-L/usr/lib64" CFLAGS="-O2 -fPIC -m64" ./configure --prefix=/usr --libdir=/usr/lib64
ERROR! Configuring sources has failed!
This may be because of some missing libraries, or you may
need to pass extra options to configure using EXTRA_CONFIGS.
Sorry! No Dependency or Requirements information found.

Notice - Showing short options in a separate xterm.

It did compile nicely when building from source (with the patch) but the icons where still missing.

I'll remove it and perhaps try the cvs version now.
 
Old 03-05-2010, 02:56 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,405
Blog Entries: 1

Original Poster
Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
I got the cvs (23.1.90) version and tried to add the patch command to its slackbuild file. It did not work.
Most probably I edited the slackbuild in a wrong way.
What I did then was patching the cvs source and used makepkg to create a slack package. It works fine!!!

Thanks everyone
 
  


Reply


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
slack64-current multilib slackpkg upgrade portia Slackware 4 01-05-2010 02:47 PM
Thunderbird 3, Slack64 current, and Lightning redray8 Slackware 1 12-16-2009 09:58 AM
[SOLVED] Cannot build apcups on slack64-current tux_dude Slackware 5 12-15-2009 06:42 AM
slack64 -current won't upgrade wingevil Slackware 6 08-17-2009 11:01 PM
Slack64-Current / NVIDIA Driver / possible bug? slackass Slackware 2 05-21-2009 12:02 AM


All times are GMT -5. The time now is 05:16 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration