Opened 10 years ago

Last modified 10 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: Analyzed by developer:

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 Changed 10 years ago by openworld@…

  • Cc openworld@… added

Mac OS X 10.5.8, XCode 3.1.4 gcc 4.0.1

comment:2 Changed 10 years ago by reimar

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 Changed 10 years ago by compn

check how mplayerosx extended does it?

comment:4 Changed 10 years ago by diego@…

  • op_sys changed from Mac OS X to All
  • rep_platform changed from PC (x86 with SSE) to PC (x86)
  • Status changed from new to assigned
  • Summary changed from configure gives errors to configure errors with --enable-static

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

Note: See TracTickets for help on using tickets.