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

 
 

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

Submitted by:  lalit <lojha>
Submitted on:  Tue 16 Sep 2014 07:06:42 AM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Nov 2016 11:53:35 PM UTChaibleCategoryNone=>Build
    Sun 16 Nov 2014 11:43:35 PM UTChaibleStatusNone=>Invalid
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1