Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200886 - app-office/texmaker-1.50-r1 not running as normal user
Summary: app-office/texmaker-1.50-r1 not running as normal user
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 22:54 UTC by Popolous
Modified: 2007-12-03 13:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Popolous 2007-11-30 22:54:14 UTC
Once compiled successfully app-office/texmaker-1.50-r1, it doesn't start as normal user, but it does as root.

Step to reproduce failure:

1. Emerge app-office/texmaker-1.50-r1
2. Run from a console or from X-menu as normal user
3. It doesn't start

=================================================================================
# emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 i686)
=================================================================
System uname: 2.6.22-gentoo-r9 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Thu, 29 Nov 2007 06:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" http://gentoo.osuosl.org http://mirror.hamakor.org.il/pub/mirrors/gentoo/  ftp://mirror.nutsmaas.nl/gentoo/  ftp://ftp.rnl.ist.utl.pt/pub/gentoo/  ftp://ftp.citkit.ru/pub/Linux/gentoo  ftp://ftp.caliu.info/pub/gentoo/  http://linuv.uv.es/mirror/gentoo/  ftp://ftp.du.se/pub/os/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl adobe alsa avahi berkdb bitmap-fonts cdr cli cracklib crypt ctype cups divx4linux doc dri dv dvb dvd dvdread encode fame ffmpeg fortran gdbm gnome gpm gtk gtkhtml hal iconv ipv6 isdnlog java jpeg jpg kde midi mono mp2 mp3 mpeg mpg mudflap myqsli mysql ncurses nls nptl nptlonly ogg openmp pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection session spell spl ssl subtitles tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xinerama xorg xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="i810 fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
===============================================================================

# uname -a

2.6.22-gentoo-r9 #2 SMP Wed Nov 28 16:48:58 CET 2007 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux

===============================================================================
Comment 1 Alexis Ballier gentoo-dev 2007-12-02 12:24:56 UTC
what's the output from the console when it doesn't start ? when it does ?
could you try with texmaker 1.60 ?

what's the output of 'locale' command as root and as a user ?
could you try to start texmaker as a user with the same locales as root ?
Comment 2 Popolous 2007-12-02 18:42:28 UTC
When I start it as a normal user, I have this error message:

==================================================================================
texmaker: symbol lookup error: texmaker: undefined symbol: _ZN7QString16fromAscii_helperEPKci
==================================================================================

Locale as normal user:

==================================================================================
LANG=es_ES@euro
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE="es_ES@euro"
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=es_ES@euro
================================================================================

As root:

================================================================================
LANG=es_ES@euro
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE="es_ES@euro"
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=es_ES@euro
================================================================================
Comment 3 Alexis Ballier gentoo-dev 2007-12-02 18:46:22 UTC
whats the output (both as root and as a user) of : 
ldd /usr/bin/texmaker
which texmaker
Comment 4 Popolous 2007-12-02 23:22:22 UTC
As normal user:

=================================================================================
$ ldd /usr/bin/texmaker
        linux-gate.so.1 =>  (0xb7f7e000)
        libQtGui.so.4 => /opt/matlab75/bin/glnx86/libQtGui.so.4 (0xb7a51000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb7a12000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb79bd000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb799b000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7992000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb797a000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7971000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb796b000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7966000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb795c000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7959000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb78cc000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7898000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7888000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb778f000)
        libQtCore.so.4 => /opt/matlab75/bin/glnx86/libQtCore.so.4 (0xb7641000)
        libz.so.1 => /opt/matlab75/bin/glnx86/libz.so.1 (0xb762d000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7628000)
        librt.so.1 => /lib/librt.so.1 (0xb761e000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb754f000)
        libdl.so.2 => /lib/libdl.so.2 (0xb754b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7534000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7457000)
        libm.so.6 => /lib/libm.so.6 (0xb7431000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7426000)
        libc.so.6 => /lib/libc.so.6 (0xb72f6000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb72f3000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb72c9000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb72c7000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72af000)
        /lib/ld-linux.so.2 (0xb7f7f000)
=================================================================================

As root:

==================================================================================
# ldd /usr/bin/texmaker
        linux-gate.so.1 =>  (0xb7f7b000)
        libQtGui.so.4 => /usr/lib/qt4/libQtGui.so.4 (0xb77b8000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb77a3000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb774e000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb772c000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7723000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb770b000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7702000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb76fc000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb76f7000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb76ed000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb76ea000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb765d000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7629000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7619000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7520000)
        libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb738c000)
        libz.so.1 => /lib/libz.so.1 (0xb7378000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7373000)
        librt.so.1 => /lib/librt.so.1 (0xb7369000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb729a000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7296000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb727f000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb71a2000)
        libm.so.6 => /lib/libm.so.6 (0xb717c000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7171000)
        libc.so.6 => /lib/libc.so.6 (0xb7041000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb703e000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7014000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7012000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6ffa000)
        /lib/ld-linux.so.2 (0xb7f7c000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6ff5000)

==================================================================================

Output from command which:

================================================================================
/usr/bin/texmaker
================================================================================

