From owner-freebsd-current Thu Sep 3 12:46:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07552 for freebsd-current-outgoing; Thu, 3 Sep 1998 12:46:41 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from coleridge.kublai.com (coleridge.kublai.com [207.96.1.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07546 for ; Thu, 3 Sep 1998 12:46:38 -0700 (PDT) (envelope-from shmit@natasya.kublai.com) Received: from natasya.kublai.com (natasya.kublai.com [207.172.25.236]) by coleridge.kublai.com (8.8.8/8.8.8) with ESMTP id PAA08571 for ; Thu, 3 Sep 1998 15:45:31 -0400 (EDT) (envelope-from shmit@natasya.kublai.com) Received: (from shmit@localhost) by natasya.kublai.com (8.9.1/8.8.8) id PAA09074 for current@freebsd.org; Thu, 3 Sep 1998 15:45:30 -0400 (EDT) Message-ID: <19980903154530.B1597@kublai.com> Date: Thu, 3 Sep 1998 15:45:30 -0400 From: Brian Cully To: current@FreeBSD.ORG Subject: Problems with ELF and UMich LDAP Reply-To: shmit@kublai.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i X-Sender: If your mailer pays attention to this, it's broken. X-PGP-Info: finger shmit@kublai.com for my public key. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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