Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d0f53451
Commit
d0f53451
authored
Mar 25, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into hundin.mysql.fi:/my/bk/mysql
parents
71b76531
9ee0658a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
21 deletions
+30
-21
Build-tools/Do-compile
Build-tools/Do-compile
+1
-1
Build-tools/Do-rpm
Build-tools/Do-rpm
+1
-1
Docs/manual.texi
Docs/manual.texi
+1
-1
client/mysqldump.c
client/mysqldump.c
+2
-2
configure.in
configure.in
+14
-13
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+11
-3
No files found.
Build-tools/Do-compile
View file @
d0f53451
...
@@ -92,7 +92,7 @@ if ($opt_stage == 0)
...
@@ -92,7 +92,7 @@ if ($opt_stage == 0)
{
{
system
("
mkdir
$host
")
if
(
!
-
d
$host
);
system
("
mkdir
$host
")
if
(
!
-
d
$host
);
system
("
touch
$host
/mysql-fix-for-glob
");
system
("
touch
$host
/mysql-fix-for-glob
");
rm_all
(
<
$host
/
mysql
-
*>
);
rm_all
(
<
$host
/
mysql
*>
);
system
("
mkdir
$host
/bin
")
if
(
!
-
d
"
$host
/bin
");
system
("
mkdir
$host
/bin
")
if
(
!
-
d
"
$host
/bin
");
}
}
rm_all
("
$host
/test
");
rm_all
("
$host
/test
");
...
...
Build-tools/Do-rpm
View file @
d0f53451
...
@@ -152,7 +152,7 @@ cat > $logdir/$TMP_SCRIPT_MYSQL <<END
...
@@ -152,7 +152,7 @@ cat > $logdir/$TMP_SCRIPT_MYSQL <<END
set -x
set -x
# Check environment
# Check environment
export MYSQL_BUILD_PATH="/usr/
cygnus/redhat-980810/H-i386-pc-linux-gnu/bin/
:/usr/bin:/bin"
export MYSQL_BUILD_PATH="/usr/
local/bin:/my/gnu/bin
:/usr/bin:/bin"
export MYSQL_BUILD_CFLAGS="-O6 -fno-omit-frame-pointer -mpentium"
export MYSQL_BUILD_CFLAGS="-O6 -fno-omit-frame-pointer -mpentium"
export MYSQL_BUILD_CXXFLAGS="-O6 -fno-omit-frame-pointer
\
export MYSQL_BUILD_CXXFLAGS="-O6 -fno-omit-frame-pointer
\
-felide-constructors -fno-exceptions -fno-rtti -mpentium"
-felide-constructors -fno-exceptions -fno-rtti -mpentium"
...
...
Docs/manual.texi
View file @
d0f53451
...
@@ -32044,7 +32044,7 @@ mysql> select INET_ATON("209.207.224.40");
...
@@ -32044,7 +32044,7 @@ mysql> select INET_ATON("209.207.224.40");
@end example
@end example
The generated number is always in network byte order; For example the
The generated number is always in network byte order; For example the
above number is calculated as @code{209*25
5^3 + 207*255^2 + 224*255
+40}.
above number is calculated as @code{209*25
6^3 + 207*256^2 + 224*256
+40}.
@findex MASTER_POS_WAIT()
@findex MASTER_POS_WAIT()
@item MASTER_POS_WAIT(log_name, log_pos)
@item MASTER_POS_WAIT(log_name, log_pos)
client/mysqldump.c
View file @
d0f53451
...
@@ -651,7 +651,7 @@ static uint getTableStructure(char *table, char* db)
...
@@ -651,7 +651,7 @@ static uint getTableStructure(char *table, char* db)
/* Make an sql-file, if path was given iow. option -T was given */
/* Make an sql-file, if path was given iow. option -T was given */
char
buff
[
20
+
FN_REFLEN
];
char
buff
[
20
+
FN_REFLEN
];
sprintf
(
buff
,
"show create table `%s`"
,
table
_name
);
sprintf
(
buff
,
"show create table `%s`"
,
table
);
if
(
mysql_query
(
sock
,
buff
))
if
(
mysql_query
(
sock
,
buff
))
{
{
fprintf
(
stderr
,
"%s: Can't get CREATE TABLE for table '%s' (%s)
\n
"
,
fprintf
(
stderr
,
"%s: Can't get CREATE TABLE for table '%s' (%s)
\n
"
,
...
@@ -786,7 +786,7 @@ static uint getTableStructure(char *table, char* db)
...
@@ -786,7 +786,7 @@ static uint getTableStructure(char *table, char* db)
{
{
if
(
opt_keywords
)
if
(
opt_keywords
)
fprintf
(
sql_file
,
" %s.%s %s"
,
table_name
,
fprintf
(
sql_file
,
" %s.%s %s"
,
table_name
,
quote_name
(
row
[
SHOW_FIELDNAME
],
name_buff
),
row
[
SHOW_TYPE
]);
quote_name
(
row
[
SHOW_FIELDNAME
],
name_buff
),
row
[
SHOW_TYPE
]);
else
else
fprintf
(
sql_file
,
" %s %s"
,
quote_name
(
row
[
SHOW_FIELDNAME
],
fprintf
(
sql_file
,
" %s %s"
,
quote_name
(
row
[
SHOW_FIELDNAME
],
name_buff
),
row
[
SHOW_TYPE
]);
name_buff
),
row
[
SHOW_TYPE
]);
...
...
configure.in
View file @
d0f53451
...
@@ -436,16 +436,17 @@ AC_ARG_WITH(other-libc,
...
@@ -436,16 +436,17 @@ AC_ARG_WITH(other-libc,
enable_shared
=
"no"
enable_shared
=
"no"
all_is_static
=
"yes"
all_is_static
=
"yes"
CFLAGS
=
"
$CFLAGS
-I
$other_libc_include
"
CFLAGS
=
"
$CFLAGS
-I
$other_libc_include
"
# There seems to be a feature in gcc that treats system and libc headers
# silently when they violatate ANSI C++ standard, but it is strict otherwise
# since gcc cannot now recognize that our headers are libc, we work around
# by telling it to be permissive. Note that this option only works with
# new versions of gcc (2.95.x and above)
CXXFLAGS
=
"
$CXXFLAGS
-fpermissive -I
$other_libc_include
"
CXXFLAGS
=
"
$CXXFLAGS
-fpermissive -I
$other_libc_include
"
#There seems to be a feature in gcc that treats system and libc headers
#leniently when they violatate ANSI C++ standard, but it is strict otherwise
#since gcc cannot now recognize that our headers are libc, we work around
#by telling it to be permissive
static_nss
=
static_nss
=
if
test
-f
"
$other_libc_lib
/libnss_files.a"
if
test
-f
"
$other_libc_lib
/libnss_files.a"
then
then
# libc has been compiled with --enable-static-nss
# libc has been compiled with --enable-static-nss
# we need special flags, but we will have to add those later
# we need special flags, but we will have to add those later
STATIC_NSS_FLAGS
=
"-Wl,--start-group -lc -lnss_files -lnss_dns -lresolv
\
STATIC_NSS_FLAGS
=
"-Wl,--start-group -lc -lnss_files -lnss_dns -lresolv
\
-Wl,--end-group"
-Wl,--end-group"
static_nss
=
1
static_nss
=
1
...
@@ -461,12 +462,12 @@ AC_ARG_WITH(other-libc,
...
@@ -461,12 +462,12 @@ AC_ARG_WITH(other-libc,
LDFLAGS
=
"
$LDFLAGS
-static -L
$other_libc_lib
"
LDFLAGS
=
"
$LDFLAGS
-static -L
$other_libc_lib
"
fi
fi
# When linking against custom libc installed separately, we want to force
# all binary builds to be static, including the build done by configure
# itself to test for system features.
with_mysqld_ldflags
=
"-all-static"
with_mysqld_ldflags
=
"-all-static"
with_client_ldflags
=
"-all-static"
with_client_ldflags
=
"-all-static"
NOINST_LDFLAGS
=
"-all-static"
NOINST_LDFLAGS
=
"-all-static"
#when linking against custom libc installed separately, we want to force all
#binary builds to be static, including the build done by configure itself
#to test for system features
]
,
]
,
[
[
other_libc_include
=
other_libc_include
=
...
@@ -1512,9 +1513,9 @@ ac_save_CXXFLAGS="$CXXFLAGS"
...
@@ -1512,9 +1513,9 @@ ac_save_CXXFLAGS="$CXXFLAGS"
AC_CACHE_CHECK
([
style of gethost
*
routines], mysql_cv_gethost_style,
AC_CACHE_CHECK
([
style of gethost
*
routines], mysql_cv_gethost_style,
AC_LANG_SAVE
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_LANG_CPLUSPLUS
#
d
o not treat warnings as errors if we are linking agaist other libc
#
D
o not treat warnings as errors if we are linking agaist other libc
#this is to work around gcc not being permissive on non-system includes
#
this is to work around gcc not being permissive on non-system includes
#with respect to ANSI C++
#
with respect to ANSI C++
if
test
"
$ac_cv_prog_gxx
"
=
"yes"
-a
"
$with_other_libc
"
=
"no"
if
test
"
$ac_cv_prog_gxx
"
=
"yes"
-a
"
$with_other_libc
"
=
"no"
then
then
CXXFLAGS
=
"
$CXXFLAGS
-Werror"
CXXFLAGS
=
"
$CXXFLAGS
-Werror"
...
@@ -2204,7 +2205,7 @@ then
...
@@ -2204,7 +2205,7 @@ then
fi
fi
fi
fi
#IMPORTANT - do not modify LIBS past this line - this hack is the only way
#
IMPORTANT - do not modify LIBS past this line - this hack is the only way
# I know to add the static NSS magic if we have static NSS libraries with
# I know to add the static NSS magic if we have static NSS libraries with
# glibc - Sasha
# glibc - Sasha
...
...
support-files/mysql.spec.sh
View file @
d0f53451
...
@@ -188,9 +188,17 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
...
@@ -188,9 +188,17 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
make
benchdir_root
=
$RPM_BUILD_ROOT
/usr/share/
make
benchdir_root
=
$RPM_BUILD_ROOT
/usr/share/
}
}
# Use
the build root for temporary storage of the shared libraries.
# Use
our own copy of glibc
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
USE_OTHER_LIBC_DIR
=
""
if
test
-d
"OTHER_LIBC_DIR"
then
USE_OTHER_LIBC_DIR
=
"--with-other-libc=
$OTHER_LIBC_DIR
"
fi
# Use the build root for temporary storage of the shared libraries.
RBR
=
$RPM_BUILD_ROOT
RBR
=
$RPM_BUILD_ROOT
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
if
test
-z
"
$RBR
"
-o
"
$RBR
"
=
"/"
if
test
-z
"
$RBR
"
-o
"
$RBR
"
=
"/"
...
@@ -204,7 +212,7 @@ mkdir -p $RBR
...
@@ -204,7 +212,7 @@ mkdir -p $RBR
# We need to build shared libraries separate from mysqld-max because we
# We need to build shared libraries separate from mysqld-max because we
# are using --with-other-libc
# are using --with-other-libc
BuildMySQL
"--disable-shared
--with-other-libc=
$
OTHER_LIBC_DIR
--with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
BuildMySQL
"--disable-shared
$USE_
OTHER_LIBC_DIR
--with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
# Save everything for debug
# Save everything for debug
# tar cf $RBR/all.tar .
# tar cf $RBR/all.tar .
...
@@ -234,7 +242,7 @@ automake
...
@@ -234,7 +242,7 @@ automake
BuildMySQL
"--disable-shared"
\
BuildMySQL
"--disable-shared"
\
"--with-mysqld-ldflags='-all-static'"
\
"--with-mysqld-ldflags='-all-static'"
\
"--with-client-ldflags='-all-static'"
\
"--with-client-ldflags='-all-static'"
\
"
--with-other-libc=
$
OTHER_LIBC_DIR
"
\
"
$USE_
OTHER_LIBC_DIR
"
\
"--without-berkeley-db --without-innodb"
"--without-berkeley-db --without-innodb"
nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment