bugmldonkey, a multi-networks file-sharing client - Bugs: bug #12683, Compile bug on Solaris -...

 
 

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

bug #12683: Compile bug on Solaris - 'LC_CTYPE' undeclared

Submitted by:  spiralvoice <spiralvoice>
Submitted on:  Thu 14 Apr 2005 10:37:46 AM UTC  
 
Category: CoreSeverity: 4 - Important
Item Group: Compilation problemStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: Release: 2.5.30.5
Operating System: SolarisBinaries Origin: CVS / Self compiled
CPU type: Sparc

Sat 16 Apr 2005 01:15:49 PM UTC, comment #2:

Applied 2-5-30-6

spiralvoice <spiralvoice>
Project Administrator
Fri 15 Apr 2005 01:20:11 PM UTC, comment #1:

Added in svn revision 269 .

Amorphous <amorphous>
Thu 14 Apr 2005 10:37:46 AM UTC, original submission:

src/utils/lib/charsetstubs.c: In function `ml_get_default_language':
src/utils/lib/charsetstubs.c:1367: warning: implicit declaration of function `setlocale'
src/utils/lib/charsetstubs.c:1367: error: `LC_CTYPE' undeclared (first use in this function)
src/utils/lib/charsetstubs.c:1367: error: (Each undeclared identifier is reported only once
src/utils/lib/charsetstubs.c:1367: error: for each function it appears in.)
src/utils/lib/charsetstubs.c:1367: warning: passing arg 1 of `strdup' makes pointer from integer without a cast

config.h
/* Define to 1 if you have the <libcharset.h> header file. */
#define HAVE_LIBCHARSET_H 1
/* Define if you have libcharset with the locale_charset() function. */
#define LOCALECHARSET 1

Changing charsetstubs.c to this solves the problem:

#ifdef LOCALECHARSET
#ifdef HAVE_LIBCHARSET_H
#include <libcharset.h>
+ #include <locale.h>
#else
#include <localcharset.h>
#endif
#else
#include <locale.h>
#include <langinfo.h>
#endif

spiralvoice <spiralvoice>
Project Administrator

 

No files currently attached

 

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 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 16 Apr 2005 01:15:49 PM UTCspiralvoiceOpen/ClosedOpen=>Closed
Fri 15 Apr 2005 01:20:11 PM UTCamorphousStatusNone=>Fixed

Back to the top


Powered by Savane 3.1-cleanup1