[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference lassie::ucx

Title:DEC TCP/IP Services for OpenVMS
Notice:Note 2-SSB Kits, 3-FT Kits, 4-Patch Info, 7-QAR System
Moderator:ucxaxp.ucx.lkg.dec.com::TIBBERT
Created:Thu Nov 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5568
Total number of notes:21492

5241.0. "where is select() function defined ?" by FRUST::LUKAS (Unix starts with an `L') Wed Feb 19 1997 05:58

Hello,

I am trying to build the eSNMP chess-MIB example and I have got the linker
messages:

%LINK-W-NUDFSYMS, 2 undefined symbols:
%LINK-I-UDFSYM,         SELECT
%LINK-I-UDFSYM,         SLEEP

My linker options file looks like:

!
! Link options file for building the UCX$CHESS_SUBAGENT.EXE image
!
CHESS_METHOD.OBJ
CHESS_MIB.OBJ
CHESS_TBL.OBJ
UCX$SNMP:UCX$ESNMP.OLB/LIBR
UCX$SNMP:UCX$SNMPUSER.OLB/LIBR
UCX$SNMP:UCX$SNMP.OLB/LIBR
SYS$LIBRARY:UCX$IPC_SHR.EXE/SHARE
SYS$LIBRARY:UCX$ACCESS_SHR.EXE/SHARE
SYS$LIBRARY:DECC$SHR.EXE/SHARE


Question: Which object library or shareable image I have to add to the
          options file to get rid of these undefined symbols messages ?
	  Where is the select() call defined ?

Could anybody help me ?

regards,

Dieter Lukas
T.RTitleUserPersonal
Name
DateLines
5241.1LASSIE::GEMIGNANIWed Feb 19 1997 19:013
    
    When you compile, you need to use /PREFIX (probably =ALL), so that
    it defines DECC$SELECT() and DECC$SLEEP(), not select() and sleep().
5241.2now it worksFRUST::LUKASUnix starts with an `L'Thu Feb 20 1997 01:2510
    RE:.1
    
    That's it.
    
    Thanks a lot.
    
    
    regards,
    
    Dieter
5241.3just a warning about /stand=vaxcHNDYMN::MCCARTHYA Quinn Martin ProductionThu Feb 20 1997 06:228
One "work around" that has been mentioned for this prefixing problem is to 
use the /stand=vaxc qualifier.  I DO NOT suggest that.  /STAND=VAXC turns
on all kinds of other "special case" modes of the DEC C compiler which most
"portable" applications don't want on.  

Using /prefix=all is the correct solution (as you have found out)

bjm