buglibiconv - Bugs: bug #43230, make error while building...

 
 

bug #43230: make error while building libiconv-1.14 on HPUX 11.11 PA

Submitter:  lalit <lojha>
Submitted:  Tue 16 Sep 2014 07:06:42 AM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Nov 2014 11:43:35 PM UTC, comment #1: 

On HP-UX, all builds must be done with -D_XOPEN_SOURCE=500 or -D_HPUX_SOURCE. Otherwise the system header files don't define mbstate_t, and the compilation fails in the way you showed.

Why does the command not include -D_XOPEN_SOURCE=500 or -D_HPUX_SOURCE ? My guess is that you have specified CC and CFLAGS in a way that omits it.

Bruno Haible <haible>
Group administrator
Tue 16 Sep 2014 07:06:42 AM UTC, original submission:  

# make
        cd lib && make all
        /bin/sh ../libtool --mode=compile gcc -I. -I. -I../include -I./../include -I.. -I./..  -g -O2  -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL  -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC  -Dset_relocation_prefix=libiconv_set_relocation_prefix  -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
libtool: compile:  gcc -I. -I. -I../include -I./../include -I.. -I./.. -g -O2 -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c  -fPIC -DPIC -o .libs/iconv.o
In file included from iconv.c:21:
../include/iconv.h:129: error: parse error before "mbstate_t"
../include/iconv.h:129: warning: no semicolon at end of struct or union
../include/iconv.h:131: warning: data definition has no type or storage class
../include/iconv.h:138: error: parse error before "iconv_allocation_t"
iconv.c:276: error: size of array `verify_size_1' is negative
iconv.c:277: error: size of array `verify_size_2' is negative
iconv.c:280: error: parse error before "iconv_allocation_t"
In file included from iconv.c:290:
iconv_open1.h: In function `libiconv_open_into':
iconv_open1.h:49: error: `tocode' undeclared (first use in this function)
iconv_open1.h:49: error: (Each undeclared identifier is reported only once
iconv_open1.h:49: error: for each function it appears in.)
iconv_open1.h:141: error: `fromcode' undeclared (first use in this function)
iconv.c:292: error: `resultp' undeclared (first use in this function)
* Error exit code 1

Stop.
* Error exit code 1

Stop.
#

lalit <lojha>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by lojha (Submitted the item)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-23 haible CategoryNone Build
    2014-11-16 haible StatusNone Invalid
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code