[Gambas-user] ERROR:ld.so: object 'libqt-mt.so.3

Demosthenes Koptsis demosthenesk at ...626...
Mon Mar 24 19:49:26 CET 2008


On 3/24/08, Benoit Minisini <gambas at ...1...> wrote:
> On lundi 24 mars 2008, Demosthenes Koptsis wrote:
> > Hi, i have a procces with SHELL executing a "su" command.
> > When the project runs in GAMBAS IDE everything is fine. No error
> > message box appeared
> > But when i run the executable i get the following error
> > "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be
> > preloaded: ignored"
> > So i have to write something like that in Procces_Error Sub to avoid
> > the error messagebox in executable
> >
> > PUBLIC SUB Process_Error(txtError AS String)
> >
> > 'we use one var to inform the errors to user
> > DIM txtErrorString AS String
> >
> > 'if txtError start with word "ERROR" dont show message
> > 'if we dont write these "if" lines the executable file raises an
> > error when we execute a "su" command
> > 'the error is "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD
> > cannot be preloaded: ignored"
> > IF Mid(txtError, 1, 5) = "ERROR" THEN
> > RETURN
> > ELSE
> > txtErrorString = "The process raised the following error:\n"
> > message.Error(txtErrorString & txtError)
> > END IF
> >
> > END
> >
> > Does anybody know something about that?
> >
> >
>
> Preloading is a thing done by the interpreter at startup to workaround some
> bugs in the compilation of QT and KDE libraries on some systems like
> OpenSUSE.
>
> So, when a project uses gb.qt or gb.qt.kde, some libraries are put in
> LD_PRELOAD at startup, and the interpreter is run again, so that these
> libraries are loaded before anything is run by the interpreter. Otherwise,
> it
> crashes in the dynamic libraries loader.
>
> At the moment it is done by default for everyone. But, for example, on
> Mandriva, it is not necessary at all.
>
> You are not clear anyway: can you explain precisely how you run the program
> to
> get the error message?

When i run the program inside the GAMBAS IDE there is no error.
But when i click the executable, or when i run it with command line
writing like ./executable
i get the error.

>Which distribution do you use?

i use openSuse 10.2

>Can you send your project?

The project can be downloaded from
http://sourceforge.net/project/showfiles.php?group_id=221957

> Regards,
>
> --
> Benoit Minisini
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Γεια χαρα σε όλους!!!
Regards,
Demosthenes Koptsis


More information about the User mailing list