Ticket #14671 (new request)
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
Change History
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.


incomplete portfile