Re: httpGate and libssl problems

2011-08-22 Thread Alexander Burger
Hi Henrik,

 error while loading shared libraries: libssl.so.0.9.8: cannot open shared
 object file: No such file or directory
 
 This happened when copying a 32bit PL that had been compiled on Ubuntu and
 simply running it.

Hmm, as just mentioned in IRC, I would not copy binary executables
between different systems.

I'd propose to either put 'wheezy' into your /etc/apt/sources.list (and
set /etc/apt/preferences), and do

   apt-get install -t wheezy picolisp

or build it all locally (as src/Makefile uses the -m32 switch).

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: httpGate and libssl problems

2011-08-22 Thread Alexander Burger
On Mon, Aug 22, 2011 at 07:55:20AM +0200, Alexander Burger wrote:
 or build it all locally (as src/Makefile uses the -m32 switch).

Oops, sorry. Forget that. It doesn't solve the problem of conflicting
libraries.
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: httpGate and libssl problems

2011-08-22 Thread Jakob Eriksson
On Sun, Aug 21, 2011 at 11:22:29PM +0700, Henrik Sarvell wrote:
 Trying to compile with 32bit libc libraries installed gives me the following:
 ...
 gcc -m32 -o ../bin/ssl ssl.o -lssl -lcrypto

snip

 I have installed every possible libssl and libssl-dev package but still no
 luck, what am I doing wrong?


You need the 32 bit SSL libraries. Unfortunately, they are not part of the
ia32libs package in Ubuntu/Debian. There are various solutions, you could copy
the library from a 32 bit machine or build it in 32 mode locally.

Here is one page:

http://www.debian-administration.org/articles/531

Newer Debian should have some kind of built in magic for configuring this:
http://wiki.debian.org/ReleaseGoals/MultiArch

best luck!

//Jakob

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: httpGate and libssl problems

2011-08-22 Thread Alexander Burger
Hi all,

On Mon, Aug 22, 2011 at 08:37:29AM +0200, Jakob Eriksson wrote:
 On Sun, Aug 21, 2011 at 11:22:29PM +0700, Henrik Sarvell wrote:
  Trying to compile with 32bit libc libraries installed gives me the 
  following:
  ...
  gcc -m32 -o ../bin/ssl ssl.o -lssl -lcrypto
 
 snip
 
  I have installed every possible libssl and libssl-dev package but still no
  luck, what am I doing wrong?
 
 
 You need the 32 bit SSL libraries. Unfortunately, they are not part of the
 ia32libs package in Ubuntu/Debian. There are various solutions, you could copy
 the library from a 32 bit machine or build it in 32 mode locally.

In fact, the 32-bit SSL libs are not needed.


Now I tried it here (Debian Squeeze, amd64):

To build 'httpGate' and 'ssl', you just need to do

   # apt-get install libssl-dev

(no matter whether you are on 32-bits or 64 bits)

and - as before - do

   $ (cd src; make gate)


BTW, for the 'x11' stuff you need

   apt-get install libx11-dev libxext-dev

and then

   $ (cd src; make x11)


As ever, you can build it all (after installing the above libs) with

   $ (cd src; make all)

to build 32-bit version of the interpreter, and 32- or 64-bit versions
of the rest (tools, gate and x11).


CONCLUSION: On a 64-bit system, you might prefer the 64-bit interpreter,
then the way to build _all_ is

   # apt-get install libc6-dev-i386 libssl-dev libx11-dev libxext-dev

   $ (cd src; make all)
   $ (cd src64; make)

This first builds the complete 32-bit release, including interpreter and
all tools. Then it uses the 32-bit interpreter to build the 64-bit
interpreter, replacing the 32-bit version with the 64-bit version.
Voila!

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: httpGate and libssl problems

2011-08-22 Thread Henrik Sarvell
*src# apt-get install libssl-dev*
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.

*src# make gate*
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -D_FILE_OFFSET_BITS=64
-D_OS='Linux' ssl.c
gcc -m32 -o ../bin/ssl ssl.o -lssl -lcrypto
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libssl.so when searching for
-lssl
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libssl.a when searching for
-lssl
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libssl.so when searching
for -lssl
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libssl.a when searching
for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for
-lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for
-lssl
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [../bin/ssl] Error 1
*
# lsb_release -a*
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 5.0.3 (lenny)
Release: 5.0.3
Codename: lenny
*
# apt-get install ia32-libs*

