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

Submitter:  spiralvoice <spiralvoice>
Submitted:  Thu 14 Apr 2005 10:37:46 AM UTC
   
 
Category:  Core Severity:  4 - Important
Item Group:  Compilation problem Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  2.5.30.5 Release: 
Operating System:  Solaris Binaries 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>
Group 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>
Group administrator

 

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

No files currently attached

 

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

Date Changed by Updated Field Previous Value => Replaced by
2005-04-16 spiralvoice Open/ClosedOpen Closed
2005-04-15 amorphous StatusNone Fixed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code