From kde-solaris Thu Jun 27 10:37:40 2002 From: Matthias Welwarsky Date: Thu, 27 Jun 2002 10:37:40 +0000 To: kde-solaris Subject: Re: Fwd: [kde-solaris] kprinter expects libcups with symbol main() X-MARC-Message: https://marc.info/?l=kde-solaris&m=102517686713511 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-02=_4ruG9BnG3klNhgJ" --Boundary-02=_4ruG9BnG3klNhgJ Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit Content-Description: signed data Content-Disposition: inline Hi Achim, the solution is rather straight forward: you make up a dummy.c that contains something like: int main(void) { return 0; } then you edit the makefile.am in the directory where the library sources are and add the dummy.c file to the sources of libcups I had to use this trick, too, when building the kde packages for solaris 8 The real error is probably somewhere in libtool, but I didn't bother to search for it. regards, matze On Thursday 27 June 2002 11:08, you wrote: > ---------- Forwarded Message ---------- > > Subject: [kde-solaris] kprinter expects libcups with symbol main() > Date: Thu, 27 Jun 2002 11:02:54 +0200 > From: Achim Bohnet > To: kde-solaris@mail.kde.org > > Hi, > > I've installed the new cups 1.1.15. Now kprinter (from solaris8 prebuild > packages) complains: > > ld.so.1: kprinter: fatal: relocation error: file /usr/lib/libcups.so.2: > symbol main: referenced symbol not found > > Anyone knows how to create a lib with main() included? > > Thx, > Achim > -- > To me vi is Zen. To use vi is to practice zen. Every command is > a koan. Profound to the user, unintelligible to the uninitiated. > You discover truth everytime you use it. > -- reddy@lion.austin.ibm.com > > ___________________________________________________ > 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. > > ------------------------------------------------------- -- Matthias Welwarsky Fachschaft Informatik FH Darmstadt Email: matze@stud.fbi.fh-darmstadt.de "all software sucks equally, but some software is more equal" --Boundary-02=_4ruG9BnG3klNhgJ Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9Gur4ANO+fpRuZ2IRAvNAAJ4vBDafNh9XIVWnJmBtmgn81Pmg/wCglTAx 1DtSxe0wjf5UYz0VahqF7TU= =13Lz -----END PGP SIGNATURE----- --Boundary-02=_4ruG9BnG3klNhgJ-- ___________________________________________________ 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.