From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13969 invoked by alias); 23 Mar 2004 09:36:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13955 invoked from network); 23 Mar 2004 09:36:34 -0000 Received: from unknown (HELO gate.algorithm.aelita.com) (212.176.18.2) by sources.redhat.com with SMTP; 23 Mar 2004 09:36:34 -0000 Received: from bagman.edm.com ([10.0.0.4]) by gate.algorithm.aelita.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with ESMTP id com for ; Tue, 23 Mar 2004 12:36:33 +0300 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Subject: RE: Different binary size Date: Tue, 23 Mar 2004 13:37:00 -0000 Message-ID: <3F6F4712B759A34ABD453A8B39C10D6201FF9545@bagman.edm.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Lev Assinovsky" To: "Admin-Stress" , X-SW-Source: 2004-03/txt/msg00209.txt.bz2 You have to have libmysqlclient.so in /usr/lib/mysql ---- Lev Assinovsky Aelita Software Corporation O&S InTrust Framework Division, Team Leader ICQ# 165072909 > -----Original Message----- > From: Admin-Stress [mailto:meerkapot@yahoo.com] > Sent: Tuesday, March 23, 2004 3:48 AM > To: gcc-help@gcc.gnu.org > Subject: Different binary size >=20 >=20 > I compiled a program in two machines, both are using the same=20 > gcc, MySQL library, and glibc (both > are RedHat 9). >=20 > The first machine (MACHINE_1) produced 20 KB binary size, but=20 > in second machine (MACHINE_2) > produced 181 KB binary size. >=20 > I know that the problem is MACHINE_2 cant dynamically link=20 > the libray. How can I fix this in > MACHINE_2 so it can produce dynamic link?=20 >=20 > Here is my compile script : >=20 > gcc -o iaac iaac.c -I/usr/include/mysql -L/usr/lib/mysql=20 > -lmysqlclient -lz >=20 > Please help me. >=20 > in MACHINE_1 : >=20 > $ ldd iaac > libmysqlclient.so.12 =3D> /usr/lib/libmysqlclient.so.12=20 > (0x4001c000) > libz.so.1 =3D> /usr/lib/libz.so.1 (0x40052000) > libc.so.6 =3D> /lib/libc.so.6 (0x40060000) > libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x40187000) > libnsl.so.1 =3D> /lib/libnsl.so.1 (0x401b3000) > libm.so.6 =3D> /lib/libm.so.6 (0x401c7000) > libnss_files.so.2 =3D> /lib/libnss_files.so.2 (0x401e8000) > libnss_dns.so.2 =3D> /lib/libnss_dns.so.2 (0x401f3000) > libresolv.so.2 =3D> /lib/libresolv.so.2 (0x401f7000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000) >=20 > in MACHINE_2 : >=20 > $ ldd iaac > libz.so.1 =3D> /usr/lib/libz.so.1 (0x4001d000) > libc.so.6 =3D> /lib/i686/libc.so.6 (0x4002c000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000) >=20 >=20 > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html >=20