New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13032 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

sysutils/tree fails to build on Mac OS X 10.5 Leopard

Reported by: mordeth@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: sysutils tree warning error signedness Cc: mordeth@…
Port:

Description

[root@dissonance Shared]# port install tree
--->  Fetching tree
--->  Attempting to fetch tree-1.5.0.tgz from ftp://mama.indstate.edu/linux/tree/
--->  Verifying checksum(s) for tree
--->  Extracting tree
--->  Configuring tree
--->  Building tree with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_tree/work/tree-1.5.0" && make all CFLAGS="-no-cpp-precomp" " returned error 2
Command output: gcc -no-cpp-precomp   -c -o tree.o tree.c
In file included from tree.c:33:
/usr/include/sys/stat.h:261: error: redefinition of 'struct stat'
tree.c: In function 'main':
tree.c:467: warning: pointer targets in passing argument 1 of 'printit' differ in signedness
tree.c: In function 'listdir':
tree.c:709: warning: pointer targets in passing argument 1 of 'printit' differ in signedness
tree.c:722: warning: pointer targets in passing argument 1 of 'printit' differ in signedness
tree.c: In function 'printit':
tree.c:1176: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
tree.c:1177: warning: pointer targets in passing argument 2 of 'mbstowcs' differ in signedness
make: *** [tree.o] Error 1

Error: Status 1 encountered during processing.

Change History

Changed 4 years ago by mordeth@…

Note: This result was from an Intel Core Duo MacBook Pro; I have not installed Leopard on PPC yet.

Changed 4 years ago by afb@…

leopard added stat64, so it probably needs a little tweaking...

Changed 4 years ago by ryandesign@…

  • cc mordeth@… added
  • summary changed from sysutils/tree fails to build on 10.5 to sysutils/tree fails to build on Mac OS X 10.5 Leopard

Changed 4 years ago by jonasduevesterheden@…

I get the exact same build failure on a PPC machine (iBook G4).

Changed 4 years ago by 99@…

I get this same error on a Macbook with 10.5.1. It's very sad.

Changed 4 years ago by boeyms@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r32371. Thanks to nsutton on IRC for helping to fix this bug.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.