Opened 11 years ago

Last modified 10 years ago

#38506 closed defect

tmux: does not build on 10.4 — at Version 8

Reported by: 200309@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: tiger Cc:
Port: tmux

Description (last modified by larryv (Lawrence Velázquez))

Tried to:

port install tmux

And it failed.

10.4.11
PowerBook G3 Pismo 500MHz

Does it require a newer system? or?

see attached main.log

Bill

Change History (10)

Changed 11 years ago by 200309@…

Attachment: main.log added

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

This seems like the key part of the log:

:info:build osdep-darwin.c:23:21: error: libproc.h: No such file or directory
:info:build osdep-darwin.c: In function ‘osdep_get_cwd’:
:info:build osdep-darwin.c:57: error: storage size of ‘pathinfo’ isn’t known
:info:build osdep-darwin.c:64: warning: implicit declaration of function ‘proc_pidinfo’
:info:build osdep-darwin.c:65: error: ‘PROC_PIDVNODEPATHINFO’ undeclared (first use in this function)
:info:build osdep-darwin.c:65: error: (Each undeclared identifier is reported only once
:info:build osdep-darwin.c:65: error: for each function it appears in.)
:info:build make: *** [osdep-darwin.o] Error 1

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

My libproc.h is in /usr/include and the comment block at the top says

 * Copyright (c) 2006, 2007, 2010 Apple Inc. All rights reserved.

Leopard wasn't released until 2007, so I don't see why Tiger wouldn't have it, too...

Changed 11 years ago by cooljeanius (Eric Gallager)

Attachment: libproc.h added

libproc.h as it exists on Lion

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Actually looking at it again, all the function prototypes have __OSX_AVAILABLE_STARTING and then either __MAC_10_5, __MAC_10_6, or __MAC_10_7 in them... You might be out of luck here...

comment:4 Changed 11 years ago by 200309@…

Is there a way to determine if a port will compile on PowerPC 10.4?

That is, what are system requirements for a particular port?

comment:5 in reply to:  4 ; Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to 200309@…:

Is there a way to determine if a port will compile on PowerPC 10.4?

That is, what are system requirements for a particular port?

It's normally up to the portfile author to put something like the following code block in their portfile:

pre-fetch {
    if {${os.platform} == "darwin" && ${os.major} < 9} {
        ui_error "${name} is only supported on OS X 10.5 Leopard or later."
        return -code error "unsupported platform version"
    }
}

Although I'd like it if this were handled by base though... Edit: made a new ticket for that idea: #38508

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:6 in reply to:  3 Changed 11 years ago by 200309@…

Replying to egall@…:

Actually looking at it again, all the function prototypes have __OSX_AVAILABLE_STARTING and then either __MAC_10_5, __MAC_10_6, or __MAC_10_7 in them... You might be out of luck here...

ok tried to compile 10.5 PPC and it works

--->  Cleaning tmux
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 in reply to:  5 ; Changed 11 years ago by 200309@…

Replying to egall@…:

Replying to 200309@…:

Is there a way to determine if a port will compile on PowerPC 10.4?

That is, what are system requirements for a particular port?

It's normally up to the portfile author to put something like the following code block in their portfile:

pre-fetch {
    if {${os.platform} == "darwin" && ${os.major} < 9} {
        ui_error "${name} is only supported on OS X 10.5 Leopard or later."
        return -code error "unsupported platform version"
    }
}

Although I'd like it if this were handled by base though... Edit: made a new ticket for that idea: #38508

Oh yes! That would be great.

Rather than waiting for a compile to finish, I would know right away whether I am using a supported platform.

comment:8 in reply to:  7 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to yeled@…
Summary: tmux fails to compile on powerpctmux: does not build on 10.4

Replying to 200309@…:

Although I'd like it if this were handled by base though... Edit: made a new ticket for that idea: #38508

Oh yes! That would be great.

Rather than waiting for a compile to finish, I would know right away whether I am using a supported platform.

That would not have helped because tmux upstream doesn’t list supported platforms; a MacPorts user would have had to run into problems for us to even know. I guess you won that particular lottery.

Note: See TracTickets for help on using tickets.