From owner-freebsd-current Thu Sep 3 13:40:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16159 for freebsd-current-outgoing; Thu, 3 Sep 1998 13:40:49 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shadow.worldbank.org (shadow.worldbank.org [138.220.104.78]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16152 for ; Thu, 3 Sep 1998 13:40:46 -0700 (PDT) (envelope-from adhir@worldbank.org) Received: from localhost (adhir@localhost) by shadow.worldbank.org (8.9.1/8.8.8) with SMTP id QAA07237; Thu, 3 Sep 1998 16:39:03 -0400 (EDT) (envelope-from adhir@worldbank.org) X-Authentication-Warning: shadow.worldbank.org: adhir owned process doing -bs Date: Thu, 3 Sep 1998 16:39:03 -0400 (EDT) From: "Alok K. Dhir" To: Brian Cully cc: current@FreeBSD.ORG Subject: Re: Problems with ELF and UMich LDAP In-Reply-To: <31AA46916E9E809C852566740070D8B7.006F6D9485256674@worldbank.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try adding -shared to $LDFLAGS. Al On Thu, 3 Sep 1998, Brian Cully wrote: > I was trying to compile the UMich LDAP package after converting to > ELF and I got this message: > > gcc -o ltest test.o -L. -L../liblber -lldap -llber > ./libldap.a(os-ip.o): In function `connect_to_host': > os-ip.o(.text+0x5a): undefined reference to `inet_addr' > os-ip.o(.text+0x185): undefined reference to `inet_ntoa' > os-ip.o(.text+0x1d5): undefined reference to `inet_ntoa' > *** Error code 1 > > Which is totally bizarre to me, considering that the inet_* functions > live in libc. When I use `gcc -aout' everything works fine. > > I'm at a loss as to why this is happening, perhaps someone can shed > some light? > > -- > Brian Cully > ``And when one of our comrades was taken prisoner, blindfolded, hung > upside-down, shot, and burned, we thought to ourselves, `These are the > best experiences of our lives''' -Pathology (Joe Frank, Somewhere Out > There) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -------------------------------------------------------------------- \||/_ Alok K. Dhir Phone: +1.202.473.2446 oo \ S11-151, ISGMC Email: adhir@worldbank.org L_ The World Bank Group Washington, DC \/ ------------------------------------------------------------------------| "Unix _is_ user friendly - it just chooses friends selectively..." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message