Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!panews.awdpa.ibm.com!ibmpa.awdpa.ibm.com!marc From: marc@ibmpa.awdpa.ibm.com (Marc Pawliger) Newsgroups: comp.unix.aix Subject: Re: AIX v3.1: alloca and . Message-ID: <1991Feb15.111544@ibmpa.awdpa.ibm.com> Date: 15 Feb 91 19:15:44 GMT References: <1441@ucl-cs.uucp> Sender: news@ibmpa.awdpa.ibm.com (news id) Reply-To: marc@ibmpa.awdpa.ibm.com (Marc Pawliger) Organization: IBM Advanced Workstations Division, Palo Alto Lines: 27 In article <1441@ucl-cs.uucp>, J.Crowcroft@cs.ucl.ac.uk (Jon Crowcroft) writes: |> |> we're getting a number undefined symbols linking various programs |> |> e.g. |> 1. .rusers (librpcsvc.a) |> 2. .alloca (libc.a) |> 3. .flock (libbsd.a?) |> |> can someone please: |> a) explain the . instead of _ prefix |> b) explain the manual page for alloca reference to mystirous cc/xlc |> option to get the alloca symbol recogized * linked properly? |> c) the missing-ness of rusers I don't know about '.' vs '_' or why rusers is undefined. About alloca: to use alloca, you should add '#pragma alloca' to the top of any source file that uses alloca. Flock should be in libc.a, at least it is according the the Info document on the 'flock subroutine'. +--Marc Pawliger----IBM Advanced Workstations Division----Palo Alto, CA---+ | Internet: marc@ibminet.awdpa.ibm.com VNET: MARCP at AUSVM6 | | UUCP: uunet!ibminet.awdpa.ibm.com!marc Phone: (415) 855-3493 | +-----IBMinet: marc@ibmpa.awdpa.ibm.com----------IBM T/L: 465-3493------+