Re: My build, Solaris 10

Martin Allert <[email protected]>
Newsgroups gmane.comp.web.htdig.general
Message-ID <[email protected]>
	
			Hi Brodie,


On Thu, Jul 14, 2005 at 02:17:45PM -0500, Brodie, Kent wrote:

*snip*

> My *original* setup was:  Mailman 2.1.5, htdig 3.1.6, Solaris 10 (yes,
> 10), and gcc 3.3.2.
> 
> 
> For the most part, this worked.    I was able to generate the ht
> databases, index the archives, and search them.     The only issue I
> had when building htdig was to manually set the LD_RUN_PATH
> environment variable to "/usr/local/lib", which is where my c++
> libraries were.    That snippet of gold from the archives was dead
> on.   Without doing that, you get complaints about libstdc++.so.5 and
> such not being able to be found.

Honestly, I don't know much about Sol10, but on Sol8 & 9 there was a
command for configuring the runtime linkers path called crle
(configure runtime linker environment).

Its usage is quite self-explanatory. Just add /usr/local/lib to it, e.g.
(my sol7 development server)

[root@blop:~]> crle

Configuration file: /var/ld/ld.config  
  Default Library Path (ELF):   /usr/lib:/usr/local/lib:/opt/openssl/lib:/opt/openssl-0.9.7e/lib:/opt/mysql4/lib:/opt/openldap2/lib:/opt/oracle/client/8.1.7/lib:/opt/subversion/lib:/usr/local/pgsql/lib
  Trusted Directories (ELF):    /usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/opt/openssl/lib:/opt/openssl-0.9.7e/lib:/opt/mysql4/lib:/opt/openldap2/lib:/opt/oracle/client/8.1.7/lib:/opt/subversion/lib:/usr/local/pgsql/lib

and you are done.

> But, after it was all done, I had one issue that I could not get past,
> which was the nightly_htdig script (courtesy of mailman) kept blowing
> up and core dumping.    This script basically checks the lists for
> activity, and does a RUNDIG on the archives for the purpose of
> updating the indices.   It seemed to work, sort of, and generate
> results- but it would run for something like 15 minutes and then
> dump.   And the searchable stuff was quite tiny - only a handful of
> pages.

Did you analyze the core file with a debugger, e.g. gdb from sunfreeware.com?
If you have amounts of harddisc space, open the rundig script with vi,
look for the htdig command and add the following before the htdig call:

truss -wall -fall -eall -o <where the logfile should go> htdig -s -a -c ...

Then you will get some debugging output, which you can take a look at.
I don't know much about this dtrace thingie, so I prefer a housewife's iron 
over some unknown hi-tech utility ... :)

> Then, I was made aware of the beta build of htdig--   v3.2.0b6.   So,
> I grabbed that and started all over.
> 
> 
> NOTE TO ALL SOLARIS DUDES (or dudettes):  THIS WORKS.   While I was
> experiencing major problems with 3.1.6 on Solaris (including re-doing
> the compile a bazillion ways, including stuff like -with-rx, which
> seemed to make no difference), compiling, building, and installing
> ht://Dig 3.2.0b6 on Solaris 10 works out of the box.    And my nightly
> htdig run?   It only executes for something like 10 seconds.     Not
> 15 minutes.   And no crash.  Woohoo!

Just as some help, here ist my configure string:

LDFLAGS="-L/opt/openssl/lib -lssl -lcrypto" CPPFLAGS="-Wno-deprecated" CXXFLAGS="-Wno-deprecated" ./configure --prefix=/opt/htdig-3.1.6-ssl --with-config-dir=/opt/htdig-3.1.6-ssl/conf --with-database-dir=/opt/htdig-3.1.6-ssl/db/default --with-cgi-bin-dir=/opt/htdig-3.1.6-ssl/bin --with-image-dir=/opt/htdig-3.1.6-ssl/htdocs/images --with-search-dir=/opt/htdig-3.1.6-ssl/htdocs --with-image-url-prefix=/images --with-common-dir=/opt/htdig-3.1.6-ssl/common/default --with-rx

> Gcc I used was the package from sunfreeware.com and is the latest
> available.

[root@blop:/data/BUILD/htdig]> pkgparam SMCgcc VERSION
3.3.2

Yours,

Martin

-- 

--------------------------------------------------------
 arago AG, Institut fuer komplexes Datenmanagement
 Am Niddatal 3, 60488 Frankfurt/Main, [email protected]
 Tel. 069/405680, Fax 069/40568111, http://www.arago.de
--------------------------------------------------------
signature.asc (application/pgp-signature, 478 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (IRIX64)

iQEVAwUBQtdY7gjnTkWxJ3QvAQEOwwgApRtAghq516QUBxIvfcVMe10yQWfrf1nn
9DlxGJkkiUo9pE5xp93fKLzqa3MOmKX3nHB+sD9G4jdHAc/XgSBhkGSAytdfRutS
BXf4+w1u3SmGYBP2TJz6JbCwgMceD2ZAGluBesAcqASG8cfkUI0L6dpPFAnK9TNd
WBk87xtW+K8DgP8Pn3dj2CqzUollE2NJzgYUnRDqsu1/irpASiaJMAcsyyqepT1G
tlxhUcm0Efm/2q7gAUSQlTzhtnzmpVkGUo1KkryPcOzWQoC7nUOwqDnbKHQH351B
ULbRVdNsvjvNQpGjEm1pp0i3F0+mX98dAgOHMLGjqF+yR2Cn2c0ciQ==
=ueiY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.