LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-15-2011, 05:45 AM   #1
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
links-2.3pre1-x86_64-1 and ssl


Hello, I am using slackware64-current. I have installed the package links-2.3pre1-x86_64-1 and I love it. I launch it from the command line with the "links -g" switch and it can display pictures, it's great, but it doesn't seem to support ssl connections.

Am i doing something wrong or do I need another build? I know that in the past there used to be two different binaries, is it still so? Where can I find a ssl-enabled binary for 64 bit without need to recompile?
 
Old 03-15-2011, 07:41 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,520

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
Quote:
it's great, but it doesn't seem to support ssl connections.
Are you sure?
What gives:
Code:
ldd /usr/bin/links |grep ssl
 
Old 03-16-2011, 04:26 AM   #3
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Original Poster
Rep: Reputation: 46
Hi Bathory

Code:
ldd /usr/bin/links |grep ssl
      libssl.so.) => /lib64/libssl.so.) (0x00007f1a09089000)
So it seems that ssl support _was_ compiled. So it must be some settings error.

Indeed I use a proxy. With lynx I can connect to gmail and other ssl sites.

In my environment variables I have:
Code:
ftp_proxy=ftp://10.13.7.3:3128
http_proxy=ftp://10.13.7.3:3128
and it works for Lynx.

Then I also added:
Code:
ssl_proxy=ftp://10.13.7.3:3128
https_proxy=ftp://10.13.7.3:3128
and then I have opened the application and selected:
> setup
> Network Options
> Proxies

and entered 10.13.7.3:3128 in the "HTTP proxy" filed. There is no "HTTPs proxy" or "SSL proxy" field. I have saved the settings and I connect to all sites, but when Itry to access ssl sites, links hangs on "Making connection".

Even entering the "SocksA proxy" makes any difference.

However, if I check the option "Connect only via proxies or Socks", tehn I get this error:

Code:
Error loading:
https://www.google.com ...etc

No proxy for this connection and connections without proxies are disabled
Any ideas?
 
Old 03-16-2011, 06:41 AM   #4
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Original Poster
Rep: Reputation: 46
These were the compile options for links-2.3pre1.tar.bz2:
Code:
#!/bin/sh

# Copyright 2008, 2009, 2010  Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

VERSION=2.3pre1
BUILD=${BUILD:-1}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) export ARCH=$( uname -m ) ;;
  esac
fi

NUMJOBS=${NUMJOBS:-" -j7 "}

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-links

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
else
  SLKCFLAGS="-O2"
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf links-$VERSION
tar xvf $CWD/links-$VERSION.tar.?z* || exit 1
cd links-$VERSION || exit 1
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

# We are configuring this without X as there are MANY browser choices for
# X already.  If you need a browser for X, either use something else or
# recompile.  :-)
CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --enable-javascript \
  --enable-graphics \
  --without-x \
  --without-sdl \
  --build=$ARCH-slackware-linux

make $NUMJOBS || make || exit 1

mkdir -p $PKG/usr/bin
cat links > $PKG/usr/bin/links
chmod 0755 $PKG/usr/bin/links

mkdir -p $PKG/usr/man/man1
cat links.1 | gzip -9c > $PKG/usr/man/man1/links.1.gz

mkdir -p $PKG/usr/doc/links-$VERSION
cp -a \
  AUTHORS BUGS COPYING* INSTALL NEWS README* SITES TODO doc/links_cal mailcap.pl \
  $PKG/usr/doc/links-$VERSION
find $PKG/usr/doc/links-$VERSION -type f -exec chmod 644 {} \;
find $PKG/usr/doc/links-$VERSION -type d -exec chmod 755 {} \;
chmod 0755 $PKG/usr/doc/links-$VERSION/mailcap.pl

# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then
  DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION)
  cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
  touch -r ChangeLog $DOCSDIR/ChangeLog
fi

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $TMP/links-$VERSION-$ARCH-$BUILD.txz
From here it doesn't seem that ssl was compiled in
 
Old 03-16-2011, 06:41 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,520

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
Hi,

I don't use a proxy server so I cannot tell what the problem is. But AFAIK links can connect to ssl sites directly without a hitch

Regards
 
Old 03-17-2011, 04:29 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,520

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
Quote:
These were the compile options for links-2.3pre1.tar.bz2:
--snip--
From here it doesn't seem that ssl was compiled in
By default if the ./configure script finds openssl it will use it to link the links binary against it, so it's not mandatory to specify "--with-ssl" among the other configure options. Besides from the ldd output you saw that links depends on libssl.so and as I've already told you I can use it with https.
I cannot tell what's the problem if you use it through a proxy though
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
web page/links links/links vendtagain Linux - Newbie 2 09-19-2009 08:13 PM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
opensuse 11 - compiz x86_64, libcompizconfig 586... wait, what? where is x86_64 ver? almcneill SUSE / openSUSE 9 09-28-2008 10:36 AM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
Problem getting ssl support with links 2 SBGLinux Linux - Software 1 09-05-2004 01:54 PM

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

All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration