Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2007 02:05:08 +0100
From:      "Sabastian Cooke" <purposecurious@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Error compiling gcc34 on 5.2.1
Message-ID:  <7011c8170707041805sf4b4bf8ia1c621b0dc85b65f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi, I am trying to update amavisd-new from amavisd-new-2.4.5,1 to 2.5.1 on
our FreeBSD mail server, and it seems to require an update to file utility
and that requires gcc34 and i only have gcc 3.3.3 installed, when either the
script or me tries to build gcc34 from the ports collection, i get this
errors which i dont know how to diagnose, is there an easier way to update
gcc or anyone can help on these errors?

/usr/ports/lang/gcc34/work/build/gcc/xgcc
-B/usr/ports/lang/gcc34/work/build/gcc/ -B/usr/local/i386-
portbld-freebsd5.2.1/bin/ -B/usr/local/i386-portbld-freebsd5.2.1/lib/
-isystem /usr/local/i386-portbld-freebsd5.2.1/include -isystem
/usr/local/i386-portbld-freebsd5.2.1/sys-include -c -DHAVE_CONFIG_H -O2 -O
-pipe -mcpu=pentiumpro -I. -I../.././..//gcc-3.4.6/libiberty/../include  -W
-Wall -Wtraditional -pedantic ../.././..//gcc-3.4.6/libiberty/fibheap.c -o
fibheap.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
../.././..//gcc-3.4.6/libiberty/fibheap.c: In function `fibheap_union':
../.././..//gcc-3.4.6/libiberty/fibheap.c:166: warning: implicit declaration
of function `free'
../.././..//gcc-3.4.6/libiberty/fibheap.c: In function
`fibheap_delete_node':
../.././..//gcc-3.4.6/libiberty/fibheap.c:285: error: `LONG_MIN' undeclared
(first use in this function)
../.././..//gcc-3.4.6/libiberty/fibheap.c:285: error: (Each undeclared
identifier is reported only once
../.././..//gcc-3.4.6/libiberty/fibheap.c:285: error: for each function it
appears in.)
../.././..//gcc-3.4.6/libiberty/fibheap.c: In function
`fibheap_consolidate':
../.././..//gcc-3.4.6/libiberty/fibheap.c:395: warning: implicit declaration
of function `memset'
gmake[2]: *** [fibheap.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/i386-
portbld-freebsd5.2.1/libiberty'
gmake[1]: *** [all-target-libiberty] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc34.
*** Error code 1

Stop in /usr/ports/lang/gcc34.
*** Error code 1

Stop in /usr/ports/sysutils/file.
*** Error code 1

Stop in /usr/ports/sysutils/file.
*** Error code 1

Stop in /usr/ports/security/amavisd-new.
*** Error code 1

Stop in /usr/ports/security/amavisd-new.
*** Error code 1

Stop in /usr/ports/security/amavisd-new.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade42713.0
make reinstall
egrep: /var/db/pkg/amavisd-new-2.4.5,1/+CONTENTS: No such file or directory
--->  Restoring the old version
vscan:*:1005:clamav
You already have a group "vscan", so I will use it.
vscan:*:1004:1005::0:0:Scanning Virus Account:/var/amavis:/bin/sh
You already have a user "vscan", so I will use it.
Created "/var/amavis" directory.
Created "/var/amavis/db" directory.
Created "/var/amavis/tmp" directory.
Created "/var/amavis/var" directory.
Created "/var/virusmails" directory.
pkg_add: command '[ ! -f /usr/local/etc/amavisd.conf ] && cp
/usr/local/etc/amavisd.conf-dist /usr/local/etc/amavisd.conf' failed
** Fix the installation problem and try again.
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 393 packages
found (-0 +1) . done]
** Listing the failed packages (*:skipped / !:failed)
        ! security/amavisd-new (amavisd-new-2.4.5,1)    (install error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7011c8170707041805sf4b4bf8ia1c621b0dc85b65f>