LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-28-2010, 11:59 AM   #1
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Rep: Reputation: 45
Compiling Putty on Slackware 13.1


Anyone had any better luck doing this?

Code:
putty-0.60/unix$ make -f Makefile.gtk 
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../be_all_s.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../cmdline.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../cproxy.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../ldisc.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../logging.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../misc.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../pinger.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../portfwd.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../proxy.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../raw.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../rlogin.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../settings.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../ssh.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshaes.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../ssharcf.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshblowf.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshbn.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshcrc.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshcrcda.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshdes.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshdh.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshdss.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshmd5.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshpubk.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshrand.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshrsa.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshsh256.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshsh512.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshsha.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../sshzlib.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../telnet.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../time.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../timing.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../tree234.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../unix/ux_x11.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../unix/uxagentc.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../unix/uxcons.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../unix/uxmisc.c
cc  -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64  -c ../unix/uxnet.c
cc1: warnings being treated as errors
../unix/uxnet.c: In function ‘sk_getxdmdata’:
../unix/uxnet.c:853: erreur: dereferencing pointer ‘sa’ does break strict-aliasing rules
../unix/uxnet.c:838: note: initialized from here
../unix/uxnet.c:858: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:858: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:857: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:857: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:857: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:857: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:839: note: initialized from here
../unix/uxnet.c:866: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:866: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:864: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:864: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:864: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:836: note: initialized from here
../unix/uxnet.c: In function ‘net_select_result’:
../unix/uxnet.c:293: erreur: dereferencing pointer ‘ss.74’ does break strict-aliasing rules
../unix/uxnet.c:1071: note: initialized from here
../unix/uxnet.c:296: erreur: dereferencing pointer ‘sin’ does break strict-aliasing rules
../unix/uxnet.c:295: note: initialized from here
../unix/uxnet.c:300: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:300: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:300: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:300: erreur: dereferencing pointer ‘sin6’ does break strict-aliasing rules
../unix/uxnet.c:299: note: initialized from here
make: *** [uxnet.o] Erreur 1
Thanks
 
Old 05-28-2010, 12:20 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
after reading your message I googled for "putty sk_getxdmdata": on the second result I followed the links at the end of the page and found this patch: I patched slackbuilds.org 13.0 script like this (uxnet.patch is the name I gave to just downloaded patch)
Code:
--- putty.SlackBuild.1  2010-03-06 02:12:18.000000000 +0100
+++ putty.SlackBuild    2010-05-28 19:18:19.242995392 +0200
@@ -49,6 +49,9 @@
 # Create $PKG tree.
 mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION/html} 
 
+# patch for gcc 4.4
+patch -p1 < $CWD/uxnet.patch
+
 cd unix
   CFLAGS="$SLKCFLAGS" \
   ./configure \
@@ -62,9 +65,9 @@
 
 ( cd $PKG
   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
-    xargs strip --strip-unneeded 2> /dev/null
+    xargs strip --strip-unneeded 2> /dev/null || true
   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
-    xargs strip --strip-unneeded 2> /dev/null
+    xargs strip --strip-unneeded 2> /dev/null || true
 )
 
 ( cd $PKG/usr/man
and it built fine

but I haven't installed, cause I use pssh (read carefully the slackbuilds.org warning ).

Last edited by ponce; 05-28-2010 at 12:29 PM.
 
Old 05-28-2010, 12:31 PM   #3
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
Thanks ponce, worked like a charm.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty logs me out / Putty throws me out after I log in ytd Linux - General 15 08-09-2009 03:03 AM
slackware 12.1 and putty ninja master Slackware 6 05-26-2008 02:54 PM
unable to connect Slackware Using Windows putty gfujoseph Slackware 5 12-20-2007 08:41 AM
X11 forwarding to putty client - Slackware lievendp Linux - Software 2 01-13-2006 09:40 AM
Black Screen PuTTY and SSH on Slackware 10 cummic Slackware 52 12-14-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration