pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/26783: mozilla build fails with "C compiler cannot create executables"
>Number: 26783
>Category: pkg
>Synopsis: mozilla build fails with "C compiler cannot create executables"
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 28 09:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: David Griffith
>Release: 1.6.2
>Organization:
>Environment:
NetBSD zaphod 1.6.2 NetBSD 1.6.2 (ZAPHOD) #0: Sat Jun 5 04:50:05 PDT 2004
dave@arthur:/usr/src/sys/arch/i386/compile/ZAPHOD i386
>Description:
When attempting to build Mozilla 1.7.2, the autoconf procedure complains that
the C compiler is unable to create executables. Observe:
=> Adding rpaths to pkgconfig files.
loading cache ./config.cache
checking host system type... i386--netbsdelf
checking target system type... i386--netbsdelf
checking build system type... i386--netbsdelf
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include
/usr/pkg/lib/mozilla -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/mozilla
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/mozilla
zaphod:/usr/pkgsrc/www/mozilla$
>How-To-Repeat:
cd /usr/pkgsrc/www/mozilla ; make
>Fix:
In the package's config.log file, I see this:
--- begin included text ---
configure:870: checking host system type
configure:891: checking target system type
configure:909: checking build system type
configure:1907: checking for gcc
configure:2020: checking whether the C compiler (gcc -O2 -I/usr/pkg/include -I/u
sr/pkg/include/freetype2 -I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include /usr/p
kg/lib/mozilla -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/us
r/X11R6/lib -Wl,-R/usr/X11R6/lib) works
configure:2036: gcc -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include
-I/usr/pkg/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include /usr/pkg/lib/mozilla
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib conftest.c -lintl 1>&5
/usr/pkg/lib/mozilla: file not recognized: File format not recognized
configure: failed program was:
#line 2031 "configure"
#include "confdefs.h"
main(){return(0);}
---end included text---
Notice "/usr/pkg/lib/mozilla: file not recognized". Now look three lines up
and you'll see that there appears to be a "-I" missing. I'm at a loss to
explain why that happened and how to fix it.
>Release-Note:
>Audit-Trail:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index