Opened 17 years ago

Closed 6 years ago

Last modified 6 years ago

#14671 closed request (fixed)

oski: new port

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: boolegue@…
Port: oski

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 (1)

Portfile (909 bytes) - added by ryandesign (Ryan Carsten Schmidt) 17 years ago.
incomplete portfile

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile added

incomplete portfile

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

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 17 years ago by ryandesign (Ryan Carsten Schmidt)

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 17 years ago by ryandesign (Ryan Carsten Schmidt)

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

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

Type: enhancementrequest

comment:5 Changed 16 years ago by (none)

Milestone: Port Requests

Milestone Port Requests deleted

comment:6 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Owner: changed from macports-tickets@… to MarcusCalhoun-Lopez
Status: newassigned

comment:7 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

comment:8 Changed 6 years ago by mf2k (Frank Schima)

Port: oski added
Version: 1.6.0
Note: See TracTickets for help on using tickets.