Using 4.2 compiler with solaris 8?
Does anyone know if it is possible to get/use the 4.2 compiler with Solaris 2.8? If not, have people found that compat=4 was an adequate workaround? Thanks, John Ranta
Feel free to copy reply to my email
[email protected]
i don't know if it is possible to use the 4.2 compiler with solaris 8.
however we have used the compat=4 option for some ported code that
did not compile under the Forte 6 compiler without compat. we
have not seen a problem using compat=4 as a workaround.
Similar Messages
-
Using a 160GB Disk with Solaris 8
Hello all:
I am using an Ultra5 system with OBP 3.25.3, Solaris 8 [10/01]. I have a 160GB Seagate ST3160812A disk drive that I am trying to use as a second drive (primary slave).
I have installed the drive on the primary channel as a slave and performed boot -r. The /dev and /devices directories correctly setup device links (c0t1d0) for the drive.
Assuming all was good I tried to create a new file system on slice 0 with "newfs /dev/rdsk/c0t1d0s0". This responded with
/dev/rdsk/c0t1d0s0: I/O error
I then used the "format" command to see what was going on. I can see the drive in the 'format' command:
#format
AVAILABLE DISK SELECTIONS
0. c0t0d0 <ST320420A cyl 39533 alt 2 hd 16 sec 63>...
1. c0t1d0 <ST3160812A cyl 255 alt 2 hd 16 sec 255>...
Specify disk (enter...) : 1
selecting c0t1d0
(disk formatted, no defect list found)
format> quit
As can be seen the 160GB drive has parameters that are all wrong for this size disk. The #format->verify command output for slice 2 (backup) shows the following:
ascii name = <ST3160812A cyl 255 alt 2 hd 16 sec 255>
pcyl = 257
ncyl = 255
acyl = 2
nhead = 16
nsect = 255
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 :: :: ::
2 backup wu 0 - 254 508.01MB (255/0/0) 1040400
3 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
I recalled that at boot-up the system showed a 'wrong magic number' message on the new drive. I tried to re-label the drive (format->label). The 'magic number' message went away on the next reboot but the 'format->verify' still showed the same thing.
I have tried several approaches to fix this:
1. I have read several posts and on-line texts that indicate the 137GB limit associated with LBA addressing for the Ultra5 IDE controllers. I have also read the post "How can I use my 160G Disk?"
(http://forum.java.sun.com/thread.jspa?forumID=829&threadID=5065871)
which provided great information and described using the "format" command to configure the disk with 65535 cylinders.
When I use the "format->type" command I get the following:
#format
format> type
AVAILABLE DRIVE TYPES:
0. ST320420A
1. ST3160812A
2. other
According to the "How can I use..." post, I select [2] other and set parameters. When I get to the first parameter to set the cylinders to 65535 I get the following:
Enter number of data cylinders: 65535
'65535' is out of range
a. Using the #format->type {other} function to change the # of cylinders is not accepted by the OS. In fact any value over 32000 cylinders is rejected by the command.
b. Just in case I also tried using the [1] disk type. I get the message:
"disk formatted, no defect list found"
So the suggestion in this post did not work in my case.
2. Next I tried referring to the post "Sun Ultra 5 Hard Drive"
(http://forum.java.sun.com/thread.jspa?forumID=860&threadID=5068466)
which suggested using the dd command to 'nuke' the disk label and re-label with format. So using the command:
dd if=/dev/zero of=/dev/rdsk/c0t1d0s2 bs1b count =16
the command is processed properly but when I perform "format->verify"
the label is unchanged even after I re-execute the "format->label" command. Rebooting the system did not change it either.
3. I also attempted to use the 'format->part->modify' command to change the partition. When the command gets to the 'Free Hog Partition[6]" prompt I get a 'warning: no space available from Free Hog partition" message.
4. I also tried using the 'format->part' command to directly modify the specific '2' partition from the partition menu.
format>part
partition> 2
Part Tag Flag Cylinders Size Blocks
2 backup wu 0 - 254 508.01MB (255/0/0) 1040400
Enter partition id tag[backup]; <return>
Enter partition permission flags [wu]: <return>
Enter new starting cylinder cyl[0]: <return>
Enter partition size [1040400b, 255c, 508.01mb, 0.50gb]: 100g
'100.00gb is out of range'
^D
For some reason even this command limits the partition size.
5. My last ditch attempt was to use fdisk -S <geom_file> to set the label geometry with the following parameters in the file:
pcyl: 65535
ncyl: 65535
acyl: 2
bcyl: 0
nheads: 16
nsectors: 255
secsize: 512
When I run this command the command core dumps.
I'm somewhat lost as to what is preventing me from even using the suggestions others have found useful.
Has anyone successfully used a 160GB Seagate (ST3160812A or other 160GB model) drive with the following?
(as defined by #showrev and #prtconf)
system: Ultra5
OS: Solaris 8 [10.01 assumed based on kernel date]
Kernel: SunOS 5.8 Generic 108528-13 December 2001
OBP 3.25.3 2000/06/29 14:12
kernel architecture: sun4u
My hardware guy has tried numerous times to get a 120GB drive (which some posts indicated should work without any problems) but they are very hard to find. If I can get the 160GB drive to work (even with 137GB) I'll be happy.
Thanks for any information.
elbowzYour version of the OBP as well as the Solaris kernel are not the most up-to-date. If the system is stable without the new disk I would upgrade the OBP to the last version (3.31). It may also be worthwhile to patch the kernel with the recommended cluster patches (if you have enough disk space).
-
Compiling problem when using ansi c compiler on solaris 11
Hello
I'm using solaris 11 on sparc T4 server.
I was trying to generate tpch benchmark data set on the server. I downloaded the tpch files from http://www.tpc.org/tpch/default.asp website. There's a makefile that is used to compile the data generation program. In the makefile, there's a line that specifies which compiler to use. After searching the web, I think it might be "cc" on solaris. so I installed oracle solaris studio 12.3, gcc-3, gcc-45 and set the environment variable:
export PATH=$ORACLE_HOME/bin:$ORACLE_BASE/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin:$PATH
export MANPATH=$ORACLE_BASE/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/man:$MANPATH
-bash-4.1$ which cc
/export/home/oracle/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc
when I run $make, I got the following error. Do you know what the problem might be? Am I using the correct compiler?
Thank you very much. I appreciate any help.
-bash-4.1$ make
cc -g -DDBNAME=\"dss\" -DSUN -DORACLE -DTPCH -DRNG_TEST -D_FILE_OFFSET_BITS=64 -c build.c
"build.c", line 35: cannot find include file: <stdio.h>
"build.c", line 36: cannot find include file: <string.h>
"build.c", line 38: cannot find include file: <sys/types.h>
"build.c", line 41: cannot find include file: <unistd.h>
"/usr/include/iso/math_iso.h", line 13: cannot find include file: <sys/feature_tests.h>
"/usr/include/iso/math_c99.h", line 12: cannot find include file: <sys/feature_tests.h>
"/usr/include/floatingpoint.h", line 39: cannot find include file: <stdio_tag.h>
"/usr/include/floatingpoint.h", line 45: syntax error before or at: FILE
"/usr/include/floatingpoint.h", line 164: syntax error before or at: FILE
"dss.h", line 84: cannot find include file: <stdio.h>
"dss.h", line 85: cannot find include file: <stdlib.h>
"dss.h", line 210: warning: old-style declaration or incorrect type for: FILE
"dss.h", line 210: syntax error before or at: *
"dss.h", line 210: warning: old-style declaration or incorrect type for: tbl_open
"dss.h", line 471: syntax error before or at: FILE
"dss.h", line 471: warning: undefined or missing type for: FILE
"dss.h", line 471: warning: undefined or missing type for: void
"dss.h", line 471: warning: undefined or missing type for: int
"dss.h", line 471: warning: undefined or missing type for: int
"build.c", line 89: warning: implicit function declaration: sprintf
"build.c", line 115: warning: implicit function declaration: strlen
"build.c", line 160: undefined symbol: NULL
"build.c", line 160: warning: improper pointer/integer combination: op "="
"build.c", line 160: non-constant initializer: op "NAME"
"build.c", line 172: warning: improper pointer/integer combination: op "=="
"build.c", line 189: warning: implicit function declaration: strcpy
"build.c", line 348: warning: implicit function declaration: memcpy
"build.c", line 368: undefined symbol: NULL
"build.c", line 368: warning: improper pointer/integer combination: op "="
"build.c", line 368: non-constant initializer: op "NAME"
cc: acomp failed for build.c
*** Error code 2
make: Fatal error: Command failed for target `build.o'Thank you very much for your reply.
system/header is not installed on the server, but when I tried to install it , I got an error that said there was a conflict. How should I solve this?
-bash-4.1$ sudo pkg install system/header
Creating Plan /
pkg install: No matching version of system/header can be installed:
Reject: pkg://solaris/system/[email protected],5.11-0.175.0.0.0.2.1:20111019T073158Z
Reason: This version is excluded by installed incorporation pkg://solaris/consolidation/osnet/[email protected],5.11-0.175.0.4.0.5.1:20120206T225911Z
-bash-4.1$ sudo pkg install pkg:/system/header
Creating Plan /
pkg install: No matching version of system/header can be installed:
Reject: pkg://solaris/system/[email protected],5.11-0.175.0.0.0.2.1:20111019T073158Z
Reason: This version is excluded by installed incorporation pkg://solaris/consolidation/osnet/[email protected],5.11-0.175.0.4.0.5.1:20120206T225911Z -
Problem with software compilation with Solaris 10 x86
Hi!
I installed Solaris 10 (entire distribution) and realized that my gcc compiler can't compile even a very simple application.
#include<stdio.h>
int main()
printf("abc");
return 0;
}This is output from terminal screen:
# gcc test.cpp
Undefined first referenced
symbol in file
__gxx_personality_v0 /var/tmp//ccYJ4DSu.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Please help!
Thank you.GCC does different things depending on how the file is named. cpp should refer to a file that needs to go through the c preprocessor, not C code.
Try renaming test.cpp to test.c.
bash-3.00# gcc foo.cpp
Undefined first referenced
symbol in file
__gxx_personality_v0 /var/tmp//ccvnZHGr.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
bash-3.00# mv foo.cpp foo.c
bash-3.00# gcc foo.c
bash-3.00# ./a.out
abcbash-3.00#
Darren -
PCC-S-02014 error while compiling with in Sun Solaris
We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
ireclen=255 oreclen=255
define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
sqlcheck=limited ltype=NONE
release_cursor=no hold_cursor=no
Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
lgorithm
# include STLPNATIVE_HEADER(algorithm)
.............................1
PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
: [ ] + / . .. an identifier, a numeric constant, newline,
define, elif, else, endif, error, if, ifdef, ifndef, include,
line, pragma, undef, exec, sql, begin, end, var, type,
oracle, an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,
Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Any idea what is missing in the compiler option.
regards
VinuHi Vinu,
I'm not sure if this is still an issue for you. When I have encountered issues like this with Pro*C I have ended up specifying parse=none to the proc command and then putting all declarations between "EXEC SQL BEGIN DECLARE SECTION" and "EXEC SQL END DECLARE SECTION" markers. I have also moved any "special" declarations into a specific header file and then placed the "#include <special header file>" inside the declare section as well.
Perhaps that will help a bit,
Regards,
Mark -
Help!Apache compiling with gcc in Solaris 10
Greetings
I am having problems with Apache 1.3.
When I am running the script ./src/Configure my output is:
#./Configure
Using config file: Configuration
Creating Makefile
+ configured for Solaris 2100 platform
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
./helpers/TestCompile: make: not found
+ using builtin Expat
./Configure: make: not found
+ checking sizeof various data types
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
./helpers/TestCompile: make: not found
+ doing sanity check on compiler and options
./helpers/TestCompile: make: not found
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
./helpers/TestCompile: make: not found
============= End of Error Report =============
Aborting!
I am root, my PATH is
/usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
Thanks,Thanks,
It was only that.!!!
But now I have the following problem, I can't create executables when I type make. The output is:
when I am in the src/folder
#make
===> regex
<=== regex
===> os/unix
gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
In file included from /usr/include/sys/wait.h:24,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1096,
from os.c:21:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `os.o'
Current working directory /web-download/apache_1.3.33/src/os/unix
*** Error code 1
The following command caused the error:
for i in regex os/unix ap main lib modules; do \
echo "===> $i"; \
case ".Solaris 2100" in \
.OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
*) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
esac; \
echo "<=== $i"; \
done
make: Fatal error: Command failed for target `subdirs'
but when I am typing one step up is.
===> src
===> src/regex
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
In file included from /usr/include/sys/wait.h:24,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1096,
from os.c:21:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `os.o'
Current working directory /web-download/apache_1.3.33/src/os/unix
*** Error code 1
The following command caused the error:
for i in regex os/unix ap main lib modules; do \
echo "===> src/$i"; \
case ".Solaris 2100" in \
.OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
*) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
esac; \
echo "<=== src/$i"; \
done
make: Fatal error: Command failed for target `subdirs'
Current working directory /web-download/apache_1.3.33/src
*** Error code 1
The following command caused the error:
case "xi86pc-sun-solaris2.2100" in \
x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
esac; \
cd ./src; make SDP=src/ all
make: Fatal error: Command failed for target `build-std'
Current working directory /web-download/apache_1.3.33
*** Error code 1
The following command caused the error:
make -f ./Makefile root= build-std
make: Fatal error: Command failed for target `build'
I am newbie with Solaris and gcc so I have no so much idea what is missing there.
Thanks,
Juan -
Using GDB to debug a code compiled with Sun cc
When using gdb to debug C code compiled with Sun's cc, the step-into doesn't work, i can only "step into" a function if i put a breakpoint on it. Also, sometimes if i set a breakpoint on a function name, like "break foo", gdb indeed breaks when foo is reached, but without showing the source code (this i could not reproduce with a small demo program).
I am using Sun Studio 12 on a SunOS 5.10 sun4u sparc machine.
My demo program is:
#include <stdio.h>
#include <strings.h>
void func1(str)
char str;
printf("This is the first line\n");
printf("STR: %s\n",str);
int main()
char str[10];
strcpy(str,"lalalal");
printf("Calling func1\n");
func1(str);
printf("Returned from func1\n");
The compilation command i run is:
cc -c -g step_into.c -o step_into.o
cc -g -o step_into step_into.o
When running the program with gdb, the "step" command does not step into func1, but runs it like "next".
I know there's the dbx debugger, but if there's a way to fix this with gdb - it is much preferable for us. Switching to dbx is not really feasible for us.
Regards,
YaelHello Yael,
I tried your example on my laptop (OpenSolaris x86/x64) with Sun Studio 12 update 1
and GDB 6.3.50 - it works properly:
$ gdb dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
GNU gdb 6.3.50_2004-11-23-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.11"...
(gdb) break main
Breakpoint 1 at 0x8050a87: file src/args.c, line 15.
(gdb) run
Starting program: /export/home/nikm/SunStudioProjects/Forum_C_20091230/dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
Breakpoint 1, main () at src/args.c:15
15 printf("Calling func1\n");
Current language: auto; currently minimal
(gdb) next
Calling func1
16 func1(str);
(gdb) step
This is the first line
func1 (str=0x80477ba "lalalal") at src/args.c:7
7 printf("STR: %s\n",str);
(gdb) Could you please download and try Sun Studio 12 update 1?
It is available for free. Here is the web page:
http://developers.sun.com/sunstudio/
BTW, which GDB version do you use?
I'll try it on a sparc system and let you know.
Thanks.
Nik
P.S.: there is a typo in the source code:
void func1(str)
*char *str;I think it should be:
void func1(char *str)Probably a copy-paste problem.
Please use "CODE" mode when you copy-paste source lines (selected text, press 'CODE' button). -
Assertion problem while using C++ 5.0 compiler on Solaris 2.6
Hi,
we are using C++ compiler 5.0 on sparc solaris 2.6 machine.
when we tried to build the debug version of a particular exe with -g
option , we are getting the following error message
Assertion : ( ../links/dgb_cstabs.cc line 1516)
while compiling a .cc file.
Compiler options we used is
/opt/SUNWspro/bin/CC -c -compat=4 -g -KPIC -w -features=namespace,no%except,bool,mutable -verbose=template -DOS_USE_SHORT_NAMES -DINCLUDEALL +d -DRWSTD_MULTI_THREAD -D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -DOS_NEW_CHECK -DOS_STL_ASSERT -DOS_NO_WSTRING -DOS_ALTERNATIVE_STL_NAMES -DRWSTD_NO_CONST_INST -DNO_ALLOCATOR_STL -DOS_OMIT_BOOL -DEXE_HANDLING -DNO_CPLM -DALO_ON -DSUBPROC_ON -DCANCEL_ON -D__EXTENSIONS__ -DEXPLICIT_OPERATOR_INVOKE -DSTL_SUPPORT_OPERATOR -DSUNSOLARIS -DWHAT_TIME_DATE="\"Build Date Time Not Set\"" -I/opt/orbplus/include -I/opt/orbplus/include/naming -I/opt/SUNWspro/SC5.0/include/CC4 -I/opt/SUNWspro/SC5.0/include/CC -I/usr/include/reentrant -I../.. -I../../include -I../inc -I. -I/opt/odbc/include -I/oracle/home/oracle/include -I/oracle/home/oracle/rdbms/demo pdl.tab.c -o ../../bin/hpux/obj/pdl.tab.o
without the -g option ,the file compiles successfully.
so please throw some light on this problem and help us to getout of
this problem.
regards
tungaAssertion problem while using C++ 5.0 compiler on solaris 2.6
-
How to use schemas in MDS with the JDeveloper JAXB compiler ?
Hello,
I would like to use the JAXB2 compiler to generate a content model from an XSD in MDS. I don't find any way to do it because in order to select the source schema I only can browse my project and application directory but not the MDS. I configured JDeveloper such that to connect to MDS and I'm able to browse the MDS, to open artifacts. But I cannot extract/export/download them from MDS to the JDeveloper project such that to use the JAXB compiler against it. I tried the Add to project function once that the artifact is opned but nothing seems to happen. How could I do that ?
Many thanks in advance,
Nicolashi Henrique Pinto!
but you'll need to import all the wsdl's,,,
this mean that i will have to request another wsdl which is general wsdl contained object and operation and soap action?
or i can use only this wsdl and then need to do something in external definition with this wsdl?
thanks & regards
dennis
Message was edited by:
ogawa Dennis -
Is it possible to use CC 5.7 to compile for Solaris 6/7 platforms?
Hello,
we are currently upgrading to the new CC 5.7 from CC5.2 (Forte Update 1). One advantage we notice is the new, simplified licensing scheme, and hence the possibility to get rid of the license server installations. However, we still have to support our product on Solaris 7 (and possibly, though unlikely, Solaris 6).
Because CC 5.7 only installs on Solaris 8, the question is whether it would be possible to cross-compile for those older platforms (e.g. via -xarch). (And use our Solaris 7 installations only for testing, not compile-purposes anymore.)
Your help is greatly appreciated!
Many thanks,
AndreasPrograms built on Solaris 8 usually will not run on Solaris 2.6 or 7, no matter what compiler you use. Sun Studio 9 (C++ 5.7) supports only Solaris 8, 9, and 10.
You need to build your applications on the lowest version of Solaris that they are intended to be run on. Maybe you could build on Solaris 7 using FD6u1, and again on Solaris 8 using Studio 10 for customers using Solaris 8 and later. -
Using ABS to compile OpenOffice with KDE3 support?
Hallo,
So I'm trying to use ABS to compile OpenOffice with KDE3 support so I can use the KDE file picker (the KDE4 support is really, really broken and too new to be used right now). I pulled Openoffice-base out of my ABS tree and modified the PKBUILD so that kde was enabled and I made kdelibs3 part of the dependencies.
However, it always says "checking whether KDE is between 3.2 and 3.6... configure: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" before failing to compile. I know it's because I'm using KDE4. Is there a way I can trick it into thinking I'm using KDE3?
It says the path to kdelibs is /usr/lib, perhaps if I changed it to the path to kdelibs3? Where would I do that in the PKBUILD?
Thanks a lot!bstaletic wrote:The weird part, at least to me, is that I saw a lot more then 19 modules during compilation. Is this expected for some reason or have I messed something up?
Your build method seems ok to me. Can't really say anything about the .config, but kernel modules can have dependencies too. For example, if you choose to build ext4 as a module, it selects at least jdb2 and crc16 modules to be built as well. -
Question for using ORACLE with SOLARIS
Hi Experts,
I have worked Oracle with Linux in one of my projects 2yrs back and i was just a developer, used to write SQL Query, Creating Table and Objects.
Now i got a question from TL which is
Tell me about consequences for using Oracle with Solaris?
I am not worked ORACLE with SOLARIS, Can some one give me the answer for this question with
1. Difference between ORACLE with LINUX and ORACLE with SOLARIS.
2. Advantages and Disadvantages Between ORACLE with LINUX and ORACLE with SOLARIS.
Thanks,
MuraliDharan VHi MuraliDharan V,
It would had been better if you had searched first;
Here is one
Advantage for Linux64-bit Versus Solaris-x86_64 OS in RAC
And beside that your question is incomplete:
-What Oracle? Database, etc
-Which Version? 9i, 10g, etc
Aside from that a simple search on google might have answered your question as well.
But I think there is some new trend of dumping questions here before searching.
Ex Senior DBA -
Can not use SVM disc mirror on Sun X2200 M2 with solaris u7
Last year,I tried to build cluster with solaris u6, but I got this error "Insufficient metadevice database replicas located" after SVM set up.
I tried lastest solaris 10 u7(09/05) with Sun x2200 M2 server again, but I got the same error.
I think it maybe driver's problem,so I tested solaris 10 u7 again with one old x86 machines and this machines has pure scsi card and scsi disc.
Also I tried it with ide drive, and everything is fine without any error message.
I checked that solaris 10 u5 will consider sata disc on x2200 m2 as ide disc, so SVM works fine.
But after I upgrade to solaris 10 u7,system will consider sata disc as scsi drive, and SVM will not work.
So I can see this is a bug of solaris 10 u7?
Edited by: cheung79 on 2009/7/3 ?? 11:04-bash-3.00# metadb -i
flags first blk block count
a m p lu 16 8192 /dev/dsk/c0t0d0s7
a p l 8208 8192 /dev/dsk/c0t0d0s7
a p l 16400 8192 /dev/dsk/c0t0d0s7
M u 16 unknown /dev/dsk/c0t1d0s7
M u 8208 unknown /dev/dsk/c0t1d0s7
M u 16400 unknown /dev/dsk/c0t1d0s7
r - replica does not have device relocation information
o - replica active prior to last mddb configuration change
u - replica is up to date
l - locator for this replica was read successfully
c - replica's location was in /etc/lvm/mddb.cf
p - replica's location was patched in kernel
m - replica is master, this is replica selected as input
W - replica has device write errors
a - replica is active, commits are occurring to this replica
M - replica had problem with master blocks
D - replica had problem with data blocks
F - replica had format problems
S - replica is too small to hold current data base
R - replica had device read errors
I don't have "set md:mirrored_root_flag=1" line in /etc/system.
Do you mean boot device is scsi hdd? but it is sata hdd.
-bash-3.00# ls -l /dev/rdsk/c0t0d0s0
lrwxrwxrwx 1 root root 51 Jul 7 17:55 /dev/rdsk/c0t0d0s0 -> ../../devices/pci@0,0/pci108e,534b@5/disk@0,0:a,raw -
SUNWspro iostream error while compiling with SunStudio 10
We are getting the following error when we try to compile the C++ code using SunStudio 10 on Sun Solaris Sparc server.
We made couple of changes in the source code 1) whereever we have stream.h we replaced it with iostream.h and 2) include fstream.h whereever required.
Can anyone tell us where did it go wrong.
+ /opt/SUNWspro/bin/CC -g -O -DHAWK -mt -lclntsh -lsocket -lnsl -I/export/home/StandardComponents/SC/include -I../../mylib -I../../include -I/opt/SUNWspro/prod/include/CC/Cstd -I. -I- -D_TRACE_ -c collectDborMtoInfo.c
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: A declaration was expected instead of "'\n'".
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: A declaration was expected instead of "'\n'".
4 Error(s) detected.Remove the -I directive that points into the compiler installation. You should not have have -I or -L options that point into the compiler installation area, into /usr/include, or into /usr/lib. The CC compiler driver knows where to find system headers and libraries, and in what order to search the directories. If you force a different search order, you can break something.
If removing -I/opt/SUNWspro/prod/include/CC/Cstd does not fix the problem, compiling with -P or -E will show you the preprocessor output, and looking at the lines with the errors will usually show the source of the problem quickly.
BTW, you should be aware that the ".h" form of the C++ headers, like <iostream.h> and <fstream.h>, is not standard. Using them is not portable, because not all C++ implementations provide them, and those that do often have different content. -
License for cross-compilation for solaris 10 sparc on Linux x86
I'd like to do cross-compilation for solaris 10 sparc on Linux x86 using gcc (for linux). To do that, I have to copy libraries (/lib/64) and includes (/usr/include) from a sparc machine to my linux machine.
The compilation will be run on about (up to) 50 Linux machines (by various developers). We also have 3 solaris-10-SPARC machines.
I wonder if Solaris license allows me to copy the includes and libs to perform compilation elsewhere.
I also checked "OTN License Agreement for Oracle Solaris", but it looks like Oracle allows for installing "the programs" on up to 3 machines, but I need it on 50.
Thanks for any suggestions or redirections to a proper place where I can get an answer.
MarekWhen installing Solaris 10 01/06 on a Dell 1850 I receive an error message during the install saying "no disk found". I assume that the drive/controller is not recognized. The Dell 1850 is listed under the HCL for Solaris 10 10/06. I don't believe I can use the Solaris(TM) Device Driver for the LSI MegaRAID Adapter floppy with 1/06. I don�t have any other Solaris boxes up so I can�t build a jump start server. Any suggestions?
Maybe you are looking for
-
How can I use a Value at several different places without using a long wire?
too much wire alway make program into mess.So can I use the Value in labview like using it in C. I have try the "Local Value",but it don't work well as a Cluster. For example, I can't connect it with "Unbundle By Name" and other Cluster Tools.
-
I need help I need to get a replacement stylus for my galaxy note 4 where can i buy it and how much do they cost?
-
Bookmarks do not appear in left panel or organize, but do appear under menu
I like the left side panel of bookmark folders, but its not showing up.
-
IBook G4 screen goes black, suddenly doesn't recognize input
Last night I was using my ibook in the usual manner, in the middle of sending a file to a friend, when my screen went black as if it were going into a screen saver, but wouldn't respond. The backlight was still on, but it seemed to be frozen. I force
-
Wireless setup between 2 buildings
I need to connect 2 buildings wirelessly to share internet connection. Both buildings are about 100m apart and are visible from one another. A few trees are in between, not really big nor dense ones. Connection speed needed: No more than 1MBPs as I j