*BSD News Article 82261


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!EU.net!news2.EUnet.fr!newsbr.eunet.fr!usenet
From: Frederic.Marand@osinet.fr (Frederic MARAND)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Portability Poblem
Date: Mon, 04 Nov 1996 07:44:45 GMT
Organization: Groupe SEDI / Agorus SA / OSI SARL
Lines: 32
Message-ID: <55kad4$k1t@newsbr.eunet.fr>
References: <3278EF50.6D12@nirvanatech.com>
NNTP-Posting-Host: 193.107.196.155
X-Newsreader: Forte Free Agent 1.0.82

Mana Bando <mana@nirvanatech.com> wrote:

>Hi folks,

>I have some peculiar prob...recently I have been assigned to convert and 
>compile a 'C' program from BSD to AIX 4.1.2.  I am not sure what version of 
>FreeBSD the program came from but the name of the program is 'strings.c'.  
>Anyway, the problem I am facing now is when I am trying to compile under AIX 
>I am getting the specific error on 'EXEC' and 'N_BADMAG' and 'N_TXTOFF'.  
>Looks like these components must have been included in the BSD header file 
>which obviously does not exactly match with AIX header files, despite their 
>same name.  Last couple of days I am trying to find which particular header 
>file I need to look for or what is the value of these variable in both 
>sides. But failed to determine so far. This 'strings.c' program contains the 
>following header files.  Any form of help will greatly appreciate.

>Mana (mana@nirvanatech.com ......(404)250.1575)
Well, maybe it is interesting to port strings to AIX, but you should
be aware it is already included in the standard AIX distribution. You
needn't a recompiled version of BSD source code for that.

By the way, as Jordan Hubbard wrote, strings can look in the data
areas of the executable images, and AIX executable format (XCOFF) is
not a standard format like COFF or ELF.


-------------------------
   Frederic G. MARAND
  Agorus SA / OSI SARL
Frederic.Marand@osinet.fr
-------------------------