Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124921

Summary: net-analyzer/barnyard-0.2.0-r2 fails to find postgresql library
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: TCL/TK Project <tcltk>
Status: RESOLVED FIXED    
Severity: major CC: arttuv69, esigra, patrick
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrizio Bassi 2006-03-04 02:30:01 UTC
checking /usr/include/mysql/mysql.h usability... yes
checking /usr/include/mysql/mysql.h presence... yes
checking for /usr/include/mysql/mysql.h... yes
checking for mysql_real_connect in -lmysqlclient... yes
checking for tclsh8.4... tclsh8.4
checking for the tcl version number... 8.4, patchlevel .11
checking /usr/include/libpq-fe.h usability... yes
checking /usr/include/libpq-fe.h presence... yes
checking for /usr/include/libpq-fe.h... yes
checking for PQsetdbLogin in -lpq... no


**********************************************
  ERROR: unable to find postgresql library
  checked in the following places
        /usr/lib
**********************************************


checking the logs:

configure:6752: checking for PQsetdbLogin in -lpq
configure:6782: i686-pc-linux-gnu-gcc -o conftest -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse
[cut]

/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltcl8.4${TCL_DBGX}
collect2: ld returned 1 exit status

a var problem so.
Comment 1 Patrizio Bassi 2006-03-04 09:24:10 UTC
jacub i think the description is a bit wrong, cause the postgresql lib is a synthom, but not the cause.

the problem is in tcl :)
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2006-03-31 14:58:33 UTC
This depends on /usr/lib/tclConfig.sh which uses wrong single quotes, double quotes are required to have the vars parsed, single quotes mean 'as-is'.
Comment 3 Patrizio Bassi 2006-03-31 23:34:08 UTC
i do agree, tcl/tk is really broken on gentoo with seveal packages fails with bash 3.1 too. (but i guess it's a bit unrelated)
Comment 4 Patrizio Bassi 2007-01-04 03:29:27 UTC
i switched to an amd64 arch and it's broken there too.
Comment 5 Arttu Valo 2009-03-20 16:01:09 UTC
Seems to be still broken on amd64 with current stable tcl 8.4.18, but compiled successfully after unmasking unstable tcl 8.5 versions available in portage (with both tcl 8.5.1 and 8.5.6 this worked).

Still, I don't know anything about this software, so I don't mark anything on bug #173467 (tcl 8.5 compatibility tracker) where barnyard is also mentioned.
Comment 6 Patrick Lauer gentoo-dev 2009-10-26 10:53:09 UTC
tcl 8.5 is stable, I can't reproduce the bug here. So I consider it fixed.