hash_bigkey.c in libc being compiled with missing MIN macro

Bug #1479302 reported by Andre Vieira
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Fix Released
Undecided
Andre Vieira

Bug Description

Hello,
trying to link my program I am getting an error message, __big_insert: undefined reference to MIN.
The symbol is undefined in the libc.a

arm-none-eabi-nm libc.a | grep -B 30 MIN
lib_a-hash_bigkey.o:
         U __add_ovflpage
00000000 T __big_delete
00000000 T __big_insert
00000000 T __big_keydata
00000000 T __big_return
00000000 T __big_split
         U __call_hash
00000000 t collect_data
00000000 t collect_key
         U __errno
00000000 T __find_bigpair
00000000 T __find_last_page
         U free
         U __free_ovflpage
         U __get_buf
         U malloc
         U memcmp
         U memmove
         U MIN

and MIN is not defined in the libc.a, arm-none-eabi-nm --defined-only libc.a | grep MIN (no output).

Probably it has a connection with the including #include <sys/param.h> in newlib file hash_bigkey.c. The ARM port does define MIN MAX macros as other targets do.

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

Submitted patch for approval upstream:
https://sourceware.org/ml/newlib/2015/msg00595.html

Changed in gcc-arm-embedded:
status: New → In Progress
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) wrote :

Fix has been committed in newlib on August 2015 and is thus present since our 2015Q3 release. Marking the bug as fix released.

Changed in gcc-arm-embedded:
assignee: nobody → Andre Vieira (andre-simoesdiasvieira)
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.