Skip to content

gcc-8.3.0 needs -fpermissive #464

Description

@piotr5

building sys-cluster/torque-6.0.4-r1 on gentoo gives me:
requests.c: In function ‘void req_signaljob(batch_request*)’:
requests.c:2101:35: error: local external declaration ‘sig_tbl sig_tbl []’ [-fpermissive]
extern struct sig_tbl sig_tbl[];
^
In file included from requests.c:108:
../../src/include/mom_func.h:109:8: note: does not match previous declaration ‘struct sig_tbl’
struct sig_tbl
^~~~~~~

see also #454

while compiling further I also got same error in mom_main.c:3498:33 at const char* find_signal_name(int)
and there's also an error in mom_main.c:1067:13
name[i] = '\0';
^~~~
in char* conf_res(char*, rm_attribute*)
(I think '\0' should be NULL or something.)

all these errors are avoided by adding -fpermissive into my cflags for this package...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions