New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14671 (new request)

Opened 5 years ago

Last modified 4 years ago

oski: new port

Reported by: ryandesign@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: boolegue@…
Port:

Description

Antoine Dechaume requested assistance building oski on Mac OS X.

I started a portfile for oski and encountered the same error he did:

ld: Undefined symbols:
_MAIN__
/usr/bin/libtool: internal link edit command failed
make[1]: *** [liboski.la] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for oski): org.macports.destroot org.macports.build
Error: Status 1 encountered during processing.
$

Apparently the developer of oski doesn't know why this is happening either.

I'll attach my partial portfile if anyone else wants to look into it.

Attachments

Portfile (909 bytes) - added by ryandesign@… 5 years ago.
incomplete portfile

Change History

Changed 5 years ago by ryandesign@…

incomplete portfile

comment:1 Changed 5 years ago by ryandesign@…

Searching Google for this error I found a page with a suggestion to replace "program foo" with "subroutine foo" in the Fortran program, and then write a small C program which calls this Fortran subroutine:

int main (int argc, const char * argv[]) {
    foo_();
    return 0;
}

But to try this, I would need to know what the name of the main Fortran program is. I don't even know where the Fortran code is for this program. I'm not a Fortran programmer so I don't even know what to look for.

comment:2 Changed 5 years ago by ryandesign@…

In the configure output I see this:

checking for dummy main to link with Fortran 77 libraries... none

On the topic of dummy main functions I found this reference.

Not sure if any of that is relevant. Just grasping at straws.

comment:3 Changed 5 years ago by ryandesign@…

It looks like the "ld: Undefined symbols: _MAIN__" problem was already reported back in December 2006 on the oski mailing list.

comment:4 Changed 4 years ago by jmr@…

  • Type changed from enhancement to request

comment:5 Changed 4 years ago by anonymous

  • Milestone Port Requests deleted

Milestone Port Requests deleted

Note: See TracTickets for help on using tickets.