Subject: Re: building libqssl?
To: NetBSD Users <netbsd-users@netbsd.org>
From: Miroslav Urbanek <m.urbanek@sh.cvut.cz>
List: netbsd-users
Date: 03/12/2003 21:03:45
Hi,
it is not very nice, but it works:

etc:~/download/qssl-1.0> setenv QTDIR /usr/X11R6/qt3
etc:~/download/qssl-1.0> /usr/X11R6/qt3/bin/qmake qssl.pro
etc:~/download/qssl-1.0> gmake

[... cut ...]

libtool --mode=link c++ -Wl,-R/usr/X11R6/qt3/lib -Wl,-R/usr/X11R6/lib
-L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/qt3/lib
-o  libqssl.la  -module -avoid-version qssl.lo moc_qssl.lo moc_qssl_p.lo
-L/usr/pkg/lib -L/usr/X11R6/qt3/lib -lssl  -lpthread -rpath  
libtool: link: the `-rpath' option requires an argument
Try `libtool --help --mode=link' for more information.
gmake: *** [libqssl.so] Error 1

[ here i copyed the unsuccessful command and made some modifications ]
[ added: -shared -lcrypto, deleted: -rpath, changed: libqssl.la to   ]
[ libqssl.so                                                         ]

etc:~/download/qssl-1.0> libtool --mode=link c++ -shared
-Wl,-R/usr/X11R6/qt3/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/qt3/lib -o  libqssl.so
-module -avoid-version qssl.lo moc_qssl.lo moc_qssl_p.lo  -L/usr/pkg/lib
-L/usr/X11R6/qt3/lib -lssl -lcrypto -lpthread

etc:~/download/qssl-1.0> ll libqssl.so 
-rwxr-xr-x  1 radar  radar  93069 Mar 12 21:02 libqssl.so*
etc:~/download/qssl-1.0> cp libqssl.so ~/.psi/

-- Radar


On Wed, Mar 12, 2003 at 01:26:54PM -0500, Steve Bellovin wrote:
> Does anyone know enough of the qt development environment to tell me 
> how to build qssl?  The instructions say 'use qmake', then 'make', and 
> if it doesn't work there's a problem with your qt development 
> environment.  Well, I found qt (in /usr/X11R6/qt3/bi), and figured out 
> that I had to set QMAKESPEC, but now it can't find assorted include 
> files.  Is there some magic option I should give it to make it generate 
> -I/usr/X11R6/qt3/include?  (Plus, of course, whatever I run into next?)
> 
> I could step back, I suppose, and state that my real goal is to build 
> 'psi' (which is in pkgsrc) with SSL support.  This is the sort of 
> annoyance that makes you really appreciate the effort so many people 
> have put into the package system...
> 
> 
> 
> 		--Steve Bellovin, http://www.research.att.com/~smb (me)
> 		http://www.wilyhacker.com (2nd edition of "Firewalls" book)
>