Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2006 17:45:50 +0200
From:      guru@Sisis.de
To:        Yuan Jue <yuanjue02@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Good subversion GUI?
Message-ID:  <20060414154550.GA55073@rebelion.Sisis.de>
In-Reply-To: <200604131732.59982.yuanjue@yuanjue.net>
References:  <200603141143.43335.work@ashleymoran.me.uk> <200604131043.08867.yuanjue@yuanjue.net> <20060413073008.GA30410@rebelion.Sisis.de> <200604131732.59982.yuanjue@yuanjue.net>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, April 13, 2006 a las 05:32:59PM +0800, Yuan Jue escribió:

> > I've fetched the port into 6.0-REL...  There is during linking some how
> > the -lpthread missing:
> >
> > $ make
> > 	...
> > /bin/sh /usr/local/bin/libtool15 --silent --mode=link --tag=CXX c++ 
> > -Wnon-virtu al-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith
> > -Wwrite-strings -O2 -O2 -fno-strict-aliasing -pipe -fno-check-new
> > -fno-common -fexceptions    -o kdesvn -R /usr/local/lib -R /usr/X11R6/lib
> > -R /usr/X11R6/lib -R /usr/local/lib -L/usr/X 11R6/lib -L/usr/local/lib 
> > -L/usr/local/lib main.o kdesvn.o urldlg.o commandline .o -lkparts
> > -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -ljpeg  -L/usr
> > /X11R6/lib
> > /usr/X11R6/lib/libqt-mt.so: undefined reference to `pthread_cleanup_pop'
> > /usr/X11R6/lib/libqt-mt.so: undefined reference to `pthread_attr_destroy'
> > /usr/X11R6/lib/libqt-mt.so: undefined reference to `pthread_attr_init'
> > /usr/X11R6/lib/libqt-mt.so: undefined reference to `pthread_exit'
> > /usr/X11R6/lib/libqt-mt.so: undefined reference to `pthread_cancel'
> > 	...
> >
> > I've added it to 'LIBS' in the Makefile (which of course is dirty) but
> > then it linked.
> >
> > # make install gives:
> >
> > 	...
> > ===>   Running ldconfig
> > /sbin/ldconfig -m /usr/local/lib
> > ===>   Registering installation for kdesvn-0.8.1
> > pkg_create: read_plist: unknown command '@dirrmtry
> > share/icons/hicolor/128x128/actions' (package tools out of date?)
	...
> >
> > Stop in /usr/ports/devel/kdesvn_port.
> >
> > and it does not lauch from KDE's menue :-(
> > it raises a popup with Error - kdevsvn 'Could not find our part.'
> 
> Hi, Matthias
> 
> Thanks for your quick reply. I have change the port files in some place
> based on the information you provided. You can download it once more.
> Hope this time you can get it work :-)
> 
> If it still has something wrong, please let me know. Thanks

Hi Yuan,

The problem of -lpthread is still there and again I've just added
it to 'LIBS' in the Makefile:

LIBS = -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -ljpeg  -L/usr/X11R
6/lib -lpthread

Now the 'make install' does not complain anymore:

# make install
	...
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for kdesvn-0.8.1

But the kdesvn itself does not work. I've checked it with 'truss'
and it is some how missing its shared object libkdesvnpart.la and
libkdesvnpart.so. The libkdesvnpart.so gets installed in
/usr/local/lib/kde3/libkdesvnpart.so while the libkdesvnpart.la
is not installed at all. Launching kdesvn with truss shows where
it is missing the files:

$ truss -o /tmp/kdesvn.tr kdesvn
KCrash: Application 'kdesvn' crashing...
$ fgrep libkdesvnpart /tmp/kdesvn.tr
access("/home/guru/.kde/lib/kde3/libkdesvnpart.la",4) ERR#2 'No such file or directory'
access("/usr/local/lib/kde3/libkdesvnpart.la",4) ERR#2 'No such file or directory'
access("/home/guru/.kde/lib/libkdesvnpart.la",4) ERR#2 'No such file or directory'
access("/usr/local/lib/libkdesvnpart.la",4)      ERR#2 'No such file or directory'
$ 

I have copied the libkdesvnpart.la and libkdesvnpart.so to
/usr/local/lib/ by hand and then kdesvn starts fine:

$ truss -o /tmp/kdesvn.tr kdesvn
package version in svnqt missmatched release version!

kdesvn: Name: cFactory
kdesvn: New SvnActionsData()
kdesvn: New SvnActionsData() finished
kdesvn: SshAgent::querySshAgent(): ENTER
kdesvn: SshAgent::querySshAgent(): ssh-agent already exists
kdesvn: Appname = kdesvn
kdesvn: Destructor KdesvnFileListPrivate done
kdesvn: SshAgent::killSshAgent(): ENTER
$ fgrep libkdesvnpart /tmp/kdesvn.tr
access("/home/guru/.kde/lib/kde3/libkdesvnpart.la",4) ERR#2 'No such file or dir
ectory'
access("/usr/local/lib/kde3/libkdesvnpart.la",4) ERR#2 'No such file or director
y'
access("/home/guru/.kde/lib/libkdesvnpart.la",4) ERR#2 'No such file or director
y'
access("/usr/local/lib/libkdesvnpart.la",4)      = 0 (0x0)
stat("/usr/local/lib/libkdesvnpart.la",0xbfbfe250) = 0 (0x0)
open("/usr/local/lib/libkdesvnpart.la",0x0,0666) = 11 (0xb)
open("/usr/local/lib/.libs/libkdesvnpart.so",0x0,0100000000) ERR#2 'No such file
 or directory'
open("/usr/local/lib/libkdesvnpart.so",0x0,0100000000) = 11 (0xb)

	matthias




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060414154550.GA55073>