Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpda!hpcuhb!hpcllla!hpcllz2!dhandly From: dhandly@hpcllz2.HP.COM (Dennis Handly) Newsgroups: comp.sys.hp Subject: Re: libc.a libresolv.a and strncasecomp() question Message-ID: <3770067@hpcllz2.HP.COM> Date: 21 Nov 90 10:51:50 GMT References: <1150050@misty.boeing.com> Organization: Hewlett Packard Calif. Language Lab Lines: 27 >/ jsadler@misty.boeing.com (Jim Sadler) / 10:01 am Nov 19, 1990 / >The bsd version of ftpd has a call to strncasecmp(). >When I look at the libc.a nm shows: >Symbols from /lib/libc.a[ruserpass.o]: >Name Value Scope Type Subspace >$global$ | |undef |data | >__filbuf | |undef |code | ... >getlong | 1856|sdef |entry |$CODE$ >catch | 2480|static|entry |$CODE$ >strcasecmp | 2504|static|entry |$CODE$ >strncasecmp | 2608|static|entry |$CODE$ When you use nm, you should pipe it to: nm ??? | fgrep -v static | fgrep -v undef >My first question is why does the linker give: >ld: Unsatisfied symbols: strncasecmp (code) If you remove the static functions/data, you'll see why the linker doesn't see it. These functions/data are only available to ruserpass and any other functions in that object file, ruserpass.o. >My second question is how do I get around this ? ?? Does HP have any special BSD libraries??