Path: utzoo!mnetor!uunet!vsi!friedl From: friedl@vsi.UUCP (Stephen J. Friedl) Newsgroups: comp.unix.questions Subject: Re: mkdir(2) Message-ID: <527@vsi.UUCP> Date: 13 Apr 88 01:59:01 GMT References: <568@mccc.UUCP> Distribution: na Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 38 Keywords: 3b2/400, sysVr3.0 Summary: you need the new compiler In article <568@mccc.UUCP>, pjh@mccc.UUCP (Peter J. Holsberg) writes: > I'm trying to compile the latest rzszzm stuff, but ran into the following: > > undefined first referenced > symbol in file > mkdir rz.o > ld fatal: Symbol referencing errors. No output written to rz > > My SysVr3 Programmer's Reference Manual has a nice description of > mkdir(2), so I don't understand what's causing the error. Is my > interpretation -- ld can't find a function called mkdir in its libraries > -- correct? The kernel has it but your PCC2 (or C Issue 3) libraries don't have the little gateway functions. Your long-term fix is to get the latest compilers to get the library that contains them. A short-term hack is to do: $ cat > mkdir.s .globl mkdir .globl _cerror mkdir: MOVW &4,%r0 MOVW &0x280,%r1 GATE BGEUB noerror JMP _cerror noerror:RET ^D $ as mkdir.s Now include "mkdir.o" in your compile lines. The other SVR3-specific functions in the C library work the same way, but not all of them have "quick-and-dirty" interfaces (signal stuff is ugly). -- Steve Friedl V-Systems, Inc. "Yes, I'm jeff@unh's brother" friedl@vsi.com {backbones}!vsi.com!friedl attmail!vsi!friedl