Opened 10 years ago

Closed 6 years ago

#44485 closed defect (wontfix)

Compile Error in Open (GNU) Cobol when compiling in OS 10.9 Mavericks ( New Install )

Reported by: gregthrower@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: open-cobol

Description (last modified by mf2k (Frank Schima))

macbook-pro:tmp macbook$ cobc -x hello.cob
clang: error: unknown argument: '-R/opt/local/lib' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future.

Hard error. Does not create executable. Should I forget running this on my MAC and just create a Linux partition?

Change History (9)

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

This was brought up on the mailing list previously: https://lists.macosforge.org/pipermail/macports-users/2014-May/035518.html
Because the mailing list archives do not follow threads over month boundaries, the June portion of it starts here: https://lists.macosforge.org/pipermail/macports-users/2014-June/035556.html

I am working on fixing this as part of an update of the open-cobol package to version 2.0, but then I ran into this bug which I filed upstream: https://sourceforge.net/p/open-cobol/bugs/73/ (which apparently has received some comments since I last checked it... but that is something else)

Anyways, in the meantime, I fix the issue of clang being too strict by adding this block of code to the open-cobol Portfile:

# https://lists.macosforge.org/pipermail/macports-users/2014-May/035518.html
if {[string match *clang* ${configure.compiler}]} {
    configure.args-append --disable-rpath
    configure.cppflags-append -std=gnu89
    pre-configure {
        ui_warn "${name} has issues with clang"
    }
}

I am not sure if the --disable-rpath flag was around in the current version or if it was added in the version to which I am updating it though...

(also, since I am the maintainer of this port, you should have cc-ed me on it, but as I saw this in time, I will just cc myself. I would appreciate it if a committer could change that cc to an assignment...)

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

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Cc: egall@… removed
Owner: changed from macports-tickets@… to egall@…
Port: open-cobol added

In the future, also use WikiFormatting and fill in the Port field.

comment:4 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:5 Changed 10 years ago by cooljeanius (Eric Gallager)

I have an update ticket open that should fix this: #44501

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

Owner: cooljeanius deleted
Status: newassigned

See #56907

comment:7 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

open-cobol has since been renamed to gnucobol and updated to 2.2. Is this issue still present?

comment:8 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

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

Resolution: wontfix
Status: assignedclosed

Please open a new ticket against the current port if this issue still exists.

Note: See TracTickets for help on using tickets.