Compiling HAProxy with SunStudio on Solaris x86

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Fri, 13 Jun 2008 01:32:11 +0200


Hi all,

today I have installed the current OpenSolaris 2008.05 with the current SunStudio

Product Version: Sun Studio (Build 200711261600, Sun Studio 20071207) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: SunOS version 5.11 running on x86; UTF-8; en_US (sunstudio) Userdir: /export/home/al/.sunstudio/ceres-dev2-SunOS-i386

I have some troubles which I can't fix, please can you help me to fix it.

The main thing is:

###
"src/haproxy.c", line 117: undefined symbol: logfac1
"src/haproxy.c", line 117: non-constant initializer: op "NAME"
"src/haproxy.c", line 117: syntax error before or at: :
"src/haproxy.c", line 122: warning: old-style declaration or incorrect type for: stats_sock
"src/haproxy.c", line 123: structure/union designator used on non-struct/union type
"src/haproxy.c", line 123: warning: improper pointer/integer combination: op "="
"src/haproxy.c", line 124: structure/union designator used on non-struct/union type
"src/haproxy.c", line 124: too many initializers for scalar
"src/haproxy.c", line 125: structure/union designator used on non-struct/union type
"src/haproxy.c", line 126: structure/union designator used on non-struct/union type
"src/haproxy.c", line 127: structure/union designator used on non-struct/union type
"src/haproxy.c", line 128: structure/union designator used on non-struct/union type
"src/haproxy.c", line 129: structure/union designator used on non-struct/union type
"src/haproxy.c", line 134: syntax error before or at: }
"src/haproxy.c", line 134: warning: syntax error: empty declaration
"src/haproxy.c", line 172: cannot recover from previous errors
###

###
/* global options */
struct global global = {

	logfac1 : -1,
	logfac2 : -1,
	loglev1 : 7, /* max syslog level : debug */
	loglev2 : 7,
	.stats_timeout = { .tv_sec = 10, .tv_usec = 0 }, /* stats timeout = 10 seconds */
	.stats_sock = {
		.timeout = &global.stats_timeout,
		.maxconn = 10, /* 10 concurrent stats connections */
		.perm = {
			 .ux = {
				 .uid = -1,
				 .gid = -1,
				 .mode = 0,
			 }
		 }
	}
	/* others NULL OK */

};
###

are this 'special' features in gcc or is it Cxx compliant?

Thanks for help

Aleks Received on 2008/06/13 01:32

This archive was generated by hypermail 2.2.0 : 2008/06/13 01:45 CEST