Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18063 - Link of media-libs/freetype-2.1.2-r2 fails - Missing -c?
Summary: Link of media-libs/freetype-2.1.2-r2 fails - Missing -c?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-23 17:58 UTC by bdonlan
Modified: 2003-04-23 12:43 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 bdonlan 2003-03-23 17:58:13 UTC
When I emerge -e system or emerge media-libs/freetype, the link fails, with the
message quoted further down. I am in the process of upgrading from gcc 2.95.x to
3.2 - gcc, libc and bintools are updated, but I need to finish the system upgrade.

Reproducible: Always
Steps to Reproduce:
1. emerge media-libs/freetype


Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/freetype-2.1.2-r2 to /
>>> md5 ;-) freetype-2.1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking freetype-2.1.2.tar.bz2 to /var/tmp/portage/freetype-2.1.2-r2/work
 * Applying freetype-2.1.1-enable-ft2-bci.patch...                        [ ok ]
 * Applying freetype-2.1.1-primaryhints.patch...                          [ ok ]
 * Applying freetype-2.1.2-slighthint.patch...                            [ ok ]
 * Applying freetype-2.1.2-bluefuzz.patch...                              [ ok ]
 * Applying freetype-2.1.2-stdw.patch...                                  [ ok ]
 * Applying freetype-2.1.2-transform.patch...                             [ ok ]
 * Applying freetype-2.1.2-autohint.patch...                              [ ok ]
 * Applying freetype-2.1.2-leftright.patch...                             [ ok ]
>>> Source unpacked.

FreeType build system -- automatic system detection

The following settings are used:

  platform                    ansi
  compiler                    gcc
  configuration directory     ./builds/ansi
  configuration rules         ./builds/ansi/ansi.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library.

cc  -I./objs -I./builds/ansi -I./include -O2 -mcpu=i686 -pipe -o objs/ftsystem.o
src/base/ftsystem.c
cc  -I./objs -I./builds/ansi -I./include -O2 -mcpu=i686 -pipe -o objs/ftdebug.o
src/base/ftdebug.c
//usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../crt1.o(.text+0x18): In function
`_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [objs/ftsystem.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [objs/ftdebug.o] Error 1

!!! ERROR: media-libs/freetype-2.1.2-r2 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)


Expected Results:  
It should have successfully installed.

gcc, glibc, and bintools updated. system not yet updated as freetype is part of
system.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r2)
=================================================================
System uname: 2.4.19-rmap14a i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
gdbm berkdb slang readline arts tetex nas bonobo svga tcltk java guile mysql
postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk
qt kde motif opengl mozilla cdr scanner"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-24 20:26:11 UTC
just for fun, clear or disable ccache and retry?
Comment 2 bdonlan 2003-03-24 20:30:24 UTC
ccache isn't installed.
Comment 3 foser (RETIRED) gentoo-dev 2003-03-25 07:45:15 UTC
do you have another gcc version around you can gcc-config switch to ? See if that works. Your compile output is a lot different then mine, i have no idea why.. did you cut things out of the output or something ? I'd like to see the configure steps etc.

Main point is that for me it picks 'unix' as platform and not 'ansi', i don't know why that happens but it's most likely the reason you see it fail.

Comment 4 bdonlan 2003-03-25 16:52:27 UTC
That's the entire output. I have gcc 2.95, but as I'm only part-way through a emerge -e system, due to this and another bug, so I don't know if I'll be damaging my system horribly if I change it back.
Comment 5 foser (RETIRED) gentoo-dev 2003-04-01 05:58:16 UTC
hmm no keep it as it is.. but still it obviously tries to use 3.2.2 which is not good.

I get it you are rebuilding your system with 2.95, but used to have 3.2.2 ?
Comment 6 bdonlan 2003-04-02 18:11:46 UTC
No, other way. 2.95 => 3.2
Comment 7 foser (RETIRED) gentoo-dev 2003-04-03 16:02:17 UTC
hmm did you follow a guide for the gcc transition ?
Comment 8 foser (RETIRED) gentoo-dev 2003-04-23 08:29:09 UTC
how is things here ? got around it or something ?
Comment 9 bdonlan 2003-04-23 12:15:52 UTC
Sorry, I got frustrated by this bug and several others, so I switched to Debian. Maybe I'll use Gentoo sometime, but for now I don't feel it's stable enough.
Comment 10 foser (RETIRED) gentoo-dev 2003-04-23 12:43:46 UTC
do what you feel is best, but you could've closed the bug.