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

Bug 343221

Summary: app-forensics/aide fails with certain use combos
Product: Gentoo Linux Reporter: Andreas Schürch <nativemad>
Component: Current packagesAssignee: Forensics Herd [disbanded] <forensics+obsolete>
Status: RESOLVED FIXED    
Severity: normal CC: itumaykin+gentoo, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Schürch gentoo-dev 2010-10-29 07:50:30 UTC
Aide fails to build with certain useflag combinations.
They are "static postgres" as well as "mhash postgres". 
It happens with app-forensics/aide-0.13.1-r3, aide-0.13.1-r5 and aide-0.14.2 (which also fails with USE="curl static")

mhash & postgres:
------------------------ 
i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I../include   -O2 -march=i686 -pipe -fomit-frame-pointer    -O2 -march=i686 -pipe -fomit-frame-pointer   -MT aide.o -MD -MP -MF .deps/aide.Tpo -c -o aide.o aide.c                                                              
mv -f .deps/aide.Tpo .deps/aide.Po                                                                                                                       
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -fomit-frame-pointer    -O2 -march=i686 -pipe -fomit-frame-pointer   -Wl,-O1 -Wl,--as-needed -lcurl   -Wl,-O1 -Wl,--as-needed -lcurl  -o aide conf_yacc.o conf_lex2.o getopt.o getopt1.o gnu_regex.o error.o md.o db.o commandconf.o db_file.o db_disk.o db_lex2.o db_sql.o gen_list.o list.o do_md.o base64.o symboltable.o compare_db.o be.o util.o snprintf.o fopen.o aide.o -lm  -lmhash -lacl    -lpq -lcrypt -lz         
db_sql.o: In function `db_get_sql':                                                                                                                      
db_sql.c:(.text+0x4c0): undefined reference to `gcry_md_get_algo_dlen'                                                                                   
db_sql.c:(.text+0x4e8): undefined reference to `gcry_md_get_algo_dlen'                                                                                   
db_sql.c:(.text+0x510): undefined reference to `gcry_md_get_algo_dlen'                                                                                   
db_sql.c:(.text+0x538): undefined reference to `gcry_md_get_algo_dlen'                                                                                   
fopen.o: In function `url_rewind':                                                                                                                       
fopen.c:(.text+0x40): undefined reference to `curl_multi_remove_handle'                                                                                  
fopen.c:(.text+0x54): undefined reference to `curl_multi_add_handle'                                                                                     
fopen.o: In function `fill_buffer':                                                                                                                      
fopen.c:(.text+0x140): undefined reference to `curl_multi_fdset'                                                                                         
fopen.c:(.text+0x195): undefined reference to `curl_multi_perform'                                                                                       
fopen.o: In function `url_fclose':                                                                                                                       
fopen.c:(.text+0x56a): undefined reference to `curl_multi_remove_handle'                                                                                 
fopen.c:(.text+0x575): undefined reference to `curl_easy_cleanup'                                                                                        
fopen.o: In function `url_fopen':                                                                                                                        
fopen.c:(.text+0x600): undefined reference to `curl_easy_init'                                                                                           
fopen.c:(.text+0x617): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x632): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x64d): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x668): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x687): undefined reference to `curl_multi_add_handle'                                                                                    
fopen.c:(.text+0x69d): undefined reference to `curl_multi_perform'                                                                                       
fopen.c:(.text+0x6ce): undefined reference to `curl_multi_remove_handle'                                                                                 
fopen.c:(.text+0x6d9): undefined reference to `curl_easy_cleanup'                                                                                        
fopen.c:(.text+0x6f7): undefined reference to `curl_easy_init'                                                                                           
fopen.c:(.text+0x70e): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x725): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x740): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x75b): undefined reference to `curl_easy_setopt'                                                                                         
fopen.c:(.text+0x776): undefined reference to `curl_multi_add_handle'                                                                                    
fopen.c:(.text+0x78d): undefined reference to `curl_multi_perform'                                                                                       
fopen.c:(.text+0x7a1): undefined reference to `curl_multi_init'                                                                                          
fopen.c:(.text+0x7b0): undefined reference to `curl_multi_init'                                                                                          
collect2: ld returned 1 exit status                                                                                                                      
make[2]: *** [aide] Error 1                                                                                                                              
make[2]: Leaving directory `/var/tmp/portage/app-forensics/aide-0.13.1-r3/work/aide-0.13.1/src'                                                          
make[1]: *** [all-recursive] Error 1                                                                                                                     
make[1]: Leaving directory `/var/tmp/portage/app-forensics/aide-0.13.1-r3/work/aide-0.13.1'                                                              
make: *** [all] Error 2                                                                                                                                  
 * ERROR: app-forensics/aide-0.13.1-r3 failed:    


