From owner-freebsd-questions Sat Apr 13 15:08:49 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA01251 for questions-outgoing; Sat, 13 Apr 1996 15:08:49 -0700 (PDT) Received: from jbrann.dialup.access.net (jbrann.dialup.access.net [166.84.193.118]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA01246 for ; Sat, 13 Apr 1996 15:08:44 -0700 (PDT) Received: (from jbrann@localhost) by jbrann.dialup.access.net (8.6.12/8.6.12) id SAA12270; Sat, 13 Apr 1996 18:10:16 -0400 Message-Id: <199604132210.SAA12270@jbrann.dialup.access.net> Subject: Re: libXpm.so.4.6 To: david.allan@probono.law.utah.edu (David Allan) Date: Sat, 13 Apr 1996 18:09:45 -0400 (EDT) Cc: questions@freebsd.org (freeq) In-Reply-To: from David Allan at "Apr 13, 96 12:54:04 pm" From: John Brann Reply-To: John Brann Organisation: Not while I'm at home X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk David Allan wrote... > >> First, would someone please gently tell me if this list is not the > >> appropriate place for this type of question. > > > >Yes, this is the place :) > > Thanks--I've been on the net for about 5 years, but I'm a real newbie to > the UNIX world. Relax, the natives hereabout are friendly. > Pixmap was one of the apps that wouldn't run for me. Where did you > get your libXpm.so.4.6? It didn't come with FreeBSD when I installed it > (last week, via FTP from FreeBSD.org). The versions I've been using have > been from RedHat directories, so they may be designed for Linux, not Not designed for, but compiled and linked on! That explains it! You need the FreeBSD 'pixmap' port or package. If you're still nervous about building things, get the package. For 2.1 you need xpm-3.4f.tgz which is in .../packages/x11. Use pkg_add on that, and your problems should be over. > FreeBSD, but I'm not really sure. > > Dave > > Your error message is actually useful and correct. The 'magic number' appears at the beginning of the file, and helps the system know what to do with it. For instance, many shell scripts begin with '#!' which tells the system to use the string following (usually /bin/sh) as the command interpreter to run the following script through. Binary files (such as executable programs and the shared library you were having trouble with) also have magic numbers which help the system to make sure its doing the right thing. If it finds an unexpected magic number, it barfs. Fortunately Linux uses different magic numbers from FreeBSD, so the system avoided doing something unpleasant by executing a shared library which would probably have crashed messily. John. -- Beavis and Butt-Head; Vladimir and Estragon for the '90s. finger jbrann@panix.com for pgp public key