bugGNU dbm - Bugs: bug #649, gdbm-1.25 fails to build on musl...

 
 
Show feedback again

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

bug #649: gdbm-1.25 fails to build on musl libc: unknown type name 'ssize_t'

Submitted by:  Holger Hoffstätte <hhoffstaette>
Submitted on:  Sun Mar 23 13:43:26 2025  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Sergey Poznyakoff <gray>
Open/Closed: Closed

Mon Mar 24 07:38:57 2025, comment #3:

Tried git master and indeed including <sys/types.h> fixed it.
Not sure why I didn't find the __NEED stuff when searching but I'll take it. :)
Thanks you!

Holger Hoffstätte <hhoffstaette>
Mon Mar 24 05:58:40 2025, comment #2:

Thanks for reporting. An include was missing in gdbmapp.h. Fixed in 39ef0347f7. Please pull.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Sun Mar 23 13:50:44 2025, comment #1:

> unlocked with __NEED_ssize_t before including e.g. autoconf.h


..or in/after including autoconf.h, before including anything else.
Eventually it will be picked up transitively.

Holger Hoffstätte <hhoffstaette>
Sun Mar 23 13:43:26 2025, original submission:

Original downstream bug report at https://bugs.gentoo.org/951911

As the title says, building 1.25 fails on musl-1.2.5 with:

x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/tools -I.. -DLOCALEDIR=\"/usr/share/locale\" -I/var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/src -I../src -I/var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/tools -pipe -march=sandybridge -O2 -c -o wordwrap.o /var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/tools/wordwrap.c
In file included from /var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/tools/wordwrap.c:18:
/var/tmp/portage/sys-libs/gdbm-1.25/work/gdbm-1.25/tools/gdbmapp.h:74:30: error: unknown type name 'ssize_t'; did you mean 'size_t'?
74 | ssize_t (writer) (void , const char *, size_t),
| ^~~~~~~
| size_t

since ssize_t is guarded and needs to be unlocked with __NEED_ssize_t before including e.g. autoconf.h.

Holger Hoffstätte <hhoffstaette>

 

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 gray (Posted a comment)
  • -unavailable- added by hhoffstaette (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):

     

     

    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 24 05:58:40 2025grayStatusNone=>Fixed
      Assigned toNone=>gray
      Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray