Sponsored Content
Top Forums Programming "Symbol referencing errors" On Socket programming Post 302526888 by achenle on Wednesday 1st of June 2011 08:25:27 PM
Old 06-01-2011
Solaris man pages tend to be a lot more complete than Linux man pages. Note the required libraries are actually listed on the man page for library calls:

Code:
Sockets Library Functions                     socketpair(3SOCKET)

NAME
     socketpair - create a pair of connected sockets

SYNOPSIS
     cc [ flag ... ] file ... -lsocket  -lnsl  [ library ... ]
     #include <sys/types.h>
     #include <sys/socket.h>

     int socketpair(int domain, int type, int protocol, int sv[2]);

DESCRIPTION
     The socketpair() library call creates  an  unnamed  pair  of
     connected sockets in the specified address family domain, of
     the specified type, that uses the optionally specified  pro-
     tocol.  The descriptors that are used in referencing the new
     sockets are returned in sv[0] and sv[1]. The two sockets are
     indistinguishable.

RETURN VALUES
     socketpair() returns -1 on failure and 0 on success.

ERRORS
     The call succeeds unless:

     EAFNOSUPPORT       The specified address family is not  sup-
                        ported on this machine.

     EMFILE             Too many descriptors are in use  by  this
                        process.

     ENOMEM             There was insufficient  user  memory  for
                        the operation to complete.

     ENOSR              There were insufficient STREAMS resources
                        for the operation to complete.

     EOPNOTSUPP         The specified protocol does  not  support
                        creation of socket pairs.

     EPROTONOSUPPORT    The specified protocol is  not  supported
                        on this machine.

     EACCES             The process  does  not  have  appropriate
                        privileges.

SunOS 5.11          Last change: 10 Jan 2001                    1

Sockets Library Functions                     socketpair(3SOCKET)

ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | MT-Level                    | Safe                        |
    |_____________________________|_____________________________|

SEE ALSO
     pipe(2), read(2), write(2), socket.h(3HEAD), attributes(5)

NOTES
     This call is currently  implemented  only  for  the  AF_UNIX
     address family.

SunOS 5.11          Last change: 10 Jan 2001                    2

This User Gave Thanks to achenle For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

Compiling Errors -- Symbol referencing

I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected?? The command line looks like this:-------------------------------------------- # cc ftpstock.c -lftp... (5 Replies)
Discussion started by: spotanddot
5 Replies

2. UNIX for Dummies Questions & Answers

ld: fatal: Symbol referencing errors

Hello! I have some problems installing a program called “Jail Chroot Project”. http://www.gsyc.inf.uc3m.es/~assman/jail/index.html I have only installed precompiled programs before and I get some kind of error message when im trying to compile this program. I have downloaded and... (2 Replies)
Discussion started by: alfabetman
2 Replies

3. Programming

ld: fatal: Symbol referencing errors. No output written to SNX

Hi all, I am getting the following error when I try to do a build of a product. I dont have the dependencies of the binaries involved in the build and thats the reason I was not able to find which library to add or to proceed to the next step to solve the reference problem. Undefined ... (1 Reply)
Discussion started by: jerryragland
1 Replies

4. Shell Programming and Scripting

ld: fatal: Symbol referencing errors

I am getting below error, any ideas to resolve it. 1:ts_n_tcp_cmp_row /finder3/baseline/95s/ed/src/lib/libfinder_ui_basic.so 1:ui_convert_date /finder3/baseline/95s/ed/src/lib/libfinder_fi_basic.so 1:ld: fatal: Symbol referencing errors. No output written... (1 Reply)
Discussion started by: shafi2all
1 Replies

5. AIX

"too big" and "not enough memory" errors in shell script

Hi, This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies

6. Programming

ld: fatal: Symbol referencing errors

Hi, I'm trying to compile OpenTTD on Solaris 5.10. I do not have root permissions so I have to set the prefix-dir to /home/abcde/usr/local/opt/opentdd-0.6.3 I've used the following command to configure: bash ./configure --prefix-dir=/opt/openttd-0.6.2 --without-makedepend \... (1 Reply)
Discussion started by: rudolph
1 Replies

7. Programming

C++ ld: fatal: Symbol referencing errors.

Hello. I used to compile my code including a third-party library, "libfoo.so". Now, the vendor ships a statically linked library, "libfoo.a", instead. With this library, I run into the following error: CC -mt -xarch=v9 -DCOMPILE_SOL_SPARC -ftrap=%none -xlibmil -xchip=ultra2 -xbuiltin -xO4 \... (0 Replies)
Discussion started by: acheong87
0 Replies

8. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

9. Programming

Symbol referencing errors

Undefined first referenced symbol in file logf /var/tmp//ccwztFsO.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status float exponC(float mean) { index1++;... (1 Reply)
Discussion started by: willji1234
1 Replies

10. Shell Programming and Scripting

How to allign output data in UNIX that is separated with a pipe "|" symbol ?

Experts , In the given output of the log file, the 2nd field that is separated by "|" pipe is not aligned well due to the uneven data length, I would like it to align the 2nd column with 37 length (that is disturbed in the output) including the pipe . The two pepe "|" would be in a aligned way... (2 Replies)
Discussion started by: rveri
2 Replies
Bio::Symbol::ProteinAlphabet(3pm)			User Contributed Perl Documentation			 Bio::Symbol::ProteinAlphabet(3pm)

NAME
Bio::Symbol::ProteinAlphabet - A ready made Protein alphabet SYNOPSIS
use Bio::Symbol::ProteinAlphabet; my $alpha = Bio::Symbol::ProteinAlphabet->new(); foreach my $symbol ( $alpha->symbols ) { print "symbol is $symbol "; } DESCRIPTION
This object builds an Alphabet with Protein symbols. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Jason Stajich Email jason@bioperl.org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ new Title : new Usage : my $obj = Bio::Symbol::ProteinAlphabet->new(); Function: Builds a new Bio::Symbol::ProteinAlphabet object Returns : Bio::Symbol::ProteinAlphabet Args : perl v5.14.2 2012-03-02 Bio::Symbol::ProteinAlphabet(3pm)
All times are GMT -4. The time now is 11:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy