Bug 186683

Summary: ncpmount needs downgrade to work properly
Product: [Fedora] Fedora Reporter: Jaroslav Sebestik <sebestik>
Component: ncpfsAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-11 09:44:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output of ncpmount from the test package
none
proposed patch none

Description Jaroslav Sebestik 2006-03-25 12:00:50 UTC
Description of problem:
I have upgraded from Fedora Core 3 to Fedora Core 5. The programs ncpmount and
ncplogin are not able to connect to NetWare server. Command line parameters are
the same as in FC3, where it works without any problem. 
The prgram reports following error:
ncpmount: Invalid server response (-330) in nds login
Login denied.

The solution of this problem was downgrade to package ncpfs-2.2.4-5.FC3.i386.rpm
then it works without problems.

Version-Release number of selected component (if applicable):
2.2.6-1.2.1

How reproducible:
Completly

Steps to Reproduce:
1. /usr/bin/ncpmount -S FS1 -U pept.chp.uochb -P ********** /mnt/FS1
the asterikses are used instead of password
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 vvs 2006-03-28 08:08:55 UTC
Actually, the version 2.2.6-1.2.1 works if it's compiled from source rpm on FC4
using gcc-4.0.2-8. So, it seems more like gcc optimization bug to me. I didn't
try to use gcc-4.1.0 with -O0 though.

Comment 2 Mathieu Brabant 2006-03-28 15:50:25 UTC
  Good call Victor.  I recompiled ncpfs-2.2.6-1.2.1 on FC5 with gcc-4.1.0-3
without gcc optimization (got rid of the -O2 parameter) and it fixed the problem
of "Invalid server response (-330) in nds login".  Thanks !

  To get rid of the -O2 I had to patch the configure file (-O2 seems hard coded
in there ?!) and remove the $RPM_OPT_FLAGS from the spec file.  Couldn't find
where $RPM_OPT_FLAGS was picking its -O2 from ?  There has to be an easier way
of doing it but I didn't have hours to spend.

Comment 3 vvs 2006-03-29 04:57:35 UTC
Please, can someone with sufficient privileges change the component field to gcc?

Comment 4 Martin Stransky 2006-03-29 08:37:30 UTC
Could you please check this package?

http://people.redhat.com/stransky/ncpfs/

It has some debug output, please attach it after ncpmount failed.

Comment 5 vvs 2006-03-29 10:54:37 UTC
Created attachment 126969 [details]
output of ncpmount from the test package

Comment 6 Martin Stransky 2006-03-31 18:30:48 UTC
I released package w/o optimalization for FC5, you can check it. Unfortunately I
don't have any netware server handy so I can't track it down.

Comment 7 Jaroslav Sebestik 2006-04-01 18:11:11 UTC
(In reply to comment #6)
> I released package w/o optimalization for FC5, you can check it. Unfortunately I
> don't have any netware server handy so I can't track it down.
OK,

it works. Problem was removed. Thank you.

Comment 8 Martin Stransky 2006-04-11 09:43:03 UTC
Created attachment 127604 [details]
proposed patch

fix for this issue, heads to rawhide....