ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Borovskoy <alexey_borovskoy@mail.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] I: ejabberd-0.7 in Sisyphus
Date: Tue, 31 Aug 2004 11:31:47 +1300
Message-ID: <200408311132.19898.alexey_borovskoy@mail.ru> (raw)
In-Reply-To: <200408301517.05032.alexey_borovskoy@mail.ru>


[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]

* Понедельник 30 Август 2004 15:16 Alexey Borovskoy 
<alexey_borovskoy@mail.ru>

Добрый день.

> * Понедельник 30 Август 2004 02:31 Mikhail Yakshin
> <greycat@altlinux.ru>
>
> > Неуютно, у меня все работает после установки ejabberd из
> > пакета и service ejabberd start. Хотя сборка у нас жуткая,
> > но сделать я сам пока с этим ничего не могу.
>
> У меня он не пускает только что созданного пользователя.

Наверное только у меня появляются эти баги с эрлангом и ежабберд.

Вчера запатчил новую версию эрланга, которая R9C2. Поскольку 
патчил ночью, в патчах могут быть ошибки. Но вроде все 
собирается.

Первый патч для того чтобы configure увидел библиотеки openssl и 
kerberos.
Второй патч правит сборку сишного компонента в модуле lib/crypto. 
При сборке этого модуля компилятор выдает варнинги, как от них 
правильно избавится я не знаю.

В спеке надо добавить сборочные зависимости на gcc-c++ и 
libkrb5-devel.

Патчи и лог с ошибками прилагается.

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

