Busted GNU compilers for Solaris2.5.1 box

Busted GNU compilers for Solaris2.5.1 box

Post by Ms. Sun SysAdmi » Thu, 09 Jul 1998 04:00:00

I get the following message when I try to compile anything with g++ :

ld: elf error: a.out: elf_update: Request error: update() ELF_C_...

I recently installed gcc-2.8.1 and libstdc++-2.8.1.

When I try to compile a program with gcc I get:

 ld: elf error: a.out: elf_update: Request error: update() ELF_C_...

As well.

This happen with any user.

The sample programs are as follows:


#include <iostream.h>
void main()



#include <stdio.h>

int main()
int a=6, b=7, c;
printf("Adding %d to %d equals %d\n\n",a,b,c);
return 0;


Any suggestions on how I could get my compilers to start working again.



1. Compiling Apache on Solaris2.5.1 w/SUNpro C compiler


I am attempting to compile apache 1.2.4 on a Solaris 2.5.1 system.  I
have ran into some problems and am forced to assume that there are
some compatibility issure with the SUNpro C compiler.  I have made
miniumal changer to Configuration. (Only added the "cc" compiler info.)
I also had to add a tyoedef to conf.c:

typedef int rlim_t;

I run into some "argument mismatch" errors on http_logs.c and
http_protocol.c and some syntax errors in the later.  Heres the
errors for http_protocol.c:

# make
cc -c -Iregex  -O2 -DSOLARIS2   http_protocol.c
"http_protocol.c", line 607: major: argument mismatch
"http_protocol.c", line 607: minor: argument mismatch
"http_protocol.c", line 650: major: argument mismatch
"http_protocol.c", line 650: minor: argument mismatch
"http_protocol.c", line 651: major: argument mismatch
"http_protocol.c", line 651: minor: argument mismatch
"http_protocol.c", line 1652: va_start: argument mismatch
"http_protocol.c", line 1668: va_start: argument mismatch
"http_protocol.c", line 607: syntax error before or at: int
"http_protocol.c", line 625: undefined symbol: len
"http_protocol.c", line 650: syntax error before or at: )
"http_protocol.c", line 651: syntax error before or at: )
"http_protocol.c", line 654: cannot recover from previous errors
*** Error code 10

Could someone tell me what changes need to be made for Apache to
compile with the SUNpro C compiler?

2. Segmentation fault?!?

3. about compiler Gcc for solaris2.5.1?

4. Couple of simple setup questions....

5. Remote Mounting CDROM from one SOLARIS2.4 BOX to other SOLARIS2.4 BOX

6. It works...now what.

7. Solaris2.6 TCP/IP faces Solaris2.5.1.

8. Moving an SSA RAID array

9. Losing space from Solaris2.4 to Solaris2.5.1?

10. Does anyone have ssh binaries for Solaris2.5.1 or Solaris2.6?

11. DNS search between Solaris2.5.1 and Solaris2.6

12. Solaris2.3 - Solaris2.5.1 captive accounts

13. Can your RH 5.1 box see your Win9x box?