Tim,
Jeff and I discussed this further off the mailing list and he was able to
point me in the right direction for a fix. I'm going to forward over some
of it to the list for anyone who is interested, namely yourself. It looks
like the normal default behavior of "ufdio" (network support) in Solaris
is not functioning properly unless explicitly set in url.c. Once network
mode is engaged, ftpdebug works. A fix is located in the forward I'm
sending. Jeff is going to take a peek and see if he can point me in the
right direction of where its getting confused.
Forward follows....
=================================
David Halik
Systems Programmer
OSS/NBCS - OIT Rutgers
dhalik@jla.rutgers.edu
=================================
---------- Forwarded message ----------
Date: Tue, 6 Nov 2007 07:07:42 -0500
From: Jeff Johnson <n3npq@mac.com>
To: David Halik <dhalik@jla.rutgers.edu>
Subject: Re: rpm 4.4.9 missing neon support in Solaris 9 - build issue?
On Nov 5, 2007, at 10:42 PM, David Halik wrote:
>
>>
>> BTW, adding --ftpdebug should show the wire protocol, adding --rpmiodebug
>> pretty much pins down where in rpmio a problem lies.
>>
>> 73 de Jeff
>
> Actually, I've never been able to --ftpdebug display any extra info. That was
> one of the first things that originaly gave me the idea that somehow ftp
> functionality wasn't included in my build. I think I mentioned this a long
> time ago in the original thread, but maybe not. For example, using the exact
> same command as you all I come up with is:
>
> # rpm -qp --ftpdebug
> ftp://rpm.rutgers.edu/solaris/solaris9-sparc64/hydrogen/RPMS.main/openssl-0.9.8g-1.solaris2.9-sparc64.rpm
> error: open of
> ftp://rpm.rutgers.edu/solaris/solaris9-sparc64/hydrogen/RPMS.main/openssl-0.9.8g-1.solaris2.9-sparc64.rpm
> failed: No such file or directory
> #
>
> This is part of the reason why I was having such a hard time debugging it...
> extra ftp info would have been great! ;) --rpmiodebug shows the expected
> problem:
>
> *** Fopen fdio path
> ftp://rpm.rutgers.edu/solaris/solaris9-sparc64/hydrogen/RPMS.main/openssl-0.9.8g-1.solaris2.9-sparc64.rpm
> fmode r
>
> Strange ftpdebug doesn't work in our build.
>
All depends on how the URL is opened, and there
have been flip-flop's in rpm code about whether rpm should be network
aware or not.
Find the open, it should *NOT* look like
fd = Fopen(url, "r.fdio");
the "fdio" explicitly turns off network protocols.
Changing "fdio" to "ufdio" should explicitly permit network access:
fd = Fopen(url, "r.ufdio");
The default access is ufdio for many years in code I work with.
73 de Jeff
Received on Wed Nov 7 21:36:19 2007