Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 159569 - mysql-devel: missing dependency on openssl-devel
Summary: mysql-devel: missing dependency on openssl-devel
Alias: None
Product: Fedora
Classification: Fedora
Component: mysql
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tom Lane
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2005-06-04 18:09 UTC by Ville Skyttä
Modified: 2013-07-03 03:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-07-13 03:48:16 UTC

Attachments (Terms of Use)

Description Ville Skyttä 2005-06-04 18:09:47 UTC
"Requires: openssl-devel" should be added to mysql-devel, see for example
"mysql_config --libs".  Apps using this information will fail to build unless
they explicitly pull in openssl-devel even though they had nothing to do with
SSL -> should be fixed in mysql-devel instead.

OTOH I don't know if it's necessary to have the SSL and friends in the libs
returned by mysql_config in the first place.  If not, pruning them would be even
better than adding the dependency.

Comment 1 Tom Lane 2005-06-05 01:15:07 UTC
Hmm, I'm not sure about this.  I don't see any #include dependency in the headers mysql-devel installs, 
and so it doesn't seem like the openssl-devel files would be needed.  You'd certainly need, but 
that should be required by  Unless maybe you are trying to link statically?  What did you do 
exactly, and what failure did you see?

Comment 2 Ville Skyttä 2005-06-05 06:52:07 UTC
Tried to build the MySQL driver for Gnokii's smsd: mysql.lo
	$(LIBTOOL) --mode=link $(CC) -o mysql.lo \
	$(shell $(GLIBLDLIBS)) $(shell mysql_config --libs) \
	-export-dynamic -avoid-version -rpath ${libdir}/smsd

...which results in this failure unless I add an explicit build dependency on
openssl-devel (even though this app does not do anything with openssl itself):

gcc -shared  .libs/mysql.o  -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath
-Wl,/usr/lib64 -L/usr/lib64 /usr/lib64/ -L/usr/lib64/mysql
-lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,-soname -Wl,
-o .libs/
/usr/bin/ld: cannot find -lssl

Comment 3 Tom Lane 2005-06-05 15:34:53 UTC
Oh, duh, it fails because the base openssl package only contains and
not the symlink.  OK, I'll add the dependency in the next respin.  I
think trying to remove -lssl from the libs list would be too fragile --- it'd
fail in static links, for instance.

Note to self: check postgresql for same issue.

Comment 4 Tom Lane 2005-07-13 03:48:16 UTC
Fixed as of mysql-4.1.12-1.  Thanks for the report!

Note You need to log in before you can comment on or make changes to this bug.