#374 missing -lpq in compile link line

3.1.0
closed-fixed
Player (2)
5
2014-02-16
2013-11-22
Kurt
No

After getting the following errors during my make of Player:

Linking CXX executable player
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQresultErrorMessage' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQstatus'
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQsetdbLogin' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQgetvalue'
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQbinaryTuples' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQclear'
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQgetlength' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQntuples'
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQexecParams' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQfinish'
libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference to PQexec' libplayerdrivers/libplayerdrivers.so.3.0.2: undefined reference toPQresultStatus'
collect2: ld returned 1 exit status
make[2]: [server/player] Error 1
make[1]:
[server/CMakeFiles/player.dir/all] Error 2
make: *** [all] Error 2

I found this solution: http://stackoverflow.com/questions/19311868/can-not-compile-test-postgresql-program

I appears that you may be missing the -lpq somewhere in your link command line.

I inserted it into the build/server/libplayerdrivers/CMakeFiles/playerdrivers.dir/links.txt file and the compile completed successfully without error.

Thanks,
Kurt Leucht (Player/Stage user for just a few months now)

Discussion

  • Rich Mattes

    Rich Mattes - 2014-02-16
    • labels: --> Player
    • status: open --> closed-fixed
    • assigned_to: Rich Mattes
    • Group: trunk --> 3.1.0
     
  • Rich Mattes

    Rich Mattes - 2014-02-16

    Thanks for the report. It looks like this issue is already fixed in the SVN version of Player (there's an explicit -lpq now where there wasn't in version 3.0.2.) I'm going to close this report, if you still have issues building the latest version of Player (from SVN or the next release) please re-open or file a new report.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks