I compiles a C application which uses mysql library on two RedHat 9.0 machines.

Both machines are using the same GCC and the same MySQL 4.0.16 :

MySQL-client-4.0.16-0
MySQL-server-4.0.16-0
MySQL-devel-4.0.16-0
MySQL-shared-compat-4.0.16-0
gcc-3.2.2-5
gcc-c++-3.2.2-5
libgcc-3.2.2-5

In the MACHINE_1, the resulting binary size is about 20 KB, and in the MACHINE_2, the 
resulting
binary is about 180 KB. 

Anyone can explain why in the MACHINE_2, the binary size is very big ?

Here is my compile script :

#!/bin/sh
echo "building $1"
gcc -o $1 $1.c -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lz

If I do "strings" to the binary from MACHINE_2 (180 KB), I saw (see below, not all).
Is it possible that all the mysql libraries are statically linked ?

Please help me,

Thanks.

/lib/ld-linux.so.2
libz.so.1
uncompress
_DYNAMIC
_init
_fini
_GLOBAL_OFFSET_TABLE_
_Jv_RegisterClasses
__gmon_start__
libc.so.6
strcpy
bcmp
stdout
vsprintf
getlogin
connect
readdir64
fdopen
geteuid
memmove
getenv
__strtol_internal
qsort
fgets
memcpy
readlink
malloc
endpwent
socket
select
fflush
bzero
strrchr
write
fprintf
strcat
inet_addr
__stpcpy
chdir
setsockopt
memchr
strstr
signal
read
getrusage
realloc
strtok
sscanf
__xstat64
symlink
localtime
inet_ntoa
opendir
poll
strcmp
shutdown
getpwuid
getcwd
gethostbyname
getpwnam
getservbyname
__mempcpy
fclose
getpeername
gethostbyname_r
stderr
error
__lxstat64
fputc
strftime
htons
__errno_location
exit
atoi
fileno
_IO_stdin_used
__libc_start_main
strlen
strchr
fputs
realpath
closedir
fcntl
__fxstat64
strpbrk
free
fopen64
_edata
__bss_start
_end
GLIBC_2.3
GLIBC_2.1.2
GLIBC_2.1
GLIBC_2.2
GLIBC_2.0
PTRh0w
8"t+B8"t&B8"t!B
8"t+B8"t&B8"t!B
RSWV
root
 lik
,WVS
j0j0
F [^_
j0h
PjnSW
[EMAIL PROTECTED](@80t#@
@@+E @
[EMAIL PROTECTED](@80t#@
@@+E
[EMAIL PROTECTED](@80t#@
[EMAIL PROTECTED](@80t#@
8([EMAIL PROTECTED](t(@8(t#@
PRQSV
A@;A<s
j0jP
z<'tF
<"tP
n<\t*
<'tL

....
....
....
USER
LOGNAME
LOGIN
UNKNOWN_USER
 like '
max-allowed-packet
ssl-cipher
repl-parse-query
enable-reads-from-master
replication-probe
disable-local-infile
local-infile
connect-timeout
interactive-timeout
default-character-set
character-sets-dir
ssl-capath
ssl-ca
ssl-cert
ssl-key
return-found-rows
debug
database
host
init-command
user
timeout
pipe
password
compress
socket
port
options
client
d:t:o,/tmp/client.trace
SHOW SLAVE HOSTS
SHOW SLAVE STATUS
mysql
MYSQL_TCP_PORT
/var/lib/mysql/mysql.sock
MYSQL_UNIX_PORT
MYSQL_PWD
localhost
unknown
show databases
show tables
4.0.16
%08lx%08lx
[EMAIL PROTECTED] packet
SSL connection error
Error connecting to master:
Error connecting to slave:
Error on SHOW SLAVE HOSTS:
Error on SHOW SLAVE STATUS:
Embedded server
Got packet bigger than 'max_allowed_packet'
Can't initialize character set %-.32s (path: %-.100s)
Can't set state of named pipe to host: %-.64s  pipe: %-.32s (%lu)
Can't open named pipe to host: %-.64s  pipe: %-.32s (%lu)
Can't wait for named pipe to host: %-.64s  pipe: %-.32s (%lu)
.....................................
......................

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to