From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,71a963438728a08b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!goblin1!goblin.stu.neva.ru!uio.no!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!inet.fi!feeder1.news.saunalahti.fi!uutiset.elisa.fi!7564ea0f!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: App Binaries and different Linux Distros Message-Id: <20090328191411.e7d4a2d5.tero.koskinen@iki.fi> References: <201ac0e1-b44b-4454-8325-5d0f65716a36@s1g2000prd.googlegroups.com> X-Newsreader: Sylpheed 2.5.0 (GTK+ 2.14.7; i386-unknown-openbsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sat, 28 Mar 2009 19:14:11 +0200 NNTP-Posting-Host: 80.186.181.134 X-Complaints-To: newsmaster@saunalahti.com X-Trace: uutiset.elisa.fi 1238260454 80.186.181.134 (Sat, 28 Mar 2009 19:14:14 EET) NNTP-Posting-Date: Sat, 28 Mar 2009 19:14:14 EET Organization: Elisa Customer Xref: g2news2.google.com comp.lang.ada:5349 Date: 2009-03-28T19:14:11+02:00 List-Id: On Sat, 28 Mar 2009 07:52:48 -0700 (PDT) RasikaSrinivasan@gmail.com wrote: > My dev environment is Ubuntu. Some apps I am developing are targeted > to run on a CentOS server. Any gotchas re running the binary built on > Ubuntu? You need to be careful with the shared library versions. It is best if you can build fully static binaries. Another issue is the architecture. A binary for i386 might not run on amd64 system (without extra tweaking). For example, Ubuntu might be using glibc version 2.4.1 and shared GNAT runtime 4.2.2. At the same time CentOS (or other Linux distribution) might use glibc version 2.3.2 and GNAT runtime 4.0.0. If you use functions which exist only in the newer library version, then your application don't work on systems with older libraries. > Most are network, text based applications. > > Thanks for any pointers. srini -- Tero Koskinen - http://iki.fi/tero.koskinen/