static & postgres:
-------------------
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../libacl.a(__acl_to_any_text.o): In function `__acl_to_any_text':                                            
(.text+0x4c0): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking                                                                                                                                                       
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../libacl.a(__acl_to_any_text.o): In function `__acl_to_any_text':                                            
(.text+0x6f7): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking                                                                                                                                                       
db_sql.o: In function `db_close_sql':                                                                                                                    
db_sql.c:(.text+0x16): undefined reference to `PQexec'                                                                                                   
db_sql.c:(.text+0x20): undefined reference to `PQfinish'                                                                                                 
db_sql.o: In function `db_readline_sql_int':                                                                                                             
db_sql.c:(.text+0x76d): undefined reference to `PQgetvalue'                                                                                              
db_sql.o: In function `db_readline_sql_char':                                                                                                            
db_sql.c:(.text+0x7dd): undefined reference to `PQgetvalue'                                                                                              
db_sql.o: In function `_db_check_result':                                                                                                                
db_sql.c:(.text+0xc0b): undefined reference to `PQresultStatus'                                                                                          
db_sql.c:(.text+0xc18): undefined reference to `PQresultStatus'                                                                                          
db_sql.c:(.text+0xc2a): undefined reference to `PQerrorMessage'                                                                                          
db_sql.o: In function `db_writeline_sql':                                                                                                                
db_sql.c:(.text+0xd07): undefined reference to `PQexec'                                                                                                  
db_sql.c:(.text+0xd2b): undefined reference to `PQclear'                                                                                                 
db_sql.o: In function `db_writespec_sql':                                                                                                                
db_sql.c:(.text+0xda2): undefined reference to `PQexec'                                                                                                  
db_sql.c:(.text+0xdce): undefined reference to `PQntuples'                                                                                               
db_sql.c:(.text+0xdde): undefined reference to `PQclear'                                                                                                 
db_sql.c:(.text+0xf07): undefined reference to `PQexec'                                                                                                  
db_sql.c:(.text+0xf30): undefined reference to `PQclear'                                                                                                 
be.o: In function `be_sql_readinit':                                                                                                                     
be.c:(.text+0x114): undefined reference to `PQexec'                                                                                                      
be.c:(.text+0x127): undefined reference to `PQresultStatus'                                                                                              
be.c:(.text+0x13b): undefined reference to `PQclear'                                                                                                     
be.c:(.text+0x14d): undefined reference to `PQexec'                                                                                                      
be.c:(.text+0x160): undefined reference to `PQresultStatus'                                                                                              
be.c:(.text+0x174): undefined reference to `PQnfields'                                                                                                   
be.c:(.text+0x18e): undefined reference to `PQfname'                                                                                                     
be.c:(.text+0x1da): undefined reference to `PQfnumber'                                                                                                   
be.c:(.text+0x223): undefined reference to `PQntuples'                                                                                                   
be.c:(.text+0x265): undefined reference to `PQresultStatus'                                                                                              
be.c:(.text+0x26d): undefined reference to `PQresStatus'                                                                                                 
be.c:(.text+0x290): undefined reference to `PQclear'                                                                                                     
be.c:(.text+0x2b4): undefined reference to `PQclear'                                                                                                     
be.o: In function `be_init':                                                                                                                             
be.c:(.text+0x49c): undefined reference to `PQsetdbLogin'                                                                                                
be.c:(.text+0x4a6): undefined reference to `PQstatus'                                                                                                    
be.c:(.text+0x4cf): undefined reference to `PQexec'                                                                                                      
be.c:(.text+0x4de): undefined reference to `PQresultStatus'                                                                                              
be.c:(.text+0x506): undefined reference to `PQclear'                                                                                                     
be.c:(.text+0x8ef): undefined reference to `PQclear'                                                                                                     
collect2: ld returned 1 exit status                                                                                                                      
make[2]: *** [aide] Error 1                                                                                                                              
make[2]: Leaving directory `/var/tmp/portage/app-forensics/aide-0.13.1-r3/work/aide-0.13.1/src'                                                          
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-forensics/aide-0.13.1-r3/work/aide-0.13.1'
make: *** [all] Error 2
 * ERROR: app-forensics/aide-0.13.1-r3 failed:




curl & static on aide-0.14.2:
----------
checking for deflate in -lz... yes                                                                                                                       
checking for curl-config... /usr/bin/curl-config                                                                                                         
checking curl/curl.h usability... yes                                                                                                                    
checking curl/curl.h presence... yes                                                                                                                     
checking for curl/curl.h... yes                                                                                                                          
checking for curl_easy_init in -lcurl... no                                                                                                              
configure: error: You don't have curl properly installed. Install it or try --without-curl.
Comment 1 Wormo (RETIRED) gentoo-dev 2010-10-29 22:38:00 UTC
Please post 'emerge --info' output in case it is helpful in reproducing these failures.
Comment 2 Andreas Schürch gentoo-dev 2010-10-30 13:12:06 UTC
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-QEMU_Virtual_CPU_version_0.12.5-with-gentoo-1.12.13
Timestamp of tree: Fri, 29 Oct 2010 15:55:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1                                                                                                                                                         
sys-devel/libtool:   2.2.10                                                                                                                                                         
sys-devel/make:      3.81-r2                                                                                                                                                        
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collusion-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 assistant berkdb bzip2 cairo cli cracklib crypt cups curl cxx dbus dri extras fortran ftp gdbm gpm iconv imap ipv6 kde modules mudflap mysql ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl png policykit pppd python qt3support qt4 readline session spell sql sqlite ssl svg sysfs tcpd tiff unicode webkit 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2010-11-03 02:31:19 UTC
fixed in cvs.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2010-11-20 08:29:31 UTC
Hi, sorry for hijacking this bug.  I think it would be better to not intentionally fail on any USE combination.  It makes all sorts of automated building and testing more tedious. See here (under 'conflicting USE flags' ) for explanation:

http://devmanual.gentoo.org/general-concepts/use-flags/index.html

Suggestion: For each failing combination chose a sane default, build with this default and inform user via elog.  This is an enhancement and does not block stable anymore.

Thanks!
Comment 5 Coacher 2017-05-28 17:02:23 UTC
(In reply to Thomas Kahle (RETIRED) from comment #4)
> Suggestion: For each failing combination chose a sane default, build with
> this default and inform user via elog.  This is an enhancement and does not
> block stable anymore.
No. Upstream should fix their problems.
Conflicting USE flags are restricted for a very long time.