[-- Attachment #1.2: erlang-erts-configure.patch --]
[-- Type: text/x-diff, Size: 2112 bytes --]

--- erts/configure.orig	2004-06-23 15:55:23 +1300
+++ erts/configure	2004-08-30 23:01:07 +1300
@@ -5993,9 +5993,7 @@
 
     echo $ac_n "checking for OpenSSL >= 0.9.7 in standard locations""... $ac_c" 1>&6
 echo "configure:5996: checking for OpenSSL >= 0.9.7 in standard locations" >&5 
-    for dir in $extra_dir /cygdrive/c/OpenSSL /usr/local /usr /usr/pkg \
-		/usr/local/openssl /usr/lib/openssl /usr/openssl \
-		/usr/local/ssl /usr/lib/ssl /usr/ssl
+    for dir in $extra_dir /usr 
 	do
        if test -f $dir/include/openssl/opensslv.h; then
 		is_real_ssl=yes
@@ -6011,9 +6009,9 @@
 				is_real_ssl=no
 			fi
 		else
-			SSL_LIBDIR="$dir/lib"
+			SSL_LIBDIR="/lib"
 		fi
-		SSL_BINDIR="$dir/bin"
+		SSL_BINDIR="/usr/bin"
 		if test -f "$SSL_BINDIR/openssl$EXEEXT"; then
 			if "$SSL_BINDIR/openssl" version > /dev/null 2>&1; then
 				OPENSSL_CMD="$SSL_BINDIR/openssl"
@@ -6024,7 +6022,7 @@
 			is_real_ssl=no
 		fi
 		if test "x$is_real_ssl" = "xyes" ; then
-			SSL_INCLUDE="-I$dir/include"
+			SSL_INCLUDE="-I/usr/include/openssl"
 			old_CPPFLAGS=$CPPFLAGS
 			CPPFLAGS=$SSL_INCLUDE
 			cat > conftest.$ac_ext <<EOF
@@ -6079,10 +6077,10 @@
     if test "x$MIXED_CYGWIN_VC" = "xyes" -a -d "$with_ssl/lib/VC"; then
 	SSL_LIBDIR="$with_ssl/lib/VC"
     else
-	SSL_LIBDIR="$with_ssl/lib"
+	SSL_LIBDIR="/lib"
     fi
-    SSL_INCLUDE="-I$with_ssl/include"
-    OPENSSL_CMD="$with_ssl/bin/openssl"
+    SSL_INCLUDE="-I/usr/include/openssl"
+    OPENSSL_CMD="/usr/bin/openssl"
     SSL_APP=ssl
     CRYPTO_APP=crypto
 fi
@@ -6123,9 +6121,7 @@
     if test "x$ssl_krb5_enabled" = "xyes" ; then
         echo $ac_n "checking for krb5.h in standard locations""... $ac_c" 1>&6
 echo "configure:6126: checking for krb5.h in standard locations" >&5
-	for dir in $extra_dir $SSL_ROOT/include $SSL_ROOT/include/openssl \
-		$SSL_ROOT/include/kerberos /cygdrive/c/kerberos/include \
-		/usr/local/kerberos/include /usr/kerberos/include
+	for dir in /usr/include/krb5
 	do
             if test -f "$dir/krb5.h" ; then
                 SSL_KRB5_INCLUDE="$dir"

[-- Attachment #1.3: erlang-lib-crypto-crypto_drv.patch --]
[-- Type: text/x-diff, Size: 2218 bytes --]

--- lib/crypto/c_src/crypto_drv.c.orig	2003-07-08 01:31:50 +1300
+++ lib/crypto/c_src/crypto_drv.c	2004-08-31 01:16:45 +1300
@@ -145,11 +145,11 @@
 {
     int klen, dlen, i, macsize;
     char *key, *key2, *key3, *dbuf, *ivec;
-    const_DES_cblock *des_key, *des_key2, *des_key3;
+    const_des_cblock *des_key, *des_key2, *des_key3;
     const unsigned char *des_dbuf;
-    DES_cblock *des_ivec;
+    des_cblock *des_ivec;
     ErlDrvBinary *bin;
-    DES_key_schedule schedule, schedule2, schedule3;
+    des_key_schedule schedule, schedule2, schedule3;
     char hmacbuf[SHA_LEN];
     MD5_CTX md5_ctx;
     SHA_CTX sha_ctx;
@@ -262,12 +262,12 @@
 	dlen = len - 16;
 	if (dlen < 0)
 	    return -1;
-	des_key = (const_DES_cblock*) buf; 
-	des_ivec = (DES_cblock*)(buf + 8); 
+	des_key = (const_des_cblock*) buf; 
+	des_ivec = (des_cblock*)(buf + 8); 
 	des_dbuf = buf + 16;
 	*rbuf = (char *)(bin = driver_alloc_binary(dlen));
-	DES_set_key(des_key, &schedule);
-	DES_ncbc_encrypt(des_dbuf, bin->orig_bytes, dlen, &schedule, des_ivec, 
+	des_set_key(des_key, &schedule);
+	des_ncbc_encrypt(des_dbuf, bin->orig_bytes, dlen, &schedule, des_ivec, 
 			 (command == DRV_CBC_DES_ENCRYPT));
 	return dlen;
 	break;
@@ -277,16 +277,16 @@
 	dlen = len - 32;
 	if (dlen < 0)
 	    return -1;
-	des_key = (const_DES_cblock*) buf; 
-	des_key2 = (const_DES_cblock*) (buf + 8); 
-	des_key3 = (const_DES_cblock*) (buf + 16);
-	des_ivec = (DES_cblock*) (buf + 24); 
+	des_key = (const_des_cblock*) buf; 
+	des_key2 = (const_des_cblock*) (buf + 8); 
+	des_key3 = (const_des_cblock*) (buf + 16);
+	des_ivec = (des_cblock*) (buf + 24); 
 	des_dbuf = buf + 32;
 	*rbuf = (char *)(bin = driver_alloc_binary(dlen));
-	DES_set_key(des_key, &schedule);
-	DES_set_key(des_key2, &schedule2);
-	DES_set_key(des_key3, &schedule3);
-	DES_ede3_cbc_encrypt(des_dbuf, bin->orig_bytes, dlen, &schedule,
+	des_set_key(des_key, &schedule);
+	des_set_key(des_key2, &schedule2);
+	des_set_key(des_key3, &schedule3);
+	des_ede3_cbc_encrypt(des_dbuf, bin->orig_bytes, dlen, &schedule,
 			     &schedule2, &schedule3, des_ivec, 
 			     (command == DRV_EDE3_CBC_DES_ENCRYPT));
 	return dlen;

[-- Attachment #1.4: erlang-log.tar.bz2 --]
[-- Type: application/x-tbz, Size: 1262 bytes --]

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2004-08-30 22:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-26 13:00 Mikhail Yakshin
2004-08-26 13:05 ` Ivan Fedorov
2004-08-26 14:56   ` Mikhail Yakshin
2004-08-29  8:34 ` Alexey Borovskoy
2004-08-29 13:31   ` Mikhail Yakshin
2004-08-30  2:16     ` Alexey Borovskoy
2004-08-30 22:31       ` Alexey Borovskoy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408311132.19898.alexey_borovskoy@mail.ru \
    --to=alexey_borovskoy@mail.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git