After that I could compile and run httpGate.



On Mon, Aug 22, 2011 at 5:48 PM, Alexander Burger a...@software-lab.de
wrote:
 Hi all,

 On Mon, Aug 22, 2011 at 08:37:29AM +0200, Jakob Eriksson wrote:
 On Sun, Aug 21, 2011 at 11:22:29PM +0700, Henrik Sarvell wrote:
  Trying to compile with 32bit libc libraries installed gives me the
following:
  ...
  gcc -m32 -o ../bin/ssl ssl.o -lssl -lcrypto

 snip

  I have installed every possible libssl and libssl-dev package but still
no
  luck, what am I doing wrong?


 You need the 32 bit SSL libraries. Unfortunately, they are not part of
the
 ia32libs package in Ubuntu/Debian. There are various solutions, you could
copy
 the library from a 32 bit machine or build it in 32 mode locally.

 In fact, the 32-bit SSL libs are not needed.


 Now I tried it here (Debian Squeeze, amd64):

 To build 'httpGate' and 'ssl', you just need to do

   # apt-get install libssl-dev

 (no matter whether you are on 32-bits or 64 bits)

 and - as before - do

   $ (cd src; make gate)


 BTW, for the 'x11' stuff you need

   apt-get install libx11-dev libxext-dev

 and then

   $ (cd src; make x11)


 As ever, you can build it all (after installing the above libs) with

   $ (cd src; make all)

 to build 32-bit version of the interpreter, and 32- or 64-bit versions
 of the rest (tools, gate and x11).


 CONCLUSION: On a 64-bit system, you might prefer the 64-bit interpreter,
 then the way to build _all_ is

   # apt-get install libc6-dev-i386 libssl-dev libx11-dev libxext-dev

   $ (cd src; make all)
   $ (cd src64; make)

 This first builds the complete 32-bit release, including interpreter and
 all tools. Then it uses the 32-bit interpreter to build the 64-bit
 interpreter, replacing the 32-bit version with the 64-bit version.
 Voila!

 Cheers,
 - Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: httpGate and libssl problems

2011-08-22 Thread Alexander Burger
Hi Henrik,

 /usr/bin/ld: cannot find -lssl
 collect2: ld returned 1 exit status
 make: *** [../bin/ssl] Error 1
 *
 # lsb_release -a*
 No LSB modules are available.
 Distributor ID: Debian
 Description: Debian GNU/Linux 5.0.3 (lenny)
 Release: 5.0.3
 Codename: lenny
 *
 # apt-get install ia32-libs*
 
 After that I could compile and run httpGate.

Great!

Now I understand. It seems that Debian 'lenny' differs substantially
from 'squeeze' in that regard.

Thanks!

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: httpGate and libssl problems

2011-08-22 Thread Henrik Sarvell
http://picolisp.com/5000/-2-1k.html


On Mon, Aug 22, 2011 at 11:45 PM, Alexander Burger a...@software-lab.dewrote:

 Hi Henrik,

  /usr/bin/ld: cannot find -lssl
  collect2: ld returned 1 exit status
  make: *** [../bin/ssl] Error 1
  *
  # lsb_release -a*
  No LSB modules are available.
  Distributor ID: Debian
  Description: Debian GNU/Linux 5.0.3 (lenny)
  Release: 5.0.3
  Codename: lenny
  *
  # apt-get install ia32-libs*
 
  After that I could compile and run httpGate.

 Great!

 Now I understand. It seems that Debian 'lenny' differs substantially
 from 'squeeze' in that regard.

 Thanks!

 Cheers,
 - Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: httpGate and libssl problems

2011-08-22 Thread Alexander Burger
On Mon, Aug 22, 2011 at 11:59:13PM +0700, Henrik Sarvell wrote:
 http://picolisp.com/5000/-2-1k.html

Thanks for pointing that out!


BTW, since a few weeks, the Wiki also accepts page names (instead of the
direct object IDs) in URLs:

   http://picolisp.com/5000/!wiki?httpGate

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe