From twtoal@ucdavis.edu  Tue Jan 10 23:48:33 2017
Received: (at 1133) by bugs.x2go.org; 10 Jan 2017 22:48:34 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 435213CC60
	for <1133@bugs.x2go.org>; Tue, 10 Jan 2017 23:48:33 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BbGLnggOU0ul for <1133@bugs.x2go.org>;
	Tue, 10 Jan 2017 23:48:26 +0100 (CET)
Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 0076B5DAA7
	for <1133@bugs.x2go.org>; Tue, 10 Jan 2017 23:48:25 +0100 (CET)
Received: by mail-pf0-f171.google.com with SMTP id 127so53884401pfg.1
        for <1133@bugs.x2go.org>; Tue, 10 Jan 2017 14:48:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=ucdavis-edu.20150623.gappssmtp.com; s=20150623;
        h=mime-version:subject:from:in-reply-to:date:cc
         :content-transfer-encoding:message-id:references:to;
        bh=MtzXpoUtXVj2eaOrzSDfvOlUMfv8RawKMMGUbrlkR/k=;
        b=gdKcVCxkpfSokukDhMbedhv7AXQ8entCwS7f+Kgjxre9p/jkrexZOK6gY5PCYkss/x
         J/7gXdOWao3ewGYysM+KU9lIQUjCHkwBAkiZeSL/3RoFevXrFGcMMK+ROLHjqWrwc21+
         wrc0/Lr8vHb7kfimjLAwvYZ95b6E6Q1tgb++SPR4VtSNFZfhPxLDy8IPDhsS5ymijOj6
         7UjfzryygHgma9wEK5Ck8JZ1VeSzoN8Ti/JsE6KyoyJM+dizmp7wMOtHzlbf590zQkAN
         CRtPorPadxe0z6Yli7Ljtbw4B7xvfYCvzJmO9QqM4U4cCOJlVENGQRMxoj+tRbhruyI7
         0Emw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
         :content-transfer-encoding:message-id:references:to;
        bh=MtzXpoUtXVj2eaOrzSDfvOlUMfv8RawKMMGUbrlkR/k=;
        b=PHHjUkLCX5XKpC+zFRR5sjk/IUKiOALsOYAOCBXobE0qYCk6TcZ7V/ycsnCtGDtac/
         VHuqwcg6QzFphVue8rEhUylBthYD6PqqKTQmCdrRwst0QNPAhpdcvNrcdrJH6K+zQ8MW
         o8orEvq2hM9ZF3aSBEVMc7JOBhRsBhK7j/A8X+D8A2sE9IVByDzIpmk03qX2o84tJIzP
         6ERifKWhIUoDnAWgU06iaqWhY5EOQjlH82hOaUBT63Y1U+5ma3+zgqChMn9h6vRDz7+3
         cxK21lUbRmVE3YaBlacaYcBcrW8iSNNGzP00c1PfjXzDkDAyiz65NF236H3MTH3XwCwO
         M3pw==
X-Gm-Message-State: AIkVDXIsTVej90msNOmhnJ6FKJsgqb1yQ5puExGmyke1vOQ+IuhzN4RPgcJtF1gX3nUzjw==
X-Received: by 10.84.224.133 with SMTP id s5mr8463851plj.130.1484088504538;
        Tue, 10 Jan 2017 14:48:24 -0800 (PST)
Received: from dhcp22-gc1.genomecenter.ucdavis.edu (dhcp22-gc1.genomecenter.ucdavis.edu. [128.120.136.85])
        by smtp.gmail.com with ESMTPSA id x16sm7761656pfk.79.2017.01.10.14.48.22
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 10 Jan 2017 14:48:23 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Re: [X2Go-Dev] Bug#1133: Inconsistent Perl used by server or its
 agent on connect
From: Ted Toal <twtoal@ucdavis.edu>
In-Reply-To: <7a1f025f-6a4f-9c6a-ffe6-4d18a712da86@baur-itcs.de>
Date: Tue, 10 Jan 2017 14:48:22 -0800
Cc: 1133@bugs.x2go.org,
 control@bugs.x2go.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <E4861E92-0216-40D2-91E6-A6A693F5E30B@ucdavis.edu>
References: <BF57B030-7BF4-4307-9333-49782AB84D74@ucdavis.edu>
 <7a1f025f-6a4f-9c6a-ffe6-4d18a712da86@baur-itcs.de>
To: Stefan Baur <X2Go-ML-1@baur-itcs.de>
X-Mailer: Apple Mail (2.3259)

I disagree.  Perl behavior is to look at env. var. PERL5LIB to find its =
library.  This should be set to match the Perl that is being invoked, =
which is normally done by placing that Perl=E2=80=99s bin directory on =
the path.  Since I did place it on the path, there are only two =
possibilities for why x2go ran /usr/bin/perl: either it hard-coded the =
path to Perl, in which case it should first set PERL5LIB (or maybe there =
is a Perl command line arg to specify the library folder), OR x2go =
ignored my changes to PATH when it ran perl (in which case it should =
also ignore PERL5LIB).

- Ted




> On Jan 10, 2017, at 2:35 PM, Stefan Baur <X2Go-ML-1@baur-itcs.de> =
wrote:
>=20
> Control: close -1
> Control: tag -1 not-a-bug
>=20
> Am 10.01.2017 um 22:15 schrieb Ted Toal:
>> Package: NXAGENT
>> Version: 3.5.0
>>=20
>> My .bash_profile defines Perl environment variables for Active Perl, =
and adds the Active Perl bin directory to the start of the path. This =
causes an x2go session to fail with the message:
>> Connection failed. /usr/bin/perl: symbol lookup error: =
/share/carvajal-archive/PACKAGES/local/ActivePerl-5.24/lib/auto/Sys/Hostna=
me/Hostname.so: undefined symbol: Perl_xs_handshake
>> NXAGENT is user /usr/bin/perl and ignoring the Perl bin directory at =
the start of the path, but it is nevertheless using the Perl environment =
variables and so is looking in the wrong place for the Perl library.
>=20
> I'd say this isn't a bug, but actually expected behavior.
> If you need different values for variables depending on which software
> you run, you either need to prefix them manually each time you call =
that
> software, or write a wrapper script, or use if/then clauses in your
> .bash_profile.  The latter is what you seem to have decided to do, and
> ran into problems with, judging from your bug report #1134, thus =
closing
> this one.
>=20
> -Stefan
>=20
>=20
> --=20
> BAUR-ITCS UG (haftungsbeschr=C3=A4nkt)
> Gesch=C3=A4ftsf=C3=BChrer: Stefan Baur
> Eichen=C3=A4ckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
> Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
>=20

