Apgcc and link in ubuntu feisty (apgcc

"Gabriele Greco" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
I'm trying to build an autopackage version of my opensource mud client, my
package works perfectly but I've problem to deploy the executable in linux
versions older than the one I'm using (ubuntu feisty 32bit, glibc 2.4).

The program is pure C and includes a pair of static libraries that are
compiled with apgcc, the only other dependance is GTK+ 2.4 (I used to build
the older versions on a debian sarge machine to keep these requirements).

I moved to autopackage mostly for the GLIBC compatibility tricks of apgcc
but these seems not to work, here are the symbols the program contains that
it should not:

    0x0d696913 0x00 08 GLIBC_2.3
00000000       F *UND*  00000040              __ctype_b_loc@@GLIBC_2.3
00000000       F *UND*  00000040              __ctype_tolower_loc@@GLIBC_2.3
gabry@nevada:~/local_home/ggmud$ objdump -x ggmud | grep GLIBC_2.4
    0x0d696914 0x00 10 GLIBC_2.4
00000000       F *UND*  00000046              __stack_chk_fail@@GLIBC_2.4

I read something about a -fno-stack-protector googling for my problem but it
seems that my compiler doesn't know this flag, I've no hint about the
ctype_XXX stuff.... I use ctype conversions but they should be wrapped by
the compiler AFAIK.

gabry@nevada:~/local_home/ggmud$ apgcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
i486-linux-gnu
Thread model: posix
gcc version 3.3.6 (Ubuntu 1:3.3.6-15ubuntu1)

Here is the relevant part of "scandeps" output:

All dependancies:
 libdl.so.2                               (used by   1 file)
 libgobject-2.0.so.0                      (used by   1 file)
 libX11.so.6                              (used by   1 file)
 libgdk_pixbuf-2.0.so.0                   (used by   1 file)
 libpango-1.0.so.0                        (used by   1 file)
 libc.so.6                                (used by   1 file)
 libglib-2.0.so.0                         (used by   1 file)
 libgtk-x11-2.0.so.0                      (used by   1 file)
 libatk-1.0.so.0                          (used by   1 file)
 libm.so.6                                (used by   1 file)
 libXext.so.6                             (used by   1 file)
 libgdk-x11-2.0.so.0                      (used by   1 file)

Anyway if someone wants to download the source code and try to build the
package here is the svn URL to grab the sources:

svn co https://ggmud.svn.sourceforge.net/svnroot/ggmud/trunk ggmud

"makepackage" should be enough to build it from a fresh SVN provided you
have gtk-dev libraries installed.

Obviously the generated package will give the following warning:

WARNING: Symbols from glibc 2.3 (or newer) were found. Consider using
apbuild to allow users of older distros to run this binary.

... but that's what I'm trying to remove with this call for help :)

-- 
Bye,
Gabry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.