ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] libc.mo: где брать?
@ 2006-05-26  5:09 Denis A. Yurashkou
  2006-05-26  5:14 ` Damir Shayhutdinov
  2006-05-26  5:32 ` Slava Semushin
  0 siblings, 2 replies; 8+ messages in thread
From: Denis A. Yurashkou @ 2006-05-26  5:09 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Доброе утро!

Вчера решил, наконец, собрать mysql-query-browser -- mysqlcc стал дюже неудобен.

Так вот, скачал SRPM, собрал, всё пучком.
Пускаю -- а оно и говорит:
"/usr/bin/mysql-query-browser: line 20:  5757 Segmentation fault      $PRG-bin"
(скрипт mysql-query-browser запускает /usr/bin/mysql-query-browser-bin).

strace на него выявил, что в конце оно делает вот это:
"...
open("/usr/share/locale/ru_RU.CP1251/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/ru_RU.cp1251/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/ru_RU/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/ru.CP1251/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/ru.cp1251/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/ru/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such 
file or directory)
write(2, "/usr/bin/mysql-query-browser: li"..., 78/usr/bin/mysql-query-browser: 
line 20:  5762 Segmentation fault      $PRG-bin
) = 78
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbffe0218, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [RTMIN])
rt_sigaction(SIGINT, {SIG_DFL}, {0x806e825, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
read(255, "\n", 357)                    = 1
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
read(255, "", 357)                      = 0
munmap(0x4016f000, 4096)                = 0
exit_group(139)                         = ?
Process 5759 detached"

По-видимому, он жить не может без этих самых libc.mo. Для ru_RU.cp1251 (да и 
вообще для ru*) таких в системе нет. :(
Где их брать? И, если не брать, то из чего и как можно сделать?

-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:09 [sisyphus] libc.mo: где брать? Denis A. Yurashkou
@ 2006-05-26  5:14 ` Damir Shayhutdinov
  2006-05-26  5:34   ` Denis A. Yurashkou
  2006-05-26  5:32 ` Slava Semushin
  1 sibling, 1 reply; 8+ messages in thread
From: Damir Shayhutdinov @ 2006-05-26  5:14 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

26.05.06, Denis A. Yurashkou<dayfuaim@msx.ru> написал(а):
> Доброе утро!
>
> Вчера решил, наконец, собрать mysql-query-browser -- mysqlcc стал дюже неудобен.
> Так вот, скачал SRPM, собрал, всё пучком.
> Пускаю -- а оно и говорит:
> "/usr/bin/mysql-query-browser: line 20:  5757 Segmentation fault      $PRG-bin"
> (скрипт mysql-query-browser запускает /usr/bin/mysql-query-browser-bin).

Это случаем не GTK-шная программа?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:09 [sisyphus] libc.mo: где брать? Denis A. Yurashkou
  2006-05-26  5:14 ` Damir Shayhutdinov
@ 2006-05-26  5:32 ` Slava Semushin
  2006-05-26  6:00   ` Denis A. Yurashkou
  1 sibling, 1 reply; 8+ messages in thread
From: Slava Semushin @ 2006-05-26  5:32 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list


--- Denis A. Yurashkou 2006-05-26 09:09:49 +0400
+++ Slava Semushin 2006-05-26 12:29:15 +0700

DAY> write(2, "/usr/bin/mysql-query-browser: li"..., 78/usr/bin/mysql-query-browser: 
DAY> line 20:  5762 Segmentation fault      $PRG-bin
DAY> ) = 78
DAY> rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
DAY> --- SIGCHLD (Child exited) @ 0 (0) ---
DAY> waitpid(-1, 0xbffe0218, WNOHANG)        = -1 ECHILD (No child processes)

    IMHO *.mo файлы с переводами тут вообще не причем. Причина сегфолта
    совсем другая.

    Странным выглядит строчка $PRG-bin. Возможно вместо $PRG должно было
    что-нить подставиться, но не подставилось. При этом ваша программа
    пытается запустить эту программу...


-- 
+ Slava Semushin | php-coder @ ngs.ru
+ ALT Linux Team | php-coder @ altlinux.ru



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:14 ` Damir Shayhutdinov
@ 2006-05-26  5:34   ` Denis A. Yurashkou
  2006-05-26  5:52     ` Damir Shayhutdinov
  0 siblings, 1 reply; 8+ messages in thread
From: Denis A. Yurashkou @ 2006-05-26  5:34 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

'Damir Shayhutdinov' wrote on 26.05.2006 09:21:
> 26.05.06, Denis A. Yurashkou<dayfuaim@msx.ru> написал(а):
>> Доброе утро!
>>
>> Вчера решил, наконец, собрать mysql-query-browser -- mysqlcc стал дюже неудобен.
>> Так вот, скачал SRPM, собрал, всё пучком.
>> Пускаю -- а оно и говорит:
>> "/usr/bin/mysql-query-browser: line 20:  5757 Segmentation fault      $PRG-bin"
>> (скрипт mysql-query-browser запускает /usr/bin/mysql-query-browser-bin).
> 
> Это случаем не GTK-шная программа?
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus

Случаем. Это фронтэнд к mysql-ному клиенту.
Это мне поможет? ;)

-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:34   ` Denis A. Yurashkou
@ 2006-05-26  5:52     ` Damir Shayhutdinov
  2006-05-26  6:08       ` Denis A. Yurashkou
  0 siblings, 1 reply; 8+ messages in thread
From: Damir Shayhutdinov @ 2006-05-26  5:52 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

25.05.06, Denis A. Yurashkou<dayfuaim@msx.ru> написал(а):
> Случаем. Это фронтэнд к mysql-ному клиенту.
> Это мне поможет? ;)
Сейчас есть некоторые проблемы с гномовскими программами, но раньше
они вроде проявлялись только на x86_64.

http://lists.altlinux.org/pipermail/sisyphus/2006-May/082008.html и
далее вниз по треду.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:32 ` Slava Semushin
@ 2006-05-26  6:00   ` Denis A. Yurashkou
  0 siblings, 0 replies; 8+ messages in thread
From: Denis A. Yurashkou @ 2006-05-26  6:00 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

'Slava Semushin' wrote on 26.05.2006 09:35:
> --- Denis A. Yurashkou 2006-05-26 09:09:49 +0400
> +++ Slava Semushin 2006-05-26 12:29:15 +0700
> 
> DAY> write(2, "/usr/bin/mysql-query-browser: li"..., 78/usr/bin/mysql-query-browser: 
> DAY> line 20:  5762 Segmentation fault      $PRG-bin
> DAY> ) = 78
> DAY> rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
> DAY> --- SIGCHLD (Child exited) @ 0 (0) ---
> DAY> waitpid(-1, 0xbffe0218, WNOHANG)        = -1 ECHILD (No child processes)
> 
>     IMHO *.mo файлы с переводами тут вообще не причем. Причина сегфолта
>     совсем другая.
> 
>     Странным выглядит строчка $PRG-bin. Возможно вместо $PRG должно было
>     что-нить подставиться, но не подставилось. При этом ваша программа
>     пытается запустить эту программу...
> 
> 
Скрипт mysql-query-browser (находится в /usr/bin) такой:
> #!/bin/sh
> 
> PRG="$0"
> 
> # need this for relative symlinks
> while [ -h "$PRG" ] ; do
>     ls=`ls -ld "$PRG"`
>     link=`expr "$ls" : '.*-> \(.*\)$'`
>     if expr "$link" : '/.*' > /dev/null; then
>         PRG="$link"
>     else
>         PRG=`dirname "$PRG"`"/$link"
>     fi
> done
> 
> DIRNAME=`dirname $PRG`
> DIRNAME=`cd $DIRNAME/..; pwd`
> 
> export MQB_DIR="$DIRNAME"
> $PRG-bin

Может, ему что-то где-то подправить?

-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  5:52     ` Damir Shayhutdinov
@ 2006-05-26  6:08       ` Denis A. Yurashkou
  2006-05-26  6:51         ` Denis A. Yurashkou
  0 siblings, 1 reply; 8+ messages in thread
From: Denis A. Yurashkou @ 2006-05-26  6:08 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

'Damir Shayhutdinov' wrote on 26.05.2006 09:55:
> 25.05.06, Denis A. Yurashkou<dayfuaim@msx.ru> написал(а):
>> Случаем. Это фронтэнд к mysql-ному клиенту.
>> Это мне поможет? ;)
> Сейчас есть некоторые проблемы с гномовскими программами, но раньше
> они вроде проявлялись только на x86_64.
> 
Да, у меня далеко не x86_64...
> http://lists.altlinux.org/pipermail/sisyphus/2006-May/082008.html и
> далее вниз по треду.

Читал. Пока не понял, каким боком это относится к моему зверю.
Как это проверить? В смысле, относится/не относится.

-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [sisyphus] libc.mo: где брать?
  2006-05-26  6:08       ` Denis A. Yurashkou
@ 2006-05-26  6:51         ` Denis A. Yurashkou
  0 siblings, 0 replies; 8+ messages in thread
From: Denis A. Yurashkou @ 2006-05-26  6:51 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

'Denis A. Yurashkou' wrote on 26.05.2006 10:18:
> 'Damir Shayhutdinov' wrote on 26.05.2006 09:55:
>> 25.05.06, Denis A. Yurashkou<dayfuaim@msx.ru> написал(а):
>>> Случаем. Это фронтэнд к mysql-ному клиенту.
>>> Это мне поможет? ;)
>> Сейчас есть некоторые проблемы с гномовскими программами, но раньше
>> они вроде проявлялись только на x86_64.
>>
> Да, у меня далеко не x86_64...
>> http://lists.altlinux.org/pipermail/sisyphus/2006-May/082008.html и
>> далее вниз по треду.
> 
> Читал. Пока не понял, каким боком это относится к моему зверю.
> Как это проверить? В смысле, относится/не относится.
> 
Это по спеку можно опеределить?
(приложен)

-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..

[-- Attachment #2: mysql-query-browser.spec --]
[-- Type: text/plain, Size: 2043 bytes --]

%define version		1.1.18
%define release		1

%define gtkhtml		libgtkhtml-3.8


Summary: A graphical MySQL query shell.
Name: mysql-query-browser
Version: %{version}
Release: %{release}
Group: Applications/Databases
License: GPL
Vendor: MySQL AB
URL: http://www.mysql.com/products/query-browser
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libglade2-devel >= 2.0.0, libgtkmm2-devel >= 2.4.0
BuildRequires: pcre-devel >= 3.9, gettext
#, libgtkhtml3-devel-3.10.0-alt1
# gtkhtml3-devel

%description
MySQL Query Browser is a GUI tool for executing SQL queries.
It will display the result in a list where you can edit its contents
and save. It has several auxiliar features to facilitate work, such
as query "bookmarking", query history, syntax highlighting and online
help.

It's part of the MySQL Developer Suite.


%prep
%setup -q -n %{name}-%{version}/mysql-gui-common
%setup -q -n %{name}-%{version}/%{name}

%build

# first we have to build the common libs
cd ../mysql-gui-common
%configure --with-commondirname=query-browser
make %{?_smp_mflags} 

# then the app itself
cd ../%{name}
%configure --with-commondirname=query-browser --with-gtkhtml=%{gtkhtml}
make -i %{?_smp_mflags} %{?qblibs}
(cd source/linux; ./static_make)

%install
rm -rf %{buildroot}
cd ../mysql-gui-common
make DESTDIR=%{buildroot} install

cd ../%{name}
make DESTDIR=%{buildroot} install

mkdir -p %{buildroot}%{_datadir}/mysql-gui/doc/query-browser/
cp -a doc/* %{buildroot}%{_datadir}/mysql-gui/doc/query-browser/

%clean
rm -rf %{buildroot}

%files
%defattr(0644, root, root, 0755)
%doc COPYING 
%attr(0755,root,root) %{_bindir}/mysql-query-browser
%attr(0755,root,root) %{_bindir}/mysql-query-browser-bin
%{_datadir}/applications/*.desktop
%{_datadir}/mysql-gui/*.png
%dir %{_datadir}/mysql-gui/query-browser
%{_datadir}/mysql-gui/query-browser/*
%{_datadir}/mysql-gui/doc/query-browser/*
%{_datadir}/locale/*


%changelog
* Sat Apr  3 2004 Alfredo Kojima <alfredo@mysql.com> 0.1.0_alpha-1
- initial RPM packaging


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-26  6:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-26  5:09 [sisyphus] libc.mo: где брать? Denis A. Yurashkou
2006-05-26  5:14 ` Damir Shayhutdinov
2006-05-26  5:34   ` Denis A. Yurashkou
2006-05-26  5:52     ` Damir Shayhutdinov
2006-05-26  6:08       ` Denis A. Yurashkou
2006-05-26  6:51         ` Denis A. Yurashkou
2006-05-26  5:32 ` Slava Semushin
2006-05-26  6:00   ` Denis A. Yurashkou

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git