bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14089, Error 2 in stubc_c.c Line 1107

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14089: Error 2 in stubc_c.c Line 1107

Submitter:  Alfonso <alfruz>
Submitted:  Thu 11 Aug 2005 10:03:25 AM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Compilation problem Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  2.6.2 Release: 
Operating System:  FreeBSD Binaries Origin:  CVS / Self compiled
CPU type:  Intel x86

Jump to the original submission

Thu 18 Aug 2005 12:57:23 PM UTC, comment #9: 

Patch was applied to CVS today

spiralvoice <spiralvoice>
Group administrator
Thu 18 Aug 2005 07:15:34 AM UTC, comment #8: 

 I applied the patch #4320 and now mlDonkey compile and run on my FreeBSD 4.10.

Alfonso <alfruz>
Wed 17 Aug 2005 12:17:48 AM UTC, comment #7: 

According to FreeBSD CVS f_namelen was introduced in FreeBSD 5.2,
before NAME_MAX was used, like on OpenBSD. So I changed the code
to reflect this and tested compile on FreeBSD 4.11. As installing
it took a long time I did not test it on FreeBSD 5.2. On 5.3 it
works like before. Please test patch #4320 so it can be applied to CVS.

spiralvoice <spiralvoice>
Group administrator
Thu 11 Aug 2005 02:35:22 PM UTC, comment #6: 

 When I run "disk ." I can see "fnamelen 255" and I try to create a file with name of 250 chars and the file are created.

Alfonso <alfruz>
Thu 11 Aug 2005 01:22:05 PM UTC, comment #5: 

Could you post the header file in which NAME_MAX is defined?

spiralvoice <spiralvoice>
Group administrator
Thu 11 Aug 2005 01:20:04 PM UTC, comment #4: 

"But I don't know where it can fail with this change in source code."

You can test this yourself. From Changelog:
"4191: Access to disk data (free space, max file name length)
      This is first step implmenting this, checkout the
      disk command for debugging."

Use command "disk ." or any other directory as parameter and look
if the value for fnamelen and the other values reported fit your system.

spiralvoice <spiralvoice>
Group administrator
Thu 11 Aug 2005 12:39:02 PM UTC, comment #3: 

 I'm not know how get the man pages. I try "man mount.h" and "No manual entry for mount.h"

 If I change line 1107  from "buf->f_namelen" to "NAME_MAX" mldonkey compile and run ok. But I don't know where it can fail with this change in source code.

Alfonso <alfruz>
Thu 11 Aug 2005 12:20:22 PM UTC, comment #2: 

Please attach these files:

/usr/include/sys/param.h
/usr/include/sys/mount.h

I tested the code for HDD statistics on FreeBSD 5.3, your version
is older, so there have to be some workarounds...

The man pages for param.h(2) and mount.h(2) are also interesting.

spiralvoice <spiralvoice>
Group administrator
Thu 11 Aug 2005 10:26:43 AM UTC, comment #1: 

Please post the complete configure output

spiralvoice <spiralvoice>
Group administrator
Thu 11 Aug 2005 10:03:25 AM UTC, original submission:  

The error is in FreeBSD 4.11, when I do gmake.
The error is in stubc_c.c file, in line 1107 and say: "structure has no member named 'f_namelen'.

Alfonso <alfruz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3368:  stubs_c.c added by wolfah (29KiB - application/octet-stream - The error is in FreeBSD 4.11, when I do gmake.)
file #3342:  syslimits.h added by alfruz (3KiB - text/plain - File where NAME_MAX are defined)
file #3341:  mount.h added by alfruz (19KiB - text/plain)
file #3340:  param.h added by None (10KiB - text/plain)
file #3339:  config.log added by alfruz (61KiB - application/octet-stream - config.log from "./configure --enable-batch")

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 9 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-18 spiralvoice StatusReady For Test Fixed
    Open/ClosedOpen Closed
2005-08-17 spiralvoice StatusNone Ready For Test
2005-08-16 wolfah Carbon-Copy- Added -email is unavailable-
2005-08-16 wolfah Attached File- Added stubs_c.c, #2829
2005-08-11 alfruz Attached File- Added syslimits.h, #2803
2005-08-11 alfruz Attached File- Added mount.h, #2802
2005-08-11 None Attached File- Added param.h, #2801
2005-08-11 alfruz Attached File- Added config.log, #2800

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code