[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-solaris
Subject:    Re: [kde-solaris] kprinter expects libcups with symbol main()
From:       "Stamminger, Johannes" <Johannes.Stamminger () astrium-space ! com>
Date:       2002-07-10 16:02:47
[Download RAW message or body]

Hi,


this also a problem of mine and IMHO it is a problem of the CUPS 
compilation/linking. I reported to CUPS (see 
http://www.cups.org/newsgroups.php?Gcups.bugs+U407+D+O96+VR) but so far I got 
no good explanation.

In fact the main-symbol seems to be linked-in in the libcups.so.2.

Maybe it has something to do with my binutils version I used (2.11.2 - 
Trolltech mentions a linker bug in that version fo Solaris 2.6), maybe 
something else goes wrong.

I'm no compiler/linker expert but having closer look to the linking statement 
and the gcc manpage, I found a statement telling, that it is "sugested" to 
use the flags -symbolic or -shared instead of -G (this one is used linking 
the CUPS lib(s)). After configure I patched the root Makedefs and replaced -G 
by -shared in the DSOFLAGS section. Now the library no longer contains the 
main-symbol and e.g. KMail no longer complains printing with CUPS. Printing a 
mail worked, too, but this is no complete test ...

But as I said, I'm no expoert in those things. Would be nice if somebody could 
check/tell about consequences doing so ...


J. Stamminger
-- 
// Johannes@Stammingers.de//         _
------ ----<--{(@ ---------    /\ .-**)   ASTRIUM - Space Infrastructure
Euckenstr. 25, 28201 Bremen    || `-;()~~ Op. Supp. & Sim. Syst. (IO 62)
+49 421 556713 (Tel & FAX)     ||+-( )+  Huenefeldstr. 1-5, 28199 Bremen
                              /##\ /~\       +49 421 539 4152 / FAX 4378
___________________________________________________
This message is from the kde-solaris mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic