Opened 14 years ago

Closed 13 years ago

#3006 closed defect (fixed)

Makefile generated incorrectly, mythzmserver

Reported by: dhighley@… Owned by: paulh
Priority: minor Milestone: unknown
Component: mythzoneminder Version: head
Severity: low Keywords:
Cc: Ticket locked: no


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 14 years ago by anonymous

Still exists in 12659.

comment:2 Changed 13 years ago by anonymous

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 13 years ago by paulh

Component: mythtvmythzoneminder
Owner: changed from Isaac Richards to paulh
Severity: mediumlow

comment:4 Changed 13 years ago by Russell Bryant <russell@…>

To resolve this bug, the 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).

comment:5 Changed 13 years ago by paulh

Resolution: fixed
Status: newclosed

(In [13735]) Use 'mysql_config --libs' to add the correct search path and libs for using the mysqlclient library both in and in the standalone make file. Fixes #3006.

Note: See TracTickets for help on using tickets.