Opened 18 years ago

Closed 18 years ago

#9033 closed defect (fixed)

BUG: id3v2 fails to compile (getopt conflict)

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

$ sudo port -c -v install id3v2 ---> Fetching id3v2 ---> id3v2-0.1.11.tar.gz doesn't seem to exist in /opt/local/var/db/dports/distfiles/id3v2 ---> Attempting to fetch id3v2-0.1.11.tar.gz from http://puzzle.dl.sourceforge.net/id3v2

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 52427 100 52427 0 0 53732 0 --:--:-- --:--:-- --:--:-- 81534 ---> Verifying checksum(s) for id3v2 ---> Checksumming id3v2-0.1.11.tar.gz ---> Extracting id3v2 ---> Extracting id3v2-0.1.11.tar.gz ---> Configuring id3v2 ---> Building id3v2 with target all g++ -I/opt/local/include/ -DVERSION="\"0.1.11\"" -c -o convert.o convert.cpp g++ -I/opt/local/include/ -DVERSION="\"0.1.11\"" -c -o list.o list.cpp /opt/local/include/getopt.h:115: error: declaration of C function 'int getopt()' conflicts with /usr/include/unistd.h:422: error: previous declaration 'int getopt(int, char* const*, const char*)' here make: * [list.o] Error 1 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_private_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_id3v2/work/id3v2-0.1.11" && make all" returned error 2 Command output: g++ -I/opt/local/include/ -DVERSION="\"0.1.11\"" -c -o convert.o convert.cpp g++ -I/opt/local/include/ -DVERSION="\"0.1.11\"" -c -o list.o list.cpp /opt/local/include/getopt.h:115: error: declaration of C function 'int getopt()' conflicts with /usr/include/unistd.h:422: error: previous declaration 'int getopt(int, char* const*, const char*)' here make: * [list.o] Error 1

Warning: the following items did not execute (for id3v2): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: Status 1 encountered during processing.

Change History (1)

comment:1 Changed 18 years ago by mww@…

Resolution: fixed
Status: newclosed
Summary: id3v2 fails to compile (getopt conflict)BUG: id3v2 fails to compile (getopt conflict)

o.k., I've updated the gnugetopt port to not put it's header in $prefix/include where it may get picked up accidently; (revision 1 of gnugetopt)

Note: See TracTickets for help on using tickets.