X11R6 compilation under solaris 2.5

X11R6 compilation under solaris 2.5

Post by Laurent Sainte-Mart » Wed, 10 Jan 1996 04:00:00



Hi everybody,

I've just installed solaris 2.5 on my Sun Sparc 2 (I know, it's not the big
power, but it's just for test).
I tried to compile X11R6 on it with patchs up to fix-12 installed, but
compilation failed with error message :

cc -c -O -Xa -mt -I../.. -Dsun -DSVR4 -DXTHREADS -DINCLUDE_ALLOCA_H -DUSE_POLL\
  -Kpic ActionHook.c
"./Xtos.h", line 116: identifier redeclared: __builtin_alloca
        current : function() returning pointer to char
        previous: function(uint) returning pointer to void : "/usr/include/\
alloca.h", line 42
cc: acomp failed for ActionHook.c

I nothing changed since my last compilation under solaris 2.4 except my .cf
configuration file.
So, solaris 2.5 seems to react upon the parameter of __builtin_alloca function

does anybody have already seen this problem ?

When I comment the new declaration of __builtin_alloca function in Xtos.h file,
compilation works fine, but an other problem (I don't know if there is any
correlation) appears : xterm doesn't work properly. I can open a window and
work inside but when I want to logout from it, window doesn't disappear and
xterm loops

Thanks for your help

 Laurent

--
---------------------------------------------------------------

Genethon,      1 rue de l'Internationnale, 91000 Evry  FRANCE
---------------------------------------------------------------

 
 
 

X11R6 compilation under solaris 2.5

Post by Casper H.S. Dik - Network Security Engine » Thu, 11 Jan 1996 04:00:00



>cc -c -O -Xa -mt -I../.. -Dsun -DSVR4 -DXTHREADS -DINCLUDE_ALLOCA_H -DUSE_POLL\
>  -Kpic ActionHook.c
>"./Xtos.h", line 116: identifier redeclared: __builtin_alloca
>    current : function() returning pointer to char
>    previous: function(uint) returning pointer to void : "/usr/include/\
>alloca.h", line 42
>cc: acomp failed for ActionHook.c

A prototype for alloca/__builtin_alloca was added to Solaris 2.5 "alloca.h".
"void *alloca(size_t)"

Xtos.h adds a definition for alloca that doesn't match that
prototype, instead it defines it in the old fashioned way
as "char *alloca()".

Editing Xtos.h looks like the only solution for now.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

X11R6 compilation under solaris 2.5

Post by Kaleb KEITHL » Sat, 13 Jan 1996 04:00:00




>>cc -c -O -Xa -mt -I../.. -Dsun -DSVR4 -DXTHREADS -DINCLUDE_ALLOCA_H -DUSE_POLL\
>>  -Kpic ActionHook.c
>>"./Xtos.h", line 116: identifier redeclared: __builtin_alloca
>>        current : function() returning pointer to char
>>        previous: function(uint) returning pointer to void : "/usr/include/\
>>alloca.h", line 42
>>cc: acomp failed for ActionHook.c
>A prototype for alloca/__builtin_alloca was added to Solaris 2.5 "alloca.h".
>"void *alloca(size_t)"

Small nit. The prototype that was added was:

    extern void* __builtin_alloca(size_t)

Quote:>Xtos.h adds a definition for alloca that doesn't match that
>prototype, instead it defines it in the old fashioned way
>as "char *alloca()".

Which the define in alloca.h turns into "char* __builtin_alloca()".

Quote:>Editing Xtos.h looks like the only solution for now.

Yes, there and the three or four other places in the X sources where alloca
is similarly defined.

--

Kaleb KEITHLEY
X Consortium

 
 
 

1. X11R6.1/imake on Solaris 2.5

I've compiled (with gcc 2.7.2) the X11R6.1 distribution from
ftp.x.org. The compile went fine, and the few binaries I've tried seem
to work.
But: I'm having trouble getting imake to behave. I have a contributed
package (Offix) which has lines like

CCOPTIONS := $(CCOPTIONS) -Wall

in Imake.options and various Imakefiles. Imake passes the := to the
Makefile, and then make (either /usr/ccs/make or GNU make) gaks on it.

What's up????

Also, what's an easy way (aside from lots of links) to indicate that
Motif lives in /usr/dt/{include,lib} ?

My site.def has

#define HasGcc2 YES
#define USE_CC_E gcc -E
#define HasGcc2ForCplusplus YES

#define OSMinorVersion    5
#define OSName            SunOS 5.5

Do I need something else???

Thanks

John Harper
-----------------------------
Administrative Programmer
Scarborough College

<URL http://www.scar.utoronto.ca>

2. Sendmail & Fetchmail

3. X11R6 binaries for Solaris 2.5

4. GIGO mmbbs tamed......

5. X11R6.1 on Solaris 2.5/SPARC 4 doesn't work

6. ppp and routing

7. gcc-2.7.2 compilation for x86 Solaris 2.5 on Linux machine

8. htpasswd

9. Apache1.0.0 Compilation Problem in UltraSparc(Solaris 2.5)

10. Kde 1.1.1 compilation on sun sparc SunOs 5.5.1 (aka Solaris 2.5)

11. FS: Solaris 2.5 Desktop (CDE) and/or Solaris 2.5 Server Packages for x86 desktops

12. Does Sol 2.5 feature a X11R6 server?

13. how to install solaris 2.5 x86 to 2.5 gig WD HD