Bug 159569 - mysql-devel: missing dependency on openssl-devel
mysql-devel: missing dependency on openssl-devel
Product: Fedora
Classification: Fedora
Component: mysql (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-06-04 14:09 EDT by Ville Skyttä
Modified: 2013-07-02 23:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-12 23:48:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2005-06-04 14:09:47 EDT
"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-04 21:15:07 EDT
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 libssl.so, but 
that should be required by libmysql.so.  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 02:52:07 EDT
Tried to build the MySQL driver for Gnokii's smsd:


libmysql.la: mysql.lo
	$(LIBTOOL) --mode=link $(CC) -o libmysql.la 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/libglib.so -L/usr/lib64/mysql
-lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,-soname -Wl,libmysql.so
-o .libs/libmysql.so
/usr/bin/ld: cannot find -lssl
Comment 3 Tom Lane 2005-06-05 11:34:53 EDT
Oh, duh, it fails because the base openssl package only contains libssl.so.N and
not the libssl.so 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-12 23:48:16 EDT
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.