Opened 4 years ago

Closed 4 months ago

#61556 closed defect (fixed)

Error: Failed to build tf: command execution failed

Reported by: aforeman Owned by: darren.bane@…
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc: ryandesign (Ryan Carsten Schmidt)
Port: tf

Description (last modified by mf2k (Frank Schima))

:info:build malloc.c:22:15: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]

Attachments (1)

tf.log (39.1 KB) - added by aforeman 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by aforeman

Attachment: tf.log added

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to darren.bane@…
Status: newassigned

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)

In the future, please use WikiFormatting.

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Keywords: bigsur added; BigSur removed

comment:4 Changed 3 years ago by winzlocom

Workaround/solution posted to the TinyFugue SourceForge discussion thread I created for this awhile back:

Some people seem to fix this by changing the pointer type of mmaloc_base

http://blakesmith.me/2009/10/28/tinyfugue-on-snow-leopard.html

Others fix it by adding this to malloc.c:

#include <sys/types.h>

And it also seems like mmaloc_base is never used anywhere else, so potentially you can just remove that line referenced in the link and be done with it.

comment:5 Changed 3 years ago by winzlocom

Upon further investigation, #include <sys/types.h> already exists in src/malloc.c. I am continuing to investigate the legitimacy of this thread's response by trying the other suggested change. I'm working directly from the project's SourceForge repository so at this point this is purely informational.

comment:6 Changed 3 years ago by winzlocom

This is still a big within the SourceForge tf-50b8 tree. I've confirmed this using a direct source compile, which does not contain a lot of changes that the MacPorts version of tf-50b8 includes - including the fixes from my prior comments. Despite this, the source build appears to be just as broken as the MacPorts build - just manifesting differently in error log output. Fixing this is beyond my skill level, as I haven't coded in C since early Linux and way before macOS existed. Feel free to disregard all of my submissions to this ticket as redundant, and I apologize for thinking that this was going to be a simple fix based on feedback I received from the source's own discussion thread.

comment:7 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

comment:8 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In c8e95426db3a7a0efdae0f2619f68f0bf26ad7ee/macports-ports (master):

tf: Fix implicit declaration of functions

Closes: #61556

New versions of clang and gcc default to -fno-common which fails on this
code due to multiple definitions of _world_decl. Fix this with -fcommon.

Also modernize checksums, add modeline, and avoid HTTP redirects.

Note: See TracTickets for help on using tickets.