Both as normal user and root.
Comment 5 Alexis Ballier gentoo-dev 2007-12-02 23:27:21 UTC
(In reply to comment #4)
> As normal user:
[...]
>         libQtGui.so.4 => /opt/matlab75/bin/glnx86/libQtGui.so.4 (0xb7a51000)
[...]
>         libQtCore.so.4 => /opt/matlab75/bin/glnx86/libQtCore.so.4 (0xb7641000)
>         libz.so.1 => /opt/matlab75/bin/glnx86/libz.so.1 (0xb762d000)
[...] 
> As root:
[...]
>         libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb738c000)
>         libz.so.1 => /lib/libz.so.1 (0xb7378000)

I think your user LD_LIBRARY_PATH contains some paths (matlab) that breaks things. texmaker has been compiled against qt in /usr/lib/qt4, but when you run it, it loads the one from /opt/matlab75/bin/glnx86

has matlab been installed via an ebuild ? do you have something in LD_LIBRARY_PATH ? did you add it manually ?
Comment 6 Popolous 2007-12-03 09:01:45 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > As normal user:
> [...]
> >         libQtGui.so.4 => /opt/matlab75/bin/glnx86/libQtGui.so.4 (0xb7a51000)
> [...]
> >         libQtCore.so.4 => /opt/matlab75/bin/glnx86/libQtCore.so.4 (0xb7641000)
> >         libz.so.1 => /opt/matlab75/bin/glnx86/libz.so.1 (0xb762d000)
> [...] 
> > As root:
> [...]
> >         libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb738c000)
> >         libz.so.1 => /lib/libz.so.1 (0xb7378000)
> 
> I think your user LD_LIBRARY_PATH contains some paths (matlab) that breaks
> things. texmaker has been compiled against qt in /usr/lib/qt4, but when you run
> it, it loads the one from /opt/matlab75/bin/glnx86
> 
> has matlab been installed via an ebuild ? do you have something in
> LD_LIBRARY_PATH ? did you add it manually ?
> 
Yes I have Matlab installed, but not via ebuild. In order for compiled applications within Matlab to run, I had to add that in LD_LIBRARY_PATH. Is there any way to keep it as a normal user and have the same as root?
Comment 7 Alexis Ballier gentoo-dev 2007-12-03 10:20:51 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > As normal user:
> > [...]
> > >         libQtGui.so.4 => /opt/matlab75/bin/glnx86/libQtGui.so.4 (0xb7a51000)
> > [...]
> > >         libQtCore.so.4 => /opt/matlab75/bin/glnx86/libQtCore.so.4 (0xb7641000)
> > >         libz.so.1 => /opt/matlab75/bin/glnx86/libz.so.1 (0xb762d000)
> > [...] 
> > > As root:
> > [...]
> > >         libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb738c000)
> > >         libz.so.1 => /lib/libz.so.1 (0xb7378000)
> > 
> > I think your user LD_LIBRARY_PATH contains some paths (matlab) that breaks
> > things. texmaker has been compiled against qt in /usr/lib/qt4, but when you run
> > it, it loads the one from /opt/matlab75/bin/glnx86
> > 
> > has matlab been installed via an ebuild ? do you have something in
> > LD_LIBRARY_PATH ? did you add it manually ?
> > 
> Yes I have Matlab installed, but not via ebuild. In order for compiled
> applications within Matlab to run, I had to add that in LD_LIBRARY_PATH. Is
> there any way to keep it as a normal user and have the same as root?


yes: dont set globally LD_LIBRARY_PATH like that as it will break your qt4 applications.
Use a wrapper like: startmatlab.sh that contains: 
LD_LIBRARY_PATH=mypath /path/to/matlab
so that matlab will be started with this wrapper sanely and other apps will also use the correct libraries

closing as invalid
Comment 8 Popolous 2007-12-03 13:50:42 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > (In reply to comment #4)
> > > > As normal user:
> > > [...]
> > > >         libQtGui.so.4 => /opt/matlab75/bin/glnx86/libQtGui.so.4 (0xb7a51000)
> > > [...]
> > > >         libQtCore.so.4 => /opt/matlab75/bin/glnx86/libQtCore.so.4 (0xb7641000)
> > > >         libz.so.1 => /opt/matlab75/bin/glnx86/libz.so.1 (0xb762d000)
> > > [...] 
> > > > As root:
> > > [...]
> > > >         libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb738c000)
> > > >         libz.so.1 => /lib/libz.so.1 (0xb7378000)
> > > 
> > > I think your user LD_LIBRARY_PATH contains some paths (matlab) that breaks
> > > things. texmaker has been compiled against qt in /usr/lib/qt4, but when you run
> > > it, it loads the one from /opt/matlab75/bin/glnx86
> > > 
> > > has matlab been installed via an ebuild ? do you have something in
> > > LD_LIBRARY_PATH ? did you add it manually ?
> > > 
> > Yes I have Matlab installed, but not via ebuild. In order for compiled
> > applications within Matlab to run, I had to add that in LD_LIBRARY_PATH. Is
> > there any way to keep it as a normal user and have the same as root?
> 
> 
> yes: dont set globally LD_LIBRARY_PATH like that as it will break your qt4
> applications.
> Use a wrapper like: startmatlab.sh that contains: 
> LD_LIBRARY_PATH=mypath /path/to/matlab
> so that matlab will be started with this wrapper sanely and other apps will
> also use the correct libraries
> 
> closing as invalid
> 

Thank you very much!