Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247460 - dev-tcltk/tcl-sql-20000114 does not respect CC, CFLAGS, LDFALGS and does it works?
Summary: dev-tcltk/tcl-sql-20000114 does not respect CC, CFLAGS, LDFALGS and does it w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 18:16 UTC by Peter Volkov (RETIRED)
Modified: 2010-12-15 20:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2008-11-18 18:16:29 UTC
During build of tcl-sql I found that it does not respect CC, CFLAGS, LDFLAGS:

>>> Compiling source in /var/tmp/portage/dev-tcltk/tcl-sql-20000114/work/tcl-sql ...
make
g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC  -Wall -o obj/sql-mysql.o sql-mysql.cc
g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC  -Wall -o obj/sql.o sql.cc
sql.cc: In function 'int fetchrowCmd(Tcl_Interp*, Sql_interface*, char*)':
sql.cc:105: warning: deprecated conversion from string constant to 'char*'
sql.cc: In function 'int SqlCmd(void*, Tcl_Interp*, int, const char**)':
sql.cc:128: warning: deprecated conversion from string constant to 'char*'
sql.cc:142: warning: deprecated conversion from string constant to 'char*'
sql.cc:161: warning: deprecated conversion from string constant to 'char*'
g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC  -Wall -o obj/sql-manager.o sql-manager.cc
g++ obj/sql-mysql.o obj/sql.o obj/sql-manager.o  -L/usr/lib/mysql -L/usr/local/mysql/lib -L/usr/lib -lmysqlclient -shared -lgcc -
o sql.so
>>> Source compiled.
>>> Test phase [not enabled]: dev-tcltk/tcl-sql-20000114

>>> Install tcl-sql-20000114 into /var/tmp/portage/dev-tcltk/tcl-sql-20000114/image/ category dev-tcltk
>>> Completed installing tcl-sql-20000114 into /var/tmp/portage/dev-tcltk/tcl-sql-20000114/image/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/tcl-sql/libtcl-sql.so
 * QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib/tcl-sql/libtcl-sql.so
./


After install there is /usr/share/doc/tcl-sql-20000114/sample.full.txt.bz2 I've tried to the first step but:

% package require sql
can't find package sql

So does it works? That's system with tcl/tk 8.5 installed.


Portage 2.2_rc14 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-openvz.git-35f41f1 i686)
=================================================================
System uname: Linux-2.6.26-openvz.git-35f41f1-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-glibc2.0
Timestamp of tree: Sun, 16 Nov 2008 21:32:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -mtune=i686 -march=pentium4 -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -mtune=i686 -march=pentium4 -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg ccache collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed,-O1,--hash-style=gnu,--sort-common"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X accessibility bzip2 cli cracklib crypt dri gnutls iconv isdnlog ldap linuxthreads-tls midi mudflap ncurses nls nptl nptlonly openmp pam pcap pcre perl pic pppd python qt3support readline reflection session spl ssl sysfs threads truetype unicode userlocales vhosts x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2010-12-15 20:13:00 UTC
 fixed all respects.