02-02-2017
I'm not convinced -fPIC makes sense for static code.
Make sure you're using the right object. A .a file is usually used with an .so file.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error:
It looks like it... (1 Reply)
Discussion started by: iandunn
1 Replies
2. Solaris
Hello, I am trying to install glib on my development box - with little/no luck. Below are some details of the box:
SunOS 5.8 Generic_117350-38 sun4u sparc SUNW,Ultra-Enterprise
gcc version 2.95.2 19991024 (release)
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Glib version:... (2 Replies)
Discussion started by: tetley
2 Replies
3. Programming
I wrote a function which for uncompressing data for gzip or deflate format using zlib,see followed code;
source param is pointed to the compressed data,len param is the size of compressed data,
dest param is for returning the address which pointed to the uncompressed data;the last gzip param tell... (0 Replies)
Discussion started by: iwishfine
0 Replies
4. HP-UX
Hi
When im trying to do make --version and make --help in HP-UX
it throws error
Make: Unknown flag argument -. Stop.
a soft link is present in this directory /usr/bin/make
and hard link is in /usr/ccs/bin/make
what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies
5. Programming
Hi,
I have a following problem in C.
I have a function A in which I used to call another function (function B) and pass an array of values through array variable by using below:-
foo=functionB(array);
In functionB, i used to just return some "values" (e.g return num;) in order to pass... (1 Reply)
Discussion started by: ahjiefreak
1 Replies
6. IP Networking
hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first.
... (0 Replies)
Discussion started by: dlwoaud
0 Replies
7. Programming
Hi guys.
I want to compile three files:
gcc -static main.c fib.c fib.h
it is pure C i mean i use standard C library.
but it gives me this error:
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
what should i do? (4 Replies)
Discussion started by: majid.merkava
4 Replies
8. Debian
I need to compile a program which uses glib-2.0. I installed the package libglib2.0-0 but the configure script can't find it because the libglib package doesn't provide a .pc file which pkg-config looks for. How can I resolve this?
Debian 6.0 (SPARC) (3 Replies)
Discussion started by: snorkack59
3 Replies
9. Programming
Hi,
Can anyone explain this please..... This is on AIX with GDB (tried a few versions). It only happens when program compiled in 64 bit and only with static variables....
A simple test program...
### snip
#include <stdio.h>
main() {
static int n;
n = 6;
printf("hello %d\n", n);... (0 Replies)
Discussion started by: bagpussnz
0 Replies
10. Solaris
I have installed Solaris 11.2 in VMware Player, networked in bridged mode. When Solaris uses DHCP everything is OK, I can reach internet, as well as other systems on my LAN. When I switch to static, I have connections to my LAN, but can not get to internet, the DNS resolution is somehow not... (2 Replies)
Discussion started by: migurus
2 Replies
LEARN ABOUT OPENSOLARIS
scsi_validate_sense
scsi_validate_sense(9F) Kernel Functions for Drivers scsi_validate_sense(9F)
NAME
scsi_validate_sense - find descriptor in SCSI sense data
SYNOPSIS
#include <sys/scsi/scsi.h>
int scsi_validate_sense(uint8_t *sense_buffer, int sense_buf_len,
int *flags);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
sense_buffer Pointer to a buffer containing SCSI sense data. The sense data is expected in wire format starting at the response code.
sense_buf_len Length of sense buffer in bytes.
flags Returns additional properties of the sense data.
DESCRIPTION
The scsi_validate_sense() function returns the format of the sense data contained in the provided sense buffer. If the response code field
in the sense data is not recognized or if there is not enough sense data to include sense key, asc, and ascq then scsi_validate_sense()
returns SENSE_UNUSABLE. If the buffer contains usable sense data in fixed format, the function returns SENSE_FIXED_FORMAT. If the buffer
contains usable sense data in descriptor format, the function returns SENSE_DESCR_FORMAT.
The following flags may be set as appropriate depending on the sense data:
SNS_BUF_OVERFLOW The sense data buffer provided for the request is too small to hold all the sense data.
SNS_BUF_DEFERRED The sense data contained in the buffer relates to an error that has occurred during the processing of a successfully
completed command, such as a cached write that could not be commited to the media.
RETURN VALUES
SENSE_UNUSABLE The response code from the sense data is unrecognized or not enough sense data present to provide the sense key, asc,
and ascq.
SENSE_FIXED_FORMAT The sense data in the buffer is in "fixed format".
SENSE_DESCR_FORMAT The sense data in the buffer is in "descriptor format".
CONTEXT
The scsi_validate_sense() function can be called from user or interrupt context.
SEE ALSO
scsi_ext_sense_fields(9F), scsi_find_sense_descr(9F), scsi_sense_asc(9F), scsi_sense_ascq(9F), scsi_sense_cmdspecific_uint64(9F),
scsi_sense_info_uint64(9F), scsi_sense_key(9F)
SunOS 5.11 29 Jun 2006 scsi_validate_sense(9F)