Opened 19 years ago

Closed 19 years ago

#8858 closed defect (fixed)

faad2 compile failed... (OSX 10.4.5 Intel)

Reported by: djnosmile@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: djnosmile@…
Port:

Description

I have try to compile FAAD2 but it get an error :

---> Building faad2 with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_faad2/work/faad2" && make all" returned error 2 Command output: make all-recursive Making all in libfaad source='bits.c' object='bits.lo' libtool=yes \ depfile='.deps/bits.Plo' tmpdepfile='.deps/bits.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c -o bits.lo test -f 'bits.c' || echo './'bits.c mkdir .libs

gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c bits.c -MT bits.lo -MD -MP -MF .deps/bits.TPlo -fno-common -DPIC -o .libs/bits.o

In file included from /usr/include/math.h:28,

from common.h:347, from bits.c:28:

/usr/include/architecture/i386/math.h:308: error: conflicting types for 'lrintf' common.h:314: error: previous definition of 'lrintf' was here make[2]: * [bits.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: /opt/local/bin/port: Status 1 encountered during processing.

I notice that the patches submitted on bug 3555 where defaultly applied.

Change History (1)

comment:1 Changed 19 years ago by djnosmile@…

Resolution: fixed
Status: newclosed

Well, I got it compiled with some hack's :

  • comment line 307 and 308 from /usr/include/architecture/i386
  • remove "static " from line 90 in faad2/common/mp4ff/mp4ff.c
Note: See TracTickets for help on using tickets.