Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Problem compiling shash-"Cannot find a 32 bit int…"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ichor
n00b
n00b


Joined: 23 Nov 2014
Posts: 3

PostPosted: Sun Nov 23, 2014 11:49 am    Post subject: [Solved] Problem compiling shash-"Cannot find a 32 bit Reply with quote

Hi all!

I am having problems emerging app-crypt/shash-0.2.6-r2. I have app-crypt/shash-0.2.6-r1 installed, but trying to reemerge this version also fails. It seems to be a linking problem, as it complains that it cannot find types such as "word32".

So far I have tried recompiling gcc and glibc, but it changed nothing.

What could be broken here? This problem showed up while trying to updating my system, but other packages updated fine (nmap, qemu and a few others)

- Ichor


Code:
>>> Emerging (1 of 1) app-crypt/shash-0.2.6-r2
 * shash-0.2.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...               [ ok ]
>>> Unpacking source...
>>> Unpacking shash-0.2.6.tar.gz to /tmp/portage/portage/app-crypt/shash-0.2.6-r2/work
>>> Source unpacked in /tmp/portage/portage/app-crypt/shash-0.2.6-r2/work
>>> Preparing source in /tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ...
 * Applying 0.2.6-manpage-fixes.patch ...
 [ ok ]
 * Applying shash-0.2.6-binary-files.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ...
 * econf: updating shash-0.2.6/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating shash-0.2.6/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-static-link
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6/missing: Unknown `--run' option
Try `/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for mhash_keygen in -lmhash... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for rm... /bin/rm
checking for makeinfo... /usr/bin/makeinfo
checking for pthread_mutex_lock in -lpthread... yes
checking whether use of /dev/random is requested... yes
checking whether fcntl-locking is requested... yes
checking whether static link is requested... no
checking for random device... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for strings.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for bzero... yes
checking for signal... yes
checking for sigaction... yes
checking for memset... yes
checking for fcntl... yes
checking for fsync... yes
checking for getuid... yes
checking for geteuid... yes
checking for ftime... yes
checking for lstat... yes
checking for stat... yes
checking for umask... yes
checking for utime... yes
checking for memmove... yes
checking for bcopy... yes
checking for getpwuid... yes
checking for waitpid... yes
checking for mlock... yes
checking whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for unsigned long int... yes
checking size of unsigned long int... 8
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned short int... yes
checking size of unsigned short int... 2
checking for unsigned char... yes
checking size of unsigned char... 1
configure: creating ./config.status
uniq: confdefs.h: No such file or directory
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ...
make -j3
make  all-recursive
make[1]: Entering directory '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'
Making all in src
make[2]: Entering directory '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=core2 -O2 -pipe -Wall -Wpointer-arith -c `test -f 'shash.c' || echo './'`shash.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=core2 -O2 -pipe -Wall -Wpointer-arith -c `test -f 'errors.c' || echo './'`errors.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=core2 -O2 -pipe -Wall -Wpointer-arith -c `test -f 'extra.c' || echo './'`extra.c
In file included from extra.c:1:0:
./defines.h:60:3: error: #error "Cannot find a 32 bit integer in your system, sorry."
./defines.h:68:3: error: #error "Cannot find a 16 bit integer in your system, sorry."
./defines.h:74:3: error: #error "Cannot find an 8 bit char in your system, sorry."
./defines.h:81:4: error: #error "Neither memmove nor bcopy exists on your system."
Makefile:182: recipe for target 'extra.o' failed
make[2]: *** [extra.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from errors.c:1:0:
./defines.h:60:3: error: #error "Cannot find a 32 bit integer in your system, sorry."
./defines.h:68:3: error: #error "Cannot find a 16 bit integer in your system, sorry."
./defines.h:74:3: error: #error "Cannot find an 8 bit char in your system, sorry."
./defines.h:81:4: error: #error "Neither memmove nor bcopy exists on your system."
errors.c: In function ‘err_quit’:
errors.c:7:2: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
errors.c:7:2: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
errors.c:7:10: error: ‘stderr’ undeclared (first use in this function)
errors.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
errors.c:8:2: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
errors.c:8:2: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
errors.c: In function ‘err_warn’:
errors.c:15:3: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
errors.c:15:11: error: ‘stderr’ undeclared (first use in this function)
errors.c: In function ‘err_crit’:
errors.c:23:3: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
errors.c:23:11: error: ‘stderr’ undeclared (first use in this function)
In file included from shash.c:21:0:
./defines.h:60:3: error: #error "Cannot find a 32 bit integer in your system, sorry."
./defines.h:68:3: error: #error "Cannot find a 16 bit integer in your system, sorry."
./defines.h:74:3: error: #error "Cannot find an 8 bit char in your system, sorry."
./defines.h:81:4: error: #error "Neither memmove nor bcopy exists on your system."
Makefile:182: recipe for target 'errors.o' failed
make[2]: *** [errors.o] Error 1
shash.c:42:1: error: unknown type name ‘word32’
shash.c: In function ‘main’:
shash.c:62:2: error: unknown type name ‘word32’
shash.c:142:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c:198:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c:199:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c:220:5: warning: implicit declaration of function ‘get_rand32’ [-Wimplicit-function-declaration]
shash.c:57:35: warning: variable ‘use_password’ set but not used [-Wunused-but-set-variable]
shash.c:57:28: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
shash.c: In function ‘check_algo’:
shash.c:275:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c: In function ‘hash_list’:
shash.c:494:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c: In function ‘checkfile’:
shash.c:680:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c:699:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c:509:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
shash.c: In function ‘hash_version’:
shash.c:738:56: error: ‘T_CPU’ undeclared (first use in this function)
shash.c:738:56: note: each undeclared identifier is reported only once for each function it appears in
shash.c:739:3: error: ‘T_VENDOR’ undeclared (first use in this function)
shash.c:739:13: error: ‘T_OS’ undeclared (first use in this function)
shash.c: In function ‘list_keygen_algorithms’:
shash.c:803:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c: In function ‘keygen_algorithm_is_ok’:
shash.c:815:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c: In function ‘pass2key’:
shash.c:897:7: error: ‘word8’ undeclared (first use in this function)
shash.c:897:14: error: expected expression before ‘)’ token
shash.c:897:14: error: too few arguments to function ‘mhash_keygen’
In file included from /usr/include/mhash.h:10:0,
                 from shash.c:22:
