Use of strstr() in solaris 8?
Hi,
I can't use the strstr() when writing kernel modules in solaris 8. I compile using Forte C compiler but when I load my module, my system will crash. Is there any other function that can replace the strstr() or where can I get compatable strstr.o ?
Hi There,
All components for Solaris 8 were built using the WS 5.0 compiler and compiling a driver with a different compiler is not supported and not good software practice...
A Common Build Environment document which spells
out what compiler is used to build each component of the Solaris release. This is to make sure that the Release Team can, at any time, reproduce the exact
code for the entire release...
You are using Forte 6 compiler to biuld the kernel module.
I suggest you refer to the Solaris 8 Developer Collection and refer Writing Device Driver's
Compiling, Loading, Packaging, and Testing Drivers Module.
.....jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support
Similar Messages
-
Use of strstr() in solaris 2.8
Hi,
I have tried to use the strstr() when developing driver driver in solaris 8 environment and compile using Forte C compiler but it can't work. My system will crash whenever I run my program. Anybody have any idea how to solve this problem.
Thanks.Hi There,
All components for Solaris 8 were built using the WS 5.0 compiler and compiling a driver with a different compiler is not supported and not good software practice...
A Common Build Environment document which spells
out what compiler is used to build each component of the Solaris release. This is to make sure that the Release Team can, at any time, reproduce the exact
code for the entire release...
You are using Forte 6 compiler to biuld the kernel module.
I suggest you refer to the Solaris 8 Developer Collection and refer Writing Device Driver's
Compiling, Loading, Packaging, and Testing Drivers Module.
.....jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support -
How do can I use Jumpstart to boot Solaris from Slave Drive
Hi all,
I have XP on Master Drive and I used Jumpstart to install Solaris on Slave Drive.
This is the profile:
install_type initial_install
system_type standalone
usedisk c0d1
boot_device c0d1 update
root_device c0d1s0
fdisk c0d1 solaris all
partitioning explicit
filesys c0d1s0 10000 /
filesys c0d1s1 1111 swap
filesys c0d1s7 free /export/home
cluster SUNWCreq
Now, I specified that the boot_device is c0d1 but after the installation the boot device is c0d0 which is my Master Drive...
...when I use Windows Boot Manager to boot Solaris... it cannot find the boot files on the master drive so it runs the DCA...
... so under the DCA I have to tell Solaris that the boot files are in my Slave Drive then I save it.
...I don't want to make this change everytime
any ideas that would make this install hands free?...don't know the answer to that but here is an alternative:
... use this as your finish script
... it changes the bootpath in bootenv.rc to point to the slave drive
#!/usr/bin/perl
open(INFILE,"/a/boot/solaris/bootenv.rc");
open(OUTFILE,">/a/boot/solaris/bootenv.rc_out");
while(<INFILE>) {
chomp;
#--cmdk@0,0 is the master drive
#--cmdk@1,0 is the slave drive
s/cmdk\@0\,0/cmdk\@1\,0/g;
print OUTFILE "$_\n";
#...replace bootenv.rc_out with bootenv.rc
...happy programming -
Can I use LINUX Drivers in Solaris 10...
As a beginner, I have installed Solaris 10 version 08/07 onto my system. The motherboard is ASUS M2A-VM, with integrated graphics, network interface, audio, etc...
My audio and network interface are not working... The motherboard came with a cd which has windows drivers and additional software.
It also has linux drivers for:
Audio:
Core5
Core6
Linux
RHEL4
SUSE10
Other
realtek-linux-audiopack-4.05f
LAN
FreeBSD
Linux
SCO_OpenServer6
Unixware7.x
Chipset, and RAID!
Has anyone used any of these ASUS Linux drivers with Solaris...
If so what steps do I need to take to get them to work on my system! (I hate to ask, I know you all have better things to do) Maybe you can point me to a good book that explains how to go step by step...
My question is how do I get my NIC to work (What steps do I need to follow? the sound is not an issue, as, I can do with out that. Will any of the drivers mentioned above work?) thank you in advance for your answers...Drivers are the "connective tissue" between the Operating System and the hardware. The connections from the drivers to the OS are not compatible between different operating systems, so no, you cannot use Linux drivers in Solaris.
If the OS is similar enough you can sometimes get away with it -- example, using Solaris 9 drivers in Solaris 10. But between completely different OSes? Won't work. -
Problem in Getting host name by using request.getHostName() on solaris 9
Hi there,
I'm trying to get the machine name of the system from which the request was initiated by using request.getHostName() on Solaris 9 but it is giving me the IP Address of the machine which har sent the request to the server and the same thing is running on Windows and AIX platform. Can anyone tell me any solution to this problem.
Thanks in advance.
Nitin JainHi Nitin,
Following is the specification for getRemoteHost()
"Returns the fully qualified name of the client that sent the request, or the IP address of the client if the name cannot be determined. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST." I think the same would be true for getHostName().....
So, this can be one possiblity why ur given IP. -
Is there any known issue about mutex lock used in JNI on Solaris 10?
Dear Oracle,
I'm facing a strange behavior when running a JNI application that use the mutex lock. The application hanged after running for a while on one of our Solaris 10 machines. After investigating the stack trace of the application, it shows that one of all the application's threads that access the JNI hold the mutex lock forever, and that cause the other threads cannot access the JNI. The same application works fine on other Solaris 10 machines.
The mutex function I used as show below:
mutex_lock(&mutex)
The application hanged at this line:
0xff2cc940 ___lwp_mutex_timedlock + 0x8
The Kernel version is SunOS 5.10 Generic_142900-14
Since this issue occurrs on only one Solaris 10 machine in our environment, we are wondering if there is any known issue regarding the mutex lock used in JNI on Solaris 10. We tried to search the Internet and the Java Bug database but found nothing related to this issue.
Best regards,
Krit K.876587 wrote:
... and that cause the other threads cannot access the JNI. The same application works fine on other Solaris 10 machines.
Different environments mean just that. So something could be causing it outside java.
Additionally if anything at all is different in the execution data, such as even a name having a different size, then it would change the execution path.
Which would cause a problem in the JNI code to manifest itself on only one box. Probably isn't a pointer bug but all sorts of odd behavior can result from that. -
How to generate localized chars using code point in Solaris 10?
Hi All,
Do enybody know how to generate localized chars (for example Japanese) using code points in Solaris 10?
Like in the following web page:
http://www.isthisthingon.org/unicode/index.phtml
Unicode, shift-jis
U+4e2f 87a3 �N
U+4e3b 8ee5 ��
U+4e3c 98a5 �S
U+4f5c 8dec ��
Thanks,
DanielI have found a "Code Point Input Method" tool in the following page:
http://java.sun.com/products/jfc/tsc/articles/InputMethod/inputmethod.html
Using this tool user can enter hexadecimal code point and the output is some char.
But this tool doesn't work. I run this in the follwoing way:
# java -jar CodePointIM.jar
After this error message appers:
Failed to load Main-Class manifest attribute from
codepointim.jar
If anybody could help I will be appreciate.
Regards,
Daniel -
Logical error in creating tables using db link in solaris
Hi,
While creating table using the syntax create table newtab...as select * from tab@dblink .. I am facing a problem. The newtab table created is having a structure different (from datalength point of view of varchar2 and char datatypes) from the source. The data length is getting tripled i.e. if a column a is varchar2(20) in tab then it is becoming --- a varchar2(60) in newtab. This is happening in solaris environment when the two databases are in 2 different servers. Please let me know if there are any patches to resolve the problem.
Thanks
ArnabORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
Accessing External Url using Http Utility | Error when using from Weblogic on Solaris
We are using Http Utility (http://jakarta.apache.org/commons/httpclient/) from
Apache for accessing external URL. A XML string is sent as POST parameter to the
URL and the response is also an XML string. The URL is accessed over HTTPS protocol.
I am setting the following parameters in the java class:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
// set the property
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
The java class written to access the external URL using Http Utility works perfectly
fine when it is run from either the command line (of Windows or Solaris using
main() ) or from weblogic on windows. The same java class throws an exception
when run from Solaris instance of Weblogic
2003-09-30 11:02:12,411 FATAL [com.bp.beyondbp.presentation.userregistration.action.LloydsValidator]
EXCEPTION: com.bp.beyondbp.presentation.userregistration.exception.LlyodsValidationFailedException,
MESSAGE: Write Channel Closed, possible SSL handshaking or trust failure;
CAUSE: (java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.postXMLtoLloyd(LloydsValidator.java:243)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.validateLlyodsForNewUser(LloydsValidator.java:95)
at com.bp.beyondbp.presentation.userregistration.action.PreferencesActionForm.validate(PreferencesActionForm.java:326)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
java.io.IOException: Write Channel Closed, possible SSL handshaking or trust failure
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown
Source)
at com.certicom.tls.record.ReadHandler.interpretContent(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown
Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown
Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1344)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:125)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:779)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2179)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2534)
I tried to debug the problem by looking at system properties on windows and solaris,
the difference that I found was
On Windows
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol
On Solaris
[exec] tModelInstanceInfo_description : weblogic.utils|weblogic.tils|weblogic.net|weblogic.management
After this I changed the startWLS.sh on Solaris and set
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol in java options.
On looking the system properties again, the output was
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol|weblogic.utils|weblogic.utils|weblogic.net|weblogic.management
But still the error is same. Can somebody help me out here as to what is going
wrong? Please find the java class attached for reference, please have a look at
postXMLtoLloyd() method in the class file..
[LloydsValidator.java]We are using Http Utility (http://jakarta.apache.org/commons/httpclient/) from
Apache for accessing external URL. A XML string is sent as POST parameter to the
URL and the response is also an XML string. The URL is accessed over HTTPS protocol.
I am setting the following parameters in the java class:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
// set the property
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
The java class written to access the external URL using Http Utility works perfectly
fine when it is run from either the command line (of Windows or Solaris using
main() ) or from weblogic on windows. The same java class throws an exception
when run from Solaris instance of Weblogic
2003-09-30 11:02:12,411 FATAL [com.bp.beyondbp.presentation.userregistration.action.LloydsValidator]
EXCEPTION: com.bp.beyondbp.presentation.userregistration.exception.LlyodsValidationFailedException,
MESSAGE: Write Channel Closed, possible SSL handshaking or trust failure;
CAUSE: (java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.postXMLtoLloyd(LloydsValidator.java:243)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.validateLlyodsForNewUser(LloydsValidator.java:95)
at com.bp.beyondbp.presentation.userregistration.action.PreferencesActionForm.validate(PreferencesActionForm.java:326)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
java.io.IOException: Write Channel Closed, possible SSL handshaking or trust failure
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown
Source)
at com.certicom.tls.record.ReadHandler.interpretContent(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown
Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown
Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1344)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:125)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:779)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2179)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2534)
I tried to debug the problem by looking at system properties on windows and solaris,
the difference that I found was
On Windows
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol
On Solaris
[exec] tModelInstanceInfo_description : weblogic.utils|weblogic.tils|weblogic.net|weblogic.management
After this I changed the startWLS.sh on Solaris and set
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol in java options.
On looking the system properties again, the output was
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol|weblogic.utils|weblogic.utils|weblogic.net|weblogic.management
But still the error is same. Can somebody help me out here as to what is going
wrong? Please find the java class attached for reference, please have a look at
postXMLtoLloyd() method in the class file..
[LloydsValidator.java] -
Use of MPSS on Solaris 9 and Java 141_03 - not getting 4M pagesizes
Hi all,
Anyone know how to get MPSS actually using large page sizes in 1.4 / SunOS 5.9 ??
I have a 1.4.1_03-b02 JVM that is using the -XX:+UseMPSS option and using the LD_PRELOAD=/usr/lib/mpss.so.1 and MPSSHEAP=4M but when I use pmap -Fxs <PID> I always see 8k pages. My system is 5.9 Generic_122300-03 sun4u sparc SUNW,Sun-Fire-480R and pagesize -a give me:
8192
65536
524288
4194304
so 4M should be OK to use...
The full JVM options are:
-XX:+TraceClassUnloading -XX:+UseParallelGC -XX:+UseMPSS -XX:-UseAdaptiveSizePolicy -XX:SurvivorRatio=2 -XX:MaxTenuringThreshold=3 -XX:+DisableExplicitGC -Dsun.rmi.server.exceptionTrace=true -Xloggc:gc.log -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -server -ms2560m -mx2560m -Xmn1024m -Dsun.rmi.dgc.client.gcInterval=14400000 -Dsun.rmi.dgc.server.gcInterval=14400000
I have also tried using LD_PRELOAD_32 and LD_PRELOAD_64 but still only see 8k pages in pmap for the heap...
Thanks for any ideas, if I read the doc I should not need to do anything to use the MPSS option on SunOS 5.9...so maybe one of my other JVM options is preventing MPSS from being used?OK, bug 4845026 is giving me a clue:
Bug ID: 4845026
Votes 1
Synopsis MPSS broken on JDK 1.4.1_02
Category hotspot:jvm_interface
Reported Against 1.4.1_02
Release Fixed
State Closed, will not be fixed
Related Bugs
Submit Date 08-APR-2003
Description
I am running SPECjAppServer2002 with WebLogic Server 8.1 and JDK 1.4.1_02.
Here is the version of JDK 1.4.1_02 that I am using:
<gar07.4> /export/VMs/j2sdk1.4.1_02/bin/java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
The system is a V240 with solaris S9U3:
<gar07.5> more /etc/release
Solaris 9 4/03 s9s_u3wos_04 SPARC
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 December 2002
After rebooting the system I use the following command line to start the appserver:
+ /export/VMs/j2sdk1.4.1_02/bin/java -server -verbose:gc -XX:+PrintGCTimeStamps
-XX:+UseMPSS -XX:+AggressiveHeap -Xms3500m -Xmx3500m -Xmn600m -Dweblogic.oci.sel
ectBlobChunkSize=1600 -classpath ...
The process should have some annon segments mapped to 4M, but it doesn't:
<gar07.7> ps -ef | grep java
ecuser 541 533 12 10:30:33 ? 0:50 /export/VMs/j2sdk1.4.1_02/bin/java -server -verbose:gc -XX:+PrintGCTimeStamps -
ecuser 566 343 0 10:31:24 pts/1 0:00 grep java
<gar07.8> pmap -s 541 | grep 4M
<gar07.9>
If I do exactly the same using JDK 1.4.2 instead of JDK1.4.1_02 I am able to get
4M pages. Here is the command line for 1.4.2:
+ /export/VMs/j2sdk1.4.2/bin/java -server -verbose:gc -XX:+PrintGCTimeStamps -XX
:+PrintGCDetails -XX:+AggressiveHeap -Xms3500m -Xmx3500m -Dweblogic.oci.selectBl
obChunkSize=1600 -classpath ...
And here are my 4M pages:
<gar07.20> pmap -s `pgrep java` | grep 4M
1AC00000 282624K 4M rwx-- [ anon ]
F5800000 16384K 4M rwx-- [ anon ]
F6800000 4096K 4M rwx-- [ anon ]
F6C00000 4096K 4M rwx-- [ anon ]
F7000000 4096K 4M rwx-- [ anon ]
F9C00000 4096K 4M rwx-- [ anon ]
Without large pages the time spent in TLB misses for this benchmark is 25% (!)
Using 4M pages that time is reduce to 3%. WLS8.1 was certified with 1.4.1_02 so
we cannot use 1.4.2 for the benchmark.
thanks for your help,
Fernando Castano
Posted Date : 2006-04-27 23:04:32.0
Work Around
N/A
Evaluation
Mukesh,
Can you get someone to look into back porting this fix. Please see below
attachment for additional info. 4845026 : (P1/S1) New Hotbug Created
Is a new bug that only exists in JDk 1.4.1_x release. Its fixed in 1.4.2
release from code related to bug 4737603.
Thanks Jane & James for the heads up.
Thanks
Gary Collins
Gary,
I think the bug James referred to is
4737603 Using MPSS with Parallel Garbage Collection doesn't yield 4mb
pages
which was fixed in mantis (according to the bug report).
Looks like a simple fix to back-port.
Jane
xxxxx@xxxxx 2003-04-10
This problem is partially because of bug 4737603, mainly because there is code cache mapping to large page in 1.4.1(4772288: New MPSS in mantis). This part of code will be ported into 1.4.1 from mantis.
xxxxx@xxxxx 2003-04-18
There's 2 things. MPSS wasn't used in the parallel GC collector AND not
used for the code cache. Both need to be addressed.
xxxxx@xxxxx 2003-04-21 -
Using DVD drives in solaris 10
Hello members,
I am a beginner in the solaris. I can't connect my DVD drive with my Os that means i can use my DVD drives. So plz tell me how can i use my DVD? and tell me method of thisWell, once you feed the drive with a dvd, it shall appear under /cdrom.
Or at least that what happens with me.
Iam a beginner too. Hope that helped. -
Using Cisco ACS for Solaris login authentication
Hi all
I am planning to authenticate ssh logins to Solaris 8/9 systems using PAM and radius (while radius is considered the primary solution, tacacs+ could be used, too). The radius/tacacs+ server is provided by a Cisco ACS.
Can anybody out there confirm that the combination "Solaris & PAM & radius/tacacs+ & Cisco ACS" is correctly doing this authentication stuff? Is there anything to specially consider?
Thanks, DavidHard to comment with any certainty but provided the client implementation of RADIUS is sound AND the authentication protocol is one that ACS supports, eg PAP, CHAP, MSCHAP, LEAP, EAP (PEAP/FAST/TLS/GTC/MSCHAP) then should be fine.
-
Using perl DBI on Solaris 10 gives core dump
I am using perl 5.8.4 which comes along with Solaris 10.
I have installed DBI-1.58.
Even a test command is not working.
perl -MDBI -e 'print "$DBI::VERSION\n";'
Bus Error (core dumped)
truss perl -MDBI -e 'print "$DBI::VERSION\n";'
shows
stat("/usr/local/lib/libc.so.1", 0xFFBFE5D0) Err#2 ENOENT
mprotect(0xFEED0000, 104171, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0xFEED0000, 104171, PROT_READ|PROT_EXEC) = 0
munmap(0xFF370000, 8192) = 0
brk(0x000A2470) = 0
brk(0x000A4470) = 0
brk(0x000A4470) = 0
brk(0x000A6470) = 0
brk(0x000A6470) = 0
brk(0x000A8470) = 0
brk(0x000A8470) = 0
brk(0x000AA470) = 0
brk(0x000AA470) = 0
brk(0x000AC470) = 0
Incurred fault #5, FLTACCESS %pc = 0xFEED44CC
siginfo: SIGBUS BUS_ADRALN addr=0x00000001
Received signal #10, SIGBUS [default]
siginfo: SIGBUS BUS_ADRALN addr=0x00000001
$perl -v
command shows like its compiled with Intsize of 64 is this creating problem?
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the ops ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a PV ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned garbage
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on assign ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in perl_clone: ...
22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
22850 [PATCH] 'perl -v' fails if local_patches contains code snippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses of ...
23320 [perl #30066] Memory leak in nested shared data structures ...
23321 [perl #31459] Bug in read()
Built under solaris
Compiled at Jul 26 2005 05:26:55
@INC:
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
Other details:
file /usr/bin/perl
/usr/bin/perl: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
I tried installing DBI module using perlgcc also.
perlgcc Makefile.PL
make
make test
make install.
$uname -a
SunOS twirl 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-80
Please help me out.Try this guy's list, he maintain an archive of Solaris package.
http://www.ibiblio.org/pub/packages/solaris/sparc/html/creating.solaris.packages.html
Of course, if you can get directly from Sun will be better. -
Use of __typeof__ in Solaris Studio 12.4
Solaris Studio 12.3 had a __typeof__ operator similar to decltype in C++11. This is available in a portable wrapper using the Boost macro BOOST_TYPEOF_TPL. It looks like the Solaris Studio team contributed the modification to Boost which added this in ticket 5745.
Now Solaris Studio 12.4 has a C++11 mode which supports decltype. However, is __typeof__ still supposed to work in Solaris Studio 12.4's C++03 mode? It doesn't seem to work as well as it used to.
The following program deduces the return type of operator() using __typeof__:
#include <boost/typeof/typeof.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <iostream>
#include <typeinfo>
// Helper to deduce the result type from a member function pointer.
template<typename T>
struct member_function_result_type
template<typename T, typename R, typename A1>
struct member_function_result_type<R (T::*)(A1) const>
typedef typename boost::remove_reference<R>::type type;
template<typename T>
struct function_result_type
typedef BOOST_TYPEOF_TPL(&T::operator()) F;
typedef typename member_function_result_type<F>::type type;
template<typename R, typename A>
struct function_result_type<R (*)(A)>
typedef typename boost::remove_reference<R>::type type;
struct my_functor
float operator()(float numerator) const
return numerator / 2.0f;
int main(int, char **)
typedef typename function_result_type<my_functor>::type my_type;
my_functor f;
my_type ret = f(5.0f);
if (typeid(my_type) == typeid(float))
std::cout << "As expected " << ret << std::endl;
else
std::cout << "Oh dear " << ret << std::endl;
return 0;
If you build this with Solaris Studio 12.3 as follows:
CC -m64 -I/usr/local/include/boost-1_54 main.cc
then it compiles and running a.out shows the return type of float has been correctly deduced.
However, with Solaris Studio 12.4 the same command:
CC -m64 -I/usr/local/include/boost-1_54 main.cc
results in:
"main.cc", line 23: Error: Unexpected type name "F" encountered.
"main.cc", line 42: Warning: "typename" must be used within a template.
1 Error(s) and 1 Warning(s) detected.
Now, obviously Solaris Studio 12.4 has a C++11 mode and it is possible to get this program to work by changing BOOST_TYPEOF_TPL to decltype and building with:
CC -std=c++11 -m64 -I/usr/local/include/boost-1_54 main.cc
But Solaris Studio 12.4's C++11 mode has other problems, so is there any way to somehow get a working __typeof__ or equivalent in Solaris Studio 12.4's C++03 mode?
(In case it makes any difference this is on Solaris 10 x86.)I couldn't see that any of the items listed in the "Enforcement of C++ rules" section of the documentation would affect this program.
Here's a cut down version of the test program that doesn't use Boost:
#include <iostream>
#include <typeinfo>
// Helper to deduce the result type from a member function pointer.
template<typename T>
struct member_function_result_type
template<typename T, typename R, typename A1>
struct member_function_result_type<R (T::*)(A1) const>
typedef R type;
template<typename T>
struct function_result_type
typedef __typeof__(&T::operator()) F;
typedef typename member_function_result_type<F>::type type;
template<typename R, typename A>
struct function_result_type<R (*)(A)>
typedef R type;
struct my_functor
float operator()(float numerator) const
return numerator / 2.0f;
int main(int, char **)
typedef function_result_type<my_functor>::type my_type;
my_functor f;
my_type ret = f(5.0f);
if (typeid(my_type) == typeid(float))
std::cout << "As expected " << ret << std::endl;
return 0;
Interestingly this doesn't compile with either Solaris Studio 12.3 or Solaris Studio 12.4, but each gives different errors:
Solaris Studio 12.3:
CC -m64 main.cc
>> Assertion: unexpected type_builder::visit_unspec (../lnk/v2mangler.cc, line 1636)
while processing main.cc at line 39.
Solaris Studio 12.4:
CC -m64 main.cc
"main.cc", line 20: Error: Unexpected type name "F" encountered.
1 Error(s) detected.
So Solaris Studio 12.4 is basically failing in the same way as the original test program that used the Boost wrappers. Solaris Studio 12.3 is failing with an assertion error that doesn't occur when the Boost wrappers are used.
It turns out that __typeof__ was only used in one place in our codebase (wrapped by Boost), so I've just removed it and implemented that code in a different way. So this isn't blocking upgrade of Solaris Studio, and we don't even have __typeof__ in our codebase any more, but I just thought you might be interested to have this program as a test case for future development.
It works fine with clang++ in C++03 mode on Mac OS X so I doubt the problem is caused by the source code not conforming to standard:
clang++ main.cc
./a.out
As expected 2.5
This case may be particularly tricky for a compiler to handle due to __typeof__ being applied to a pointer to a const member function. -
Dial up Connection using External Modem in Solaris Intel Version
Hi
How to Install a modem in Solaris 7 Intel version and how to make a Dial Up Connection Using this external Modem.
Can any one Help me....
send your reply to [email protected]
Thanks in Advance ....
Vinod.hello
i'm fond that inside the folder /etc you have another one called /ppp and inside the folder /ppp you have some files that you have to edit in orther to configure your user name and password, but everything is explained on that files, and is bether that you reed then
then in the console you have to type pppd ttya (if your modem is conected to the Com1) call myisp
were myisp is one of the files that you have to configure, but how i'm told you everyting is splained on that files
If you dont have it please install the 2 Cd
the only thing that i'm can't configure was diseble the "wait for dial tone" and in order of that i'm not able to conect to the internet, if you now someting aoubt that please send a e-mail to [email protected]
tanks
Maybe you are looking for
-
When I try to create an iCloud calendar announcement / event on my PC thru Outlook, I get the message 'the set of folders could not be opened. The information store could not be opened'. I cannot set any calendar events for my shared calendar. Can
-
Paper sizes from one install to another
I have Acrobat pro 9 on one laptop. I just got a second laptop with Acrobat x. Acrobat x only has a handful of paper sizes. I'd like to have the same paper sizes from one install to another. Is there a file that can be copied over to have this inform
-
BB Curve - homescreen data/calendar view - nothing shows up!
Hello - I have the BB Curve. I have my front screen set so that I can see the calendar and my appointments. I have been putting my appointments in, but they are not showing on the front page! I know I Have multiple calendars because I have multipl
-
How to configure modem and connect internet and play mp3
Hello friends I am using sun solaris 8 intel edition . I am using windowsXP,RedHat Linux and Sun Solaris 8 Intel Editon. I am using Internet on windows and linux platform but i cannot find any device configure tool in solaris 8 , So Please tell me ho
-
BAPI/ FM for Order Confirmation Tcode IW41
Hi Experts , I want to do auto order confirmation using the Tcode iw41, is there any BAPI or Function module available to the order confirmation , Please suggest if any other way we can do Babumiya Mohammad