Opened 11 years ago

Closed 10 years ago

#23134 closed defect (fixed)

icecast: error: conflicting types for 'socklen_t'

Reported by: acalper@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: icecast

Description (last modified by tobypeterson)

sudo port install icecast
--->  Computing dependencies for icecast
--->  Fetching icecast
--->  Attempting to fetch icecast-1.3.12.tar.gz from http://downloads.us.xiph.org/releases/icecast/
--->  Verifying checksum(s) for icecast
--->  Extracting icecast
--->  Applying patches to icecast
--->  Configuring icecast
--->  Building icecast
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_icecast/work/icecast-1.3.12" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/make  all-recursive
Making all in src
Making all in authenticate
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../src    -I/opt/local/include   -I/opt/local/include  -O2 -arch x86_64 -c basic.c
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../src    -I/opt/local/include   -I/opt/local/include  -O2 -arch x86_64 -c user.c
In file included from user.c:55:
../../src/icetypes.h:51: error: conflicting types for 'socklen_t'
/usr/include/sys/socket.h:108: error: previous declaration of 'socklen_t' was here
make[3]: *** [user.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from basic.c:59:
../../src/icetypes.h:51: error: conflicting types for 'socklen_t'
/usr/include/sys/socket.h:108: error: previous declaration of 'socklen_t' was here
make[3]: *** [basic.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
c-98-203-66-39:~ alan$ sudo port -d install icecast
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/icecast
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/icecast
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: adding the default universal variant
DEBUG: Requested variant i386 is not provided by port icecast.
DEBUG: Requested variant macosx is not provided by port icecast.
DEBUG: Executing variant darwin provides darwin
--->  Computing dependencies for icecast
DEBUG: Executing org.macports.main (icecast)
DEBUG: Skipping completed org.macports.fetch (icecast)
DEBUG: Skipping completed org.macports.checksum (icecast)
DEBUG: Skipping completed org.macports.extract (icecast)
DEBUG: Skipping completed org.macports.patch (icecast)
DEBUG: Skipping completed org.macports.configure (icecast)
--->  Building icecast
DEBUG: Executing org.macports.build (icecast)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_icecast/work/icecast-1.3.12" && /usr/bin/make -j2 all'
/usr/bin/make  all-recursive
Making all in src
Making all in authenticate
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../src    -I/opt/local/include   -I/opt/local/include  -O2 -arch x86_64 -c basic.c
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../src    -I/opt/local/include   -I/opt/local/include  -O2 -arch x86_64 -c user.c
In file included from user.c:55:
../../src/icetypes.h:51: error: conflicting types for 'socklen_t'
/usr/include/sys/socket.h:108: error: previous declaration of 'socklen_t' was here
In file included from basic.c:59:
../../src/icetypes.h:51: error: conflicting types for 'socklen_t'
/usr/include/sys/socket.h:108: error: previous declaration of 'socklen_t' was here
make[3]: *** [user.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [basic.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_icecast/work/icecast-1.3.12" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_icecast/work/icecast-1.3.12" && /usr/bin/make -j2 all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for icecast): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (4)

comment:1 Changed 11 years ago by tobypeterson

Description: modified (diff)
Keywords: icecas removed
Milestone: MacPorts 1.8.3
Port: icecast added
Summary: I tried to in stall icecast and got the following errorI tried to install icecast and got the following error

comment:2 Changed 11 years ago by tobypeterson

You probably want icecast2, wouldn't surprise me if icecast (1.x) fails to build.

comment:3 Changed 11 years ago by ryandesign (Ryan Schmidt)

Summary: I tried to install icecast and got the following erroricecast: error: conflicting types for 'socklen_t'

comment:4 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.