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

Submitted by:  Alfonso <alfruz>
Submitted on:  Thu 11 Aug 2005 10:03:25 AM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Compilation problemStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: Release: 2.6.2
Operating System: FreeBSDBinaries Origin: CVS / Self compiled
CPU type: Intel x86

(Jump to the original submission Jump to the original submission)

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

Patch was applied to CVS today

spiralvoice <spiralvoice>
Project 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>
Project 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>
Project 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>
Project 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>
Project Administrator
Thu 11 Aug 2005 10:26:43 AM UTC, comment #1:

Please post the complete configure output

spiralvoice <spiralvoice>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 9 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 18 Aug 2005 12:57:23 PM UTCspiralvoiceStatusReady For Test=>Fixed
  Open/ClosedOpen=>Closed
Wed 17 Aug 2005 12:17:48 AM UTCspiralvoiceStatusNone=>Ready For Test
Tue 16 Aug 2005 12:06:01 PM UTCwolfahCarbon-Copy-=>Added -unavailable-
Tue 16 Aug 2005 12:06:00 PM UTCwolfahAttached File-=>Added stubs_c.c, #2829
Thu 11 Aug 2005 02:27:06 PM UTCalfruzAttached File-=>Added syslimits.h, #2803
Thu 11 Aug 2005 12:26:48 PM UTCalfruzAttached File-=>Added mount.h, #2802
Thu 11 Aug 2005 12:25:44 PM UTCNoneAttached File-=>Added param.h, #2801
Thu 11 Aug 2005 11:14:54 AM UTCalfruzAttached File-=>Added config.log, #2800

Back to the top


Powered by Savane 3.1-cleanup1