Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Link requiremen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 14 Topic 9382 of 10966
Post > Topic >>

Link requirements creep

by tgl@[EMAIL PROTECTED] (Tom Lane) May 17, 2008 at 05:40 PM

I was displeased to discover just now that in a standard RPM build of
PG 8.3, psql and the other basic client programs pull in libxml2 and
libxslt; this creates a package dependency that should not be there
by any stretch of the imagination.

The reason of course is that configure puts -lxml2 -lxslt into LIBS
and psql's Makefile unquestioningly links with that list.  Back in
the days of static linking, this didn't hurt because unreferenced
libraries didn't get pulled into the executable.  But it seems that
at least with Linux' linker, you get a reference to every shared
library mentioned in the link command.

One possible answer is to put these two libraries into a special
make variable, comparable to the way that libossp-uuid is being
handled, and use that variable only where wanted.  However this
seems to be a band-aid solution; we'll inevitably have the same
kind of problem again in future.

Another approach we could take is to allow configure to dump
everything into LIBS, and institute a policy that no executable
includes LIBS verbatim.  Instead every link command must do something
like libpq already does:
	$(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5
	  -lgssapi_krb5 -lgss -lssl -lsocket -lnsl -lresolv -lintl, $(LIBS))
to explicitly list the libraries this executable might need.
This seems a lot more fail-safe, but it'd probably take awhile
to get the filter lists right; and this doesn't seem like a route
to a readily back-patchable solution.

Thoughts, better ideas?

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 14 Posts in Topic:
Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-17 17:40:13 
Re: Link requirements creep
markokr@[EMAIL PROTECTED]  2008-05-18 01:04:40 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-17 20:19:35 
Re: Link requirements creep
andrew@[EMAIL PROTECTED]   2008-05-17 21:02:23 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-17 21:36:53 
Re: Link requirements creep
andrew@[EMAIL PROTECTED]   2008-05-18 17:50:30 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-18 22:42:35 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-19 20:48:29 
Re: Link requirements creep
andrew@[EMAIL PROTECTED]   2008-05-19 21:04:19 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-19 23:31:29 
Re: Link requirements creep
gsmith@[EMAIL PROTECTED]   2008-05-18 00:52:03 
Re: Link requirements creep
tgl@[EMAIL PROTECTED] (T  2008-05-18 00:59:50 
Re: Link requirements creep
Bjorn.Munch@[EMAIL PROTEC  2008-05-19 12:21:04 
Re: Link requirements creep
sfrost@[EMAIL PROTECTED]   2008-05-19 08:55:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 14:31:12 CST 2008.