Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #520] Doesn't compile with Sun Studio compiler: -W not supported #250

Closed
icinga-migration opened this issue Jun 21, 2010 · 3 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/520

Created by alexs77 on 2010-06-21 11:19:53 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2010-06-21 15:55:04 +00:00)
Target Version: 1.0.2
Last Update: 2010-06-21 15:55:04 +00:00 (in Redmine)


$ make all
cd ./base && make
/opt/sunstudio12.1/bin/cc -Wall   -xO5 -xdepend=yes -xmemalign=8s -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -fsingle -xalias_level=basic -xchip=sparc64vii -xcache=64/64/2:5120/256/10 -xarch=sparcima -xipo=1 -I/opt/csw/include -I/opt/local/libdbi/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO  -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE  -DHAVE_CONFIG_H -DNSCORE  -c  broker.c
cc: -W option with unknown program all
[...]

I'm using Sun Studio 12 update 1 on a Solaris 10 system.

During configure, it rightly detected, that the compiler is NOT gcc:

[...]
checking whether we are using the GNU C compiler... no
[...]

But it then passed on "-Wall" nonetheless, but -W on Sun Studio cc has a different meaning:

$ cc -flags|grep ^-W                                           
-W,                   Pass  to specified component  (a,c,d,l,m,O,o,p,0,2)

Changesets

2010-06-21 15:51:01 +00:00 by mfriedrich 0a324f3

remove -Wall cflags, incompatible with solaris; fix deleted argc

fixes #520
fixes #522
@icinga-migration
Copy link
Author

Updated by alexs77 on 2010-06-21 11:20:45 +00:00

Forgot to mention... I'm using the latest git sources of icinga-core.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2010-06-21 15:49:44 +00:00

  • Assigned to set to mfriedrich
  • Target Version set to 1.0.2

uhm ok, never expected that to be a problem on solaris. thanks for reporting, -Wall will be removed again, everyone can export that cflags before configure though.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2010-06-21 15:55:04 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset commit:"0a324f364ee03e14eaddf6098cbe407e43f95909".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant