Opened 13 years ago

Closed 12 years ago

#27988 closed defect (fixed)

libmms 0.6.1 fails to build on < 10.6

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ygramul.el.multiple@…, elelay (Eric Le Lay), dbevans (David B. Evans), tael67@…
Port: libmms

Description

AI_NUMERICSERV isn't defined on Leopard.

~ $ sudo port -v upgrade libmms
--->  Computing dependencies for libmms.
--->  Building libmms
make: Entering directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1'
/usr/bin/make  all-recursive
make[1]: Entering directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1'
Making all in src
make[2]: Entering directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1/src'
/usr/bin/make  all-am
make[3]: Entering directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1/src'
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include  -pipe -ggdb3 -arch ppc -MT mms.lo -MD -MP -MF .deps/mms.Tpo -c -o mms.lo mms.c
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include  -pipe -ggdb3 -arch ppc -MT mmsh.lo -MD -MP -MF .deps/mmsh.Tpo -c -o mmsh.lo mmsh.c
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -pipe -ggdb3 -arch ppc -MT mmsh.lo -MD -MP -MF .deps/mmsh.Tpo -c mmsh.c  -fno-common -DPIC -o .libs/mmsh.o
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -pipe -ggdb3 -arch ppc -MT mms.lo -MD -MP -MF .deps/mms.Tpo -c mms.c  -fno-common -DPIC -o .libs/mms.o
mms.c: In function 'fallback_io_tcp_connect':
mms.c:227: error: 'AI_NUMERICSERV' undeclared (first use in this function)
mms.c:227: error: (Each undeclared identifier is reported only once
mms.c:227: error: for each function it appears in.)
mms.c: In function 'send_command':
mms.c:470: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mmsh.c: In function 'fallback_io_tcp_connect':
mmsh.c:287: error: 'AI_NUMERICSERV' undeclared (first use in this function)
mms.c: In function 'get_packet_header':mmsh.c:287: error: (Each undeclared identifier is reported only once

mmsh.c:287: error: for each function it appears in.)
mms.c:529: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mms.c:529: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c:537: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mms.c:537: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c: In function 'get_packet_command':
mms.c:574: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mms.c:574: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c:581: warning: pointer targets in passing argument 1 of 'print_command' differ in signedness
mmsh.c: In function 'get_answer':
mmsh.c:381: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:381: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c: In function 'get_asf_header':
mms.c:667: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mms.c:667: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mmsh.c:405: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness
mmsh.c:421: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
mmsh.c:426: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
mmsh.c:427: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness
mmsh.c: In function 'get_chunk_header':
mmsh.c:468: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:468: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mmsh.c:496: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:496: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mmsh.c: In function 'get_header':
mmsh.c:559: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:559: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mmsh.c:581: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:581: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mmsh.c: In function 'get_media_packet':
mmsh.c:1242: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mmsh.c:1242: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c: In function 'mms_connect':
mms.c:1142: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c:1172: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c:1211: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c:1262: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c:1309: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c: In function 'get_media_packet':
mms.c:1393: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
mms.c:1463: warning: pointer targets in passing argument 3 of 'io->read' differ in signedness
mms.c:1463: warning: pointer targets in passing argument 3 of 'default_io.read' differ in signedness
mms.c: In function 'mms_request_data_packet':
mms.c:1561: warning: pointer targets in passing argument 2 of 'mms_buffer_init' differ in signedness
make[3]: *** [mmsh.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [mms.lo] Error 1
make[3]: Leaving directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1'
make: *** [all] Error 2
make: Leaving directory `/private/var/tmp/macports-build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1'
shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/work/libmms-0.6.1" && /usr/bin/make -j5 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for libmms): org.macports.destroot org.macports.build
Log for libmms is at: /opt/local/var/macports/logs/_Users_jeremy_src_macports_trunk_dports_multimedia_libmms/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

patch-src-mms.h.diff (263 bytes) - added by rudloff@… 13 years ago.
Here is a quick patch

Download all attachments as: .zip

Change History (14)

comment:1 Changed 13 years ago by ygramul.el.multiple@…

Cc: ygramul.el.multiple@… added

Cc Me!

comment:2 Changed 13 years ago by ygramul.el.multiple@…

Same problem here!

comment:3 Changed 13 years ago by rmstonecipher@…

How about 0.6.2?

comment:4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

persists with 0.6.2

comment:5 Changed 13 years ago by ygramul.el.multiple@…

Yeah, pretty much the same :-(

comment:6 Changed 13 years ago by olivier.aubert@…

VLC solves this by defining the symbol if it is not already defined: http://mailman.videolan.org/pipermail/vlc-devel/2008-May/044005.html

Works also here.

comment:7 Changed 13 years ago by elelay (Eric Le Lay)

Cc: elelay@… added

Cc Me!

comment:8 Changed 13 years ago by elelay (Eric Le Lay)

libmms 0.6.2 doesn't build on Tiger either (same error: AI_NUMERICSERV isn't defined)

comment:9 Changed 13 years ago by dbevans (David B. Evans)

Cc: devans@… added

Cc Me!

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

Summary: libmms 0.6.1 fails to build on Leopardlibmms 0.6.1 fails to build on < 10.6

comment:11 Changed 13 years ago by tael67@…

Cc: tael67@… added

Cc Me!

Changed 13 years ago by rudloff@…

Attachment: patch-src-mms.h.diff added

Here is a quick patch

comment:12 Changed 12 years ago by jmroot (Joshua Root)

Cc: boeyms@… removed
Owner: changed from rmstonecipher@… to macports-tickets@…

comment:13 Changed 12 years ago by jmroot (Joshua Root)

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