Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189181 - app-mobilephone/gnokii-0.6.18 build fails (ignores USE="-postgres -mysql")
Summary: app-mobilephone/gnokii-0.6.18 build fails (ignores USE="-postgres -mysql")
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 01:49 UTC by Jose daLuz
Modified: 2007-08-17 07:49 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 Jose daLuz 2007-08-17 01:49:09 UTC
Updating gnokii from 0.6.17 to 0.6.18, I hit this error:

ar cru .libs/libfile.a  file.o utils.o
x86_64-pc-linux-gnu-ranlib .libs/libfile.a
creating libfile.la
(cd .libs && rm -f libfile.la && ln -s ../libfile.la libfile.la)
pq.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
pq.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
pq.c: In function 'DB_Bye':
pq.c:48: error: 'connIn' undeclared (first use in this function)
pq.c:48: error: (Each undeclared identifier is reported only once
pq.c:48: error: for each function it appears in.)
pq.c:49: warning: implicit declaration of function 'PQfinish'
pq.c:51: error: 'connOut' undeclared (first use in this function)
pq.c: In function 'DB_ConnectInbox':
pq.c:58: error: 'connIn' undeclared (first use in this function)
pq.c:58: warning: implicit declaration of function 'PQsetdbLogin'
pq.c:66: warning: implicit declaration of function 'PQstatus'
pq.c:66: error: 'CONNECTION_BAD' undeclared (first use in this function)
pq.c:70: warning: implicit declaration of function 'PQerrorMessage'
pq.c:70: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:70: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c: In function 'DB_ConnectOutbox':
pq.c:83: error: 'connOut' undeclared (first use in this function)
pq.c:91: error: 'CONNECTION_BAD' undeclared (first use in this function)
pq.c:95: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:95: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c: In function 'DB_InsertSMS':
pq.c:110: error: 'PGresult' undeclared (first use in this function)
pq.c:110: error: 'res' undeclared (first use in this function)
pq.c:134: warning: implicit declaration of function 'PQexec'
pq.c:134: error: 'connIn' undeclared (first use in this function)
pq.c:136: warning: implicit declaration of function 'PQresultStatus'
pq.c:136: error: 'PGRES_COMMAND_OK' undeclared (first use in this function)
pq.c:139: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:139: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:140: warning: implicit declaration of function 'PQclear'
pq.c: In function 'DB_Look':
pq.c:153: error: 'PGresult' undeclared (first use in this function)
pq.c:153: error: 'res1' undeclared (first use in this function)
pq.c:153: error: 'res2' undeclared (first use in this function)
pq.c:153: warning: left-hand operand of comma expression has no effect
pq.c:167: error: 'connOut' undeclared (first use in this function)
pq.c:177: error: 'PGRES_TUPLES_OK' undeclared (first use in this function)
pq.c:180: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:180: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:188: warning: implicit declaration of function 'PQntuples'
pq.c:194: warning: implicit declaration of function 'PQgetvalue'
pq.c:194: warning: passing argument 1 of 'atoi' makes pointer from integer without a cast
pq.c:196: warning: passing argument 2 of '__builtin_strncpy' makes pointer from integer without a cast
pq.c:203: warning: passing argument 2 of '__builtin_strncpy' makes pointer from integer without a cast
pq.c:223: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
pq.c:226: error: 'PGRES_COMMAND_OK' undeclared (first use in this function)
pq.c:229: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
pq.c:229: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
make: *** [pq.lo] Error 1
make: *** Waiting for unfinished jobs....
mysql.c:36:19: error: mysql.h: No such file or directory
mysql.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysqlIn'
mysql.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysqlOut'
mysql.c: In function 'DB_Bye':
mysql.c:47: warning: implicit declaration of function 'mysql_close'
mysql.c:47: error: 'mysqlIn' undeclared (first use in this function)
mysql.c:47: error: (Each undeclared identifier is reported only once
mysql.c:47: error: for each function it appears in.)
mysql.c:48: error: 'mysqlOut' undeclared (first use in this function)
mysql.c: In function 'DB_ConnectInbox':
mysql.c:58: warning: implicit declaration of function 'mysql_init'
mysql.c:58: error: 'mysqlIn' undeclared (first use in this function)
mysql.c:62: warning: implicit declaration of function 'mysql_real_connect'
mysql.c:70: warning: implicit declaration of function 'mysql_error'
mysql.c:70: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:70: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c: In function 'DB_ConnectOutbox':
mysql.c:84: error: 'mysqlOut' undeclared (first use in this function)
mysql.c:96: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:96: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c: In function 'DB_InsertSMS':
mysql.c:108: error: 'MYSQL_RES' undeclared (first use in this function)
mysql.c:108: error: 'res' undeclared (first use in this function)
mysql.c:109: error: 'MYSQL_ROW' undeclared (first use in this function)
mysql.c:109: error: expected ';' before 'row'
mysql.c:123: warning: implicit declaration of function 'mysql_real_escape_string'
mysql.c:123: error: 'mysqlIn' undeclared (first use in this function)
mysql.c:138: warning: implicit declaration of function 'mysql_real_query'
mysql.c:146: warning: implicit declaration of function 'mysql_store_result'
mysql.c:147: error: 'row' undeclared (first use in this function)
mysql.c:147: warning: implicit declaration of function 'mysql_fetch_row'
mysql.c:182: error: 'mysqlOut' undeclared (first use in this function)
mysql.c:246: warning: implicit declaration of function 'mysql_free_result'
mysql.c: In function 'DB_Look':
mysql.c:307: error: 'MYSQL_RES' undeclared (first use in this function)
mysql.c:307: error: 'res1' undeclared (first use in this function)
mysql.c:308: error: 'MYSQL_ROW' undeclared (first use in this function)
mysql.c:308: error: expected ';' before 'row'
mysql.c:326: error: 'mysqlOut' undeclared (first use in this function)
mysql.c:329: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:329: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:337: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:337: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:342: error: 'row' undeclared (first use in this function)
mysql.c:388: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
mysql.c:388: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
make: *** [mysql.lo] Error 1

!!! ERROR in app-mobilephone/gnokii-0.6.18:

Note that I do not have the mysql USE flag set nor do I have mysql installed.
Comment 1 Jose daLuz 2007-08-17 01:49:36 UTC
Portage 2.1.3.6 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-ck1 x86_64)
=================================================================
System uname: 2.6.22-ck1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Gentoo Base System release 2.0.0_rc2
Timestamp of tree: Fri, 17 Aug 2007 00:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --verbose --nospinner"
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/xeffects /usr/portage/local/layman/vmware /usr/local/overlays/myoverlay"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdda cdr cli cracklib crypt css cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility kerberos ldap libnotify mad midi mikmod mmx mono mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png pppd python qt3support qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2007-08-17 07:49:30 UTC
Fixed in -r1. Thanks!

Note: You must have sms useflag enabled, otherwise it wouldn't matter what database support you have selected.