/usr/include/mutils/mhash.h:100:14: note: declared here
shash.c:919:14: error: expected expression before ‘)’ token
shash.c:919:14: error: too few arguments to function ‘mhash_keygen’
In file included from /usr/include/mhash.h:10:0,
                 from shash.c:22:
/usr/include/mutils/mhash.h:100:14: note: declared here
shash.c: In function ‘find_keygen_algorithm’:
shash.c:935:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
shash.c: In function ‘checkfile’:
shash.c:559:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
Makefile:182: recipe for target 'shash.o' failed
make[2]: *** [shash.o] Error 1
make[2]: Leaving directory '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6/src'
Makefile:149: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'
Makefile:105: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-crypt/shash-0.2.6-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-crypt/shash-0.2.6-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-crypt/shash-0.2.6-r2::gentoo'`.
 * The complete build log is located at '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/temp/environment'.
 * Working directory: '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'
 * S: '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'

>>> Failed to emerge app-crypt/shash-0.2.6-r2, Log file:

>>>  '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/temp/build.log'
 * Messages for package app-crypt/shash-0.2.6-r2:
 * ERROR: app-crypt/shash-0.2.6-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-crypt/shash-0.2.6-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-crypt/shash-0.2.6-r2::gentoo'`.
 * The complete build log is located at '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/temp/environment'.
 * Working directory: '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'
 * S: '/tmp/portage/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6'


And the output of emerge --info '=app-crypt/shash-0.2.6-r2::gentoo':

Code:

ortage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.19-r1, 3.10.17-gentooxen x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.17-gentooxen-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.2
KiB Mem:     6111692 total,    652972 free
KiB Swap:    4194300 total,   4161628 free
Timestamp of tree: Sun, 23 Nov 2014 01:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ ftp://mirror.mdfnet.se/gentoo http://mirror.mdfnet.se/gentoo"
LANG="nb_NO.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/portage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cgi cli cracklib crypt custom-cflags cxx dovecot-sasl dri encode fastcgi ffmpeg flac fortran gdbm gpg highlight http hvm iconv id3tag imap ipv6 jack lame mad mmx modules mp3 mpeg mpg123 multilib ncurses network nls nptl offensive ogg openmp otr pam pcap pcre png python qemu readline sasl screen session shout sse sse2 ssh ssl stream streamout tcpd theora threads unicode vim-syntax vorbis zlib zsh zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-crypt/shash-0.2.6-r1 was built with the following:
USE="-bash-completion -static" ABI_X86="64"


Last edited by ichor on Mon Dec 01, 2014 11:51 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Sun Nov 23, 2014 4:08 pm    Post subject: Reply with quote

Please pastebin your config.h so that we can see what was actually detected, rather than the configure messages. Usually, these should be the same, but it seems they are not for you. To make it easier for people without shash to help you, you could also pastebin defines.h and the output of x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=core2 -O2 -pipe -Wall -Wpointer-arith -E `test -f 'extra.c' || echo './'`extra.c.
Back to top
View user's profile Send private message
ichor
n00b
n00b


Joined: 23 Nov 2014
Posts: 3

PostPosted: Sun Nov 23, 2014 7:15 pm    Post subject: Reply with quote

Here are the outputs.

config.h:

Code:
/* config.h.  Generated by configure.  */
/* config.h.in.  Generated from configure.in by autoheader.  */
/* and the real names of the random devices */
/* #undef NAME_OF_DEV_RANDOM */
/* #undef NAME_OF_DEV_URANDOM */
/* #undef HAVE_DEV_RANDOM */

/* #undef PACKAGE */
/* #undef VERSION */

/* #undef T_CPU */
/* #undef T_VENDOR */
/* #undef T_OS */

/* #undef GZIP */
/* #undef BZIP2 */

/* #undef NO_FCNTL_LOCK */
/* #undef NON_FREE */
/* #undef ENABLE_NLS */
/* #undef HAVE_CATGETS */


/* #undef HAVE_GETTEXT */
/* #undef HAVE_LC_MESSAGES */
/* #undef HAVE_STPCPY */
/* #undef REQUEST_CAPABILITIES */

/* Define to 1 if you have the `bcopy' function. */
/* #undef HAVE_BCOPY */

/* Define to 1 if you have the `bzero' function. */
/* #undef HAVE_BZERO */

/* Define to 1 if you have the <ctype.h> header file. */
/* #undef HAVE_CTYPE_H */

/* Define to 1 if you have the `fcntl' function. */
/* #undef HAVE_FCNTL */

/* Define to 1 if you have the <fcntl.h> header file. */
/* #undef HAVE_FCNTL_H */

/* Define to 1 if you have the `fsync' function. */
/* #undef HAVE_FSYNC */

/* Define to 1 if you have the `ftime' function. */
/* #undef HAVE_FTIME */

/* Define to 1 if you have the `geteuid' function. */
/* #undef HAVE_GETEUID */

/* Define to 1 if you have the `getpwuid' function. */
/* #undef HAVE_GETPWUID */

/* Define to 1 if you have the `getuid' function. */
/* #undef HAVE_GETUID */

/* Define to 1 if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */

/* Define to 1 if you have the `pthread' library (-lpthread). */
/* #undef HAVE_LIBPTHREAD */

/* Define to 1 if you have the <locale.h> header file. */
/* #undef HAVE_LOCALE_H */

/* Define to 1 if you have the `lstat' function. */
/* #undef HAVE_LSTAT */

/* Define to 1 if you have the `memmove' function. */
/* #undef HAVE_MEMMOVE */

/* Define to 1 if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */

/* Define to 1 if you have the `memset' function. */
/* #undef HAVE_MEMSET */

/* Define to 1 if you have the `mlock' function. */
/* #undef HAVE_MLOCK */

/* Define to 1 if you have the <pwd.h> header file. */
/* #undef HAVE_PWD_H */

/* Define to 1 if you have the `sigaction' function. */
/* #undef HAVE_SIGACTION */

/* Define to 1 if you have the `signal' function. */
/* #undef HAVE_SIGNAL */

/* Define to 1 if you have the <signal.h> header file. */
/* #undef HAVE_SIGNAL_H */

/* Define to 1 if you have the `stat' function. */
/* #undef HAVE_STAT */

/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */

/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef HAVE_STDLIB_H */

/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */

/* Define to 1 if you have the <string.h> header file. */
/* #undef HAVE_STRING_H */

/* Define to 1 if you have the <sys/mman.h> header file. */
/* #undef HAVE_SYS_MMAN_H */

/* Define to 1 if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */

/* Define to 1 if you have the <sys/types.h> header file. */
/* #undef HAVE_SYS_TYPES_H */

/* Define to 1 if you have the <sys/wait.h> header file. */
/* #undef HAVE_SYS_WAIT_H */

/* Define to 1 if you have the `umask' function. */
/* #undef HAVE_UMASK */

/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */

/* Define to 1 if you have the `utime' function. */
/* #undef HAVE_UTIME */

/* Define to 1 if you have the <utime.h> header file. */
/* #undef HAVE_UTIME_H */

/* Define to 1 if you have the `waitpid' function. */
/* #undef HAVE_WAITPID */

/* Name of package */
/* #undef PACKAGE */

/* Define to the address where bug reports for this package should be sent. */
/* #undef PACKAGE_BUGREPORT */

/* Define to the full name of this package. */
/* #undef PACKAGE_NAME */

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
/* #undef PACKAGE_TARNAME */

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */

/* Define as the return type of signal handlers (`int' or `void'). */
/* #undef RETSIGTYPE */

/* The size of a `unsigned char', as computed by sizeof. */
/* #undef SIZEOF_UNSIGNED_CHAR */

/* The size of a `unsigned int', as computed by sizeof. */
/* #undef SIZEOF_UNSIGNED_INT */

/* The size of a `unsigned long int', as computed by sizeof. */
/* #undef SIZEOF_UNSIGNED_LONG_INT */

/* The size of a `unsigned short int', as computed by sizeof. */
/* #undef SIZEOF_UNSIGNED_SHORT_INT */

/* Define to 1 if you have the ANSI C header files. */
/* #undef STDC_HEADERS */

/* Version number of package */
/* #undef VERSION */

/* Define to 1 if your processor stores words with the most significant byte
   first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */

/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */



defines.h:

Code:

#include <config.h>

#ifdef STDC_HEADERS
# include <string.h>
# include <stdlib.h>
# include <stdio.h>
#endif

#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif

#include <time.h>

#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif

#ifdef HAVE_SIGNAL_H
# include <signal.h>
#endif

#ifdef HAVE_UTIME_H
# include <utime.h>
#endif

/* for open */
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif

#ifdef HAVE_PWD_H
# include <pwd.h>
#endif

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif

#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif

#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif


#if SIZEOF_UNSIGNED_LONG_INT == 4
 typedef unsigned long word32;
 typedef signed long sword32;
#elif SIZEOF_UNSIGNED_INT == 4
 typedef unsigned int word32;
 typedef signed int sword32;
#else
# error "Cannot find a 32 bit integer in your system, sorry."
#endif

#if SIZEOF_UNSIGNED_INT == 2
 typedef unsigned int word16;
#elif SIZEOF_UNSIGNED_SHORT_INT == 2
 typedef unsigned short word16;
#else
# error "Cannot find a 16 bit integer in your system, sorry."
#endif

#if SIZEOF_UNSIGNED_CHAR == 1
 typedef unsigned char word8;
#else
# error "Cannot find an 8 bit char in your system, sorry."
#endif

#ifndef HAVE_MEMMOVE
# ifdef HAVE_BCOPY
#  define memmove(d, s, n) bcopy ((s), (d), (n))
# else
#  error "Neither memmove nor bcopy exists on your system."
# endif
#endif

#define TRUE 1
#define FALSE 0





And the output of x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=core2 -O2 -pipe -Wall -Wpointer-arith -E `test -f 'extra.c' || echo './'`extra.c:

Code:

# 1 "extra.c"
# 1 "<command-line>"
# 1 "extra.c"
# 1 "./defines.h" 1
# 1 "../config.h" 1
# 2 "./defines.h" 2
# 13 "./defines.h"
# 1 "/usr/include/time.h" 1 3 4
# 27 "/usr/include/time.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 357 "/usr/include/features.h" 3 4
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 358 "/usr/include/features.h" 2 3 4
# 379 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 385 "/usr/include/sys/cdefs.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 386 "/usr/include/sys/cdefs.h" 2 3 4
# 380 "/usr/include/features.h" 2 3 4
# 403 "/usr/include/features.h" 3 4
# 1 "/usr/include/gnu/stubs.h" 1 3 4
# 10 "/usr/include/gnu/stubs.h" 3 4
# 1 "/usr/include/gnu/stubs-64.h" 1 3 4
# 11 "/usr/include/gnu/stubs.h" 2 3 4
# 404 "/usr/include/features.h" 2 3 4
# 28 "/usr/include/time.h" 2 3 4









# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stddef.h" 1 3 4
# 213 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stddef.h" 3 4
typedef long unsigned int size_t;
# 38 "/usr/include/time.h" 2 3 4



# 1 "/usr/include/bits/time.h" 1 3 4
# 42 "/usr/include/time.h" 2 3 4
# 55 "/usr/include/time.h" 3 4
# 1 "/usr/include/bits/types.h" 1 3 4
# 27 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 28 "/usr/include/bits/types.h" 2 3 4


typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;


typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

typedef signed long int __int64_t;
typedef unsigned long int __uint64_t;







typedef long int __quad_t;
typedef unsigned long int __u_quad_t;
# 121 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/typesizes.h" 1 3 4
# 122 "/usr/include/bits/types.h" 2 3 4


typedef unsigned long int __dev_t;
typedef unsigned int __uid_t;
typedef unsigned int __gid_t;
typedef unsigned long int __ino_t;
typedef unsigned long int __ino64_t;
typedef unsigned int __mode_t;
typedef unsigned long int __nlink_t;
typedef long int __off_t;
typedef long int __off64_t;
typedef int __pid_t;
typedef struct { int __val[2]; } __fsid_t;
typedef long int __clock_t;
typedef unsigned long int __rlim_t;
typedef unsigned long int __rlim64_t;
typedef unsigned int __id_t;
typedef long int __time_t;
typedef unsigned int __useconds_t;
typedef long int __suseconds_t;

typedef int __daddr_t;
typedef int __key_t;


typedef int __clockid_t;


typedef void * __timer_t;


typedef long int __blksize_t;




typedef long int __blkcnt_t;
typedef long int __blkcnt64_t;


typedef unsigned long int __fsblkcnt_t;
typedef unsigned long int __fsblkcnt64_t;


typedef unsigned long int __fsfilcnt_t;
typedef unsigned long int __fsfilcnt64_t;


typedef long int __fsword_t;

typedef long int __ssize_t;


typedef long int __syscall_slong_t;

typedef unsigned long int __syscall_ulong_t;



typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;


typedef long int __intptr_t;


typedef unsigned int __socklen_t;
# 56 "/usr/include/time.h" 2 3 4



typedef __clock_t clock_t;



# 73 "/usr/include/time.h" 3 4


typedef __time_t time_t;



# 91 "/usr/include/time.h" 3 4
typedef __clockid_t clockid_t;
# 103 "/usr/include/time.h" 3 4
typedef __timer_t timer_t;
# 120 "/usr/include/time.h" 3 4
struct timespec
  {
    __time_t tv_sec;
    __syscall_slong_t tv_nsec;
  };








struct tm
{
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday;
  int tm_yday;
  int tm_isdst;


  long int tm_gmtoff;
  const char *tm_zone;




};








struct itimerspec
  {
    struct timespec it_interval;
    struct timespec it_value;
  };


struct sigevent;





typedef __pid_t pid_t;
# 186 "/usr/include/time.h" 3 4



extern clock_t clock (void) __attribute__ ((__nothrow__ , __leaf__));


extern time_t time (time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));


extern double difftime (time_t __time1, time_t __time0)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));


extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));





extern size_t strftime (char *__restrict __s, size_t __maxsize,
   const char *__restrict __format,
   const struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));

# 221 "/usr/include/time.h" 3 4
# 1 "/usr/include/xlocale.h" 1 3 4
# 27 "/usr/include/xlocale.h" 3 4
typedef struct __locale_struct
{

  struct __locale_data *__locales[13];


  const unsigned short int *__ctype_b;
  const int *__ctype_tolower;
  const int *__ctype_toupper;


  const char *__names[13];
} *__locale_t;


typedef __locale_t locale_t;
# 222 "/usr/include/time.h" 2 3 4

extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
     const char *__restrict __format,
     const struct tm *__restrict __tp,
     __locale_t __loc) __attribute__ ((__nothrow__ , __leaf__));
# 236 "/usr/include/time.h" 3 4



extern struct tm *gmtime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));



extern struct tm *localtime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));





extern struct tm *gmtime_r (const time_t *__restrict __timer,
       struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));



extern struct tm *localtime_r (const time_t *__restrict __timer,
          struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));





extern char *asctime (const struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));


extern char *ctime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));







extern char *asctime_r (const struct tm *__restrict __tp,
   char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));


extern char *ctime_r (const time_t *__restrict __timer,
        char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));




extern char *__tzname[2];
extern int __daylight;
extern long int __timezone;




extern char *tzname[2];



extern void tzset (void) __attribute__ ((__nothrow__ , __leaf__));



extern int daylight;
extern long int timezone;





extern int stime (const time_t *__when) __attribute__ ((__nothrow__ , __leaf__));
# 319 "/usr/include/time.h" 3 4
extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));


extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));


extern int dysize (int __year) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
# 334 "/usr/include/time.h" 3 4
extern int nanosleep (const struct timespec *__requested_time,
        struct timespec *__remaining);



extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__ , __leaf__));


extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__ , __leaf__));


extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
     __attribute__ ((__nothrow__ , __leaf__));






extern int clock_nanosleep (clockid_t __clock_id, int __flags,
       const struct timespec *__req,
       struct timespec *__rem);


extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__ , __leaf__));




extern int timer_create (clockid_t __clock_id,
    struct sigevent *__restrict __evp,
    timer_t *__restrict __timerid) __attribute__ ((__nothrow__ , __leaf__));


extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));


extern int timer_settime (timer_t __timerid, int __flags,
     const struct itimerspec *__restrict __value,
     struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__ , __leaf__));


extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
     __attribute__ ((__nothrow__ , __leaf__));


extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));
# 430 "/usr/include/time.h" 3 4

# 14 "./defines.h" 2
./defines.h:60:3: error: #error "Cannot find a 32 bit integer in your system, sorry."
./defines.h:68:3: error: #error "Cannot find a 16 bit integer in your system, sorry."
./defines.h:74:3: error: #error "Cannot find an 8 bit char in your system, sorry."
./defines.h:81:4: error: #error "Neither memmove nor bcopy exists on your system.
# 2 "extra.c" 2
Back to top
View user's profile Send private message
ichor
n00b
n00b


Joined: 23 Nov 2014
Posts: 3

PostPosted: Sun Nov 30, 2014 11:45 pm    Post subject: Reply with quote

Problem solved.

Somewhere along the way the binary /sbin/ldconfig had gone lost, and bad things followed. I guessed it had something to do with /bin/sh being linked to zsh instead of bash (I changed it in panic over the recent bash bugs), so I changed it back to bash and reinstalled glibc.

- Ichor
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Dec 01, 2014 11:21 am    Post subject: Reply with quote

Please mark the thread "[solved]" then, by editing the original post (button in top right, after "report" and "quote") and adding it to the subject line.

Thanks,
steveL.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum