[Tutor] sockets broken on New Install???

Sheila King sheila@thinkspot.net
Thu, 16 Aug 2001 10:48:02 -0700


On Thu, 16 Aug 2001 11:00:19 -0600 (MDT), Bruce Sass
<bsass@freenet.edmonton.ab.ca>  wrote about Re: [Tutor] sockets broken
on New Install???:

:Have a look in <source tree>/Modules/Setup, search for "_socket" (and
:"EXPAT_DIR" to get the expat, minidom and sax stuff working)... you
:probably just need to edit a little and re-make.

Right. I'm with you on the editing and re-make.

:"locate" and "grep" are a couple of standard commands that will help
:with finding where the headers and libs for stuff lives ("find" is a
:good one to know about also).

Thanks. I know I need to learn more *nix. (I've been getting by with
whereis a lot...bash shell.)

:e.g,:
:~$ locate openssl | grep include | less
:/usr/include/kde/kopenssl.h
:/usr/include/openssl
:/usr/include/openssl/asn1.h
:...
:
:gives me a clue on how to edit the socket section in Setup.

Well, I get something like this:

[thinker@FQ-Nine:~ ]$ locate openssl | grep include | more
/usr/local/ssl/include/openssl
/usr/local/ssl/include/openssl/asn1_mac.h
/usr/local/ssl/include/openssl/asn1.h
/usr/local/ssl/include/openssl/blowfish.h
/usr/local/ssl/include/openssl/bio.h
/usr/local/ssl/include/openssl/buffer.h
...

I wish I could say that gave ME a clue.

I look in <dir>/Modules.Setup for _socket and find this:

# for socket(2), without SSL support.
#_socket socketmodule.c

# Socket module compiled with SSL support; you must comment out the
other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
#_socket socketmodule.c \
#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
#	-L$(SSL)/lib -lssl -lcrypto

And it looks to me like
SSL = /usr/local/ssl
is correct??? (Is that the part I would edit?)

Do I need to change it to
SSL=/usr/local/ssl/include/openssl
????

Plus, what's with all the # at the beginning of the lines. Looks like
everything is commented out. Is this the normal way for it to look?
(Confusing to me.)


I think I figured out the expat part.
In the <dir>/Modules/Setup file I changed the line
#EXPAT_DIR=/usr/local/src/expat
to
#EXPAT_DIR=/usr/local/include/php/ext/xml/expat

after getting these results from a commandline prompt:
[thinker@FQ-Nine:~ ]$ locate expat | more
/usr/local/include/php/ext/xml/expat
/usr/local/include/php/ext/xml/expat/xmlparse
/usr/local/include/php/ext/xml/expat/xmlparse/expat_hashtable.h
/usr/local/include/php/ext/xml/expat/xmlparse/xmlparse.h
/usr/local/include/php/ext/xml/expat/xmltok
...

So, I think that I've got expat set to go, but I'm not sure about
SSL/Socket, since my results from
$locate openssl | grep include | more

seem to indicate to me, that the Modules/Setup file has that directory
set correctly???

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/