Opened 18 years ago
Closed 18 years ago
#3006 closed defect (fixed)
Makefile generated incorrectly, mythzmserver
Reported by: | Owned by: | paulh | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythzoneminder | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
Running svnversion 12657M on a Fedora core 6 x86_64 system. Needed to change LIBS line in the file: mythplugins/mythzoneminder/mythzmserver/Makefile was: LIBS = $(SUBLIBS) -L/usr/kde/3.3/lib -lmysqlclient -L/usr/local/lib/mysql to: LIBS = $(SUBLIBS) -L/usr/lib64/mysql -lmysqlclient
Change History (5)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
This is not exclusive to FC6 or 64-bit OS. The same occurs on 32 bit FC5: make[2]: Entering directory `/usr/local/src/mythtv-svn/mythplugins/mythzoneminder/mythzmserver' g++ -o mythzmserver main.o zmserver.o -L/usr/kde/3.3/lib -lmysqlclient -L/usr/local/lib/mysql /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make[2]: * [mythzmserver] Error 1 make[2]: Leaving directory `/usr/local/src/mythtv-svn/mythplugins/mythzoneminder/mythzmserver' make[1]: * [sub-mythzmserver] Error 2 make[1]: Leaving directory `/usr/local/src/mythtv-svn/mythplugins/mythzoneminder' make: * [sub-mythzoneminder] Error 2
I checked out revision 13018 this morning and had the same error. I have no particular need for ZM, so I used ./configure --disable-mythzoneminder
MySQL was installed from RPM and is version 5.0.27. mysql-devel is also installed via RPM.
comment:3 Changed 18 years ago by
Component: | mythtv → mythzoneminder |
---|---|
Owner: | changed from Isaac Richards to paulh |
Severity: | medium → low |
comment:4 Changed 18 years ago by
To resolve this bug, the mythzmserver.pro file should set the LIBS variable to the output of "mysql_config --libs". However, I'm not sure how to do that in a qmake project file.
The equivalent for a regular GNU make Makefile would be: $(shell mysql_config --libs).
Still exists in 12659.