Opened 15 years ago

Last modified 15 years ago

#1632 assigned defect

configure errors with --enable-static

Reported by: openworld@… Owned by: diego@…
Priority: normal Component: build system
Version: unspecified Severity: normal
Keywords: Cc: openworld@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

I'm trying to use --enable-static --enable-x264 option and am getting an error:

Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.

Check "configure.log" if you do not understand why it failed.

configure.log shows this error:

============ Checking for inttypes.h (required) ============

#include <inttypes.h>
int main(void) { return 0; }

cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -ffast-math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -static -ffast-math -o /var/folders/p8/p8aE1AvyFueuObTIsS6-eE+++TI/-Tmp-mplayer-conf-25414-71521 /var/folders/p8/p8aE1AvyFueuObTIsS6-eE+++TI/-Tmp-mplayer-conf-643-71521.c
ld_classic: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status

Result is: no
##########################################

At the same time I can compile this test manually from command line:

#include <inttypes.h>
int main(void) { return 0; }

and have none of errors. So, I believe, the problem is covered somwhere in the configure script.

"empty" configure works OK.

Change History (4)

comment:1 by openworld@…, 15 years ago

Cc: openworld@… added

Mac OS X 10.5.8, XCode 3.1.4 gcc 4.0.1

comment:2 by reimar, 15 years ago

Do you mean you can compile on the command-line with exactly these options? Seems really unlikely.
I'm not sure if anyone ever uses -static on OSX, that seems like a rather likely cause for the issue.

comment:3 by compn, 15 years ago

check how mplayerosx extended does it?

comment:4 by diego@…, 15 years ago

op_sys: Mac OS XAll
rep_platform: PC (x86 with SSE)PC (x86)
Status: newassigned
Summary: configure gives errorsconfigure errors with --enable-static

--enable-static is broken even on Linux for me...

Note: See TracTickets for help on using tickets.