Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18678 closed defect (duplicate)

upgrade error mesa 7.2 rev 6 - ipc.c

Reported by: garribald@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: andrea.damore@…
Port: mesa

Description

While i had no problem installing the mesa 7.2_5, the upgrading to the current revision 6 gives me an error. The core of the problem seems to be:

Making programs for darwin
gcc -c -I. -I../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING ipc.c
ipc.c: In function 'CreatePort':
ipc.c:91: error: 'struct hostent' has no member named 'h_addr'
ipc.c: In function 'Connect':
ipc.c:173: error: 'struct hostent' has no member named 'h_addr'
make[2]: *** [ipc.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.2" && nice -n 18 make default INSTALL_DIR=/opt/local " returned error 2
Command output: Making sources for darwin
make[2]: Nothing to be done for `default'.
(cd drivers && make)
/bin/sh ../../../../bin/mklib -o OSMesa -linker 'gcc' -ldflags '' \
        -major 7 -minor 2 -patch 0 \
        -install ../../../../lib  \
        -id /opt/local/lib/libOSMesa.7.dylib \
        -L../../../../lib -lGL osmesa.o ../../../../src/mesa/libmesa.a ../../../../src/mesa/libglapi.a
mklib: Making Darwin shared library:  libOSMesa.7.2.dylib
mklib: Installing libOSMesa.7.2.dylib libOSMesa.7.dylib libOSMesa.dylib in ../../../../lib
make[4]: `../../../lib/libGLU.dylib' is up to date.
make[2]: Nothing to be done for `default'.
Making programs for darwin
gcc -c -I. -I../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING ipc.c
ipc.c: In function 'CreatePort':
ipc.c:91: error: 'struct hostent' has no member named 'h_addr'
ipc.c: In function 'Connect':
ipc.c:173: error: 'struct hostent' has no member named 'h_addr'
make[2]: *** [ipc.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Warning: the following items did not execute (for mesa): org.macports.destroot org.macports.build
DEBUG: invalid command name "::ui_init"
    while executing
"::ui_init $priority $prefix $channels $message"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1

I have attached the longer debug/verbose log to this ticket. What i haven't tried so far is removing the old mesa and installing rev 6 new. Maybe there is another trick i could try.

MacPorts 1.7, OS X 10.4.11

Attachments (1)

log_mesa726.txt (15.1 KB) - added by garribald@… 15 years ago.

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by garribald@…

Attachment: log_mesa726.txt added

comment:1 Changed 15 years ago by mark.pearson0@…

I am having a very similar problem attempting to install mesa @7.2, Revision 6 (with no previous version installed)

The output I get on Mac OS X 10.4.11 with MacPorts 1.7 is as follows:

$ sudo port install mesa
--->  Building mesa
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.2" && make default INSTALL_DIR=/opt/local " returned error 2
Command output: Making sources for darwin
make[2]: Nothing to be done for `default'.
(cd drivers && make)
/bin/sh ../../../../bin/mklib -o OSMesa -linker 'gcc' -ldflags '' \
        -major 7 -minor 2 -patch 0 \
        -install ../../../../lib  \
        -id /opt/local/lib/libOSMesa.7.dylib \
        -L../../../../lib -lGL osmesa.o ../../../../src/mesa/libmesa.a ../../../../src/mesa/libglapi.a
mklib: Making Darwin shared library:  libOSMesa.7.2.dylib
mklib: Installing libOSMesa.7.2.dylib libOSMesa.7.dylib libOSMesa.dylib in ../../../../lib
make[4]: `../../../lib/libGLU.dylib' is up to date.
make[2]: Nothing to be done for `default'.
Making programs for darwin
gcc -c -I. -I../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING ipc.c
ipc.c: In function 'CreatePort':
ipc.c:91: error: 'struct hostent' has no member named 'h_addr'
ipc.c: In function 'Connect':
ipc.c:173: error: 'struct hostent' has no member named 'h_addr'
make[2]: *** [ipc.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Error: Status 1 encountered during processing.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: andrea.damore@… added
Owner: changed from macports-tickets@… to jeremyhu@…
Port: mesa added

comment:3 Changed 15 years ago by garribald@…

Upgrading has worked now - i think, the changeset 47547 did the trick

http://trac.macports.org/changeset/47547

Thanks! I hope, it solves the problem also for Mark.

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

Resolution: duplicate
Status: newclosed

comment:5 Changed 15 years ago by mark.pearson0@…

Unfortunately this doesn't fix things for me.

Having done

sudo port clean mesa

followed by

sudo port install mesa

I now get the following set of errors:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.2" && make default INSTALL_DIR=/opt/local " returned error 2
Command output: /opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
gcc -c -I../../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING  layerutil.c
In file included from /opt/local/include/X11/Xlib.h:64,
                 from layerutil.h:17,
                 from layerutil.c:12:
/opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
/bin/sh ../../../bin/mklib -o glut -linker 'gcc' -ldflags '' \
        -major 3 -minor 7 -patch 1 \
         -install ../../../lib \
        -id /opt/local/lib/libglut.3.dylib \
        -L../../../lib -lGLU -lGL  -L/opt/local/lib -L/opt/local/lib -lX11 -lXmu -lXi -lXext glut_8x13.o glut_9x15.o glut_bitmap.o glut_bwidth.o glut_cindex.o glut_cmap.o glut_cursor.o glut_dials.o glut_dstr.o glut_event.o glut_ext.o glut_fcb.o glut_fullscrn.o glut_gamemode.o glut_get.o glut_glxext.o glut_hel10.o glut_hel12.o glut_hel18.o glut_init.o glut_input.o glut_joy.o glut_key.o glut_keyctrl.o glut_keyup.o glut_menu.o glut_menu2.o glut_mesa.o glut_modifier.o glut_mroman.o glut_overlay.o glut_roman.o glut_shapes.o glut_space.o glut_stroke.o glut_swap.o glut_swidth.o glut_tablet.o glut_teapot.o glut_tr10.o glut_tr24.o glut_util.o glut_vidresize.o glut_warp.o glut_win.o glut_winmisc.o layerutil.o
mklib: Making Darwin shared library:  libglut.3.7.dylib
mklib: Installing libglut.3.7.dylib libglut.3.dylib libglut.dylib in ../../../lib
Making programs for darwin
gcc -c -I. -I../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING corender.c
In file included from /opt/local/include/X11/Xlib.h:64,
                 from ../../include/GL/glx.h:38,
                 from corender.c:18:
/opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
gcc -c -I. -I../../include  -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING ipc.c
ipc.c: In function 'CreatePort':
ipc.c:91: error: 'struct hostent' has no member named 'h_addr'
ipc.c: In function 'Connect':
ipc.c:173: error: 'struct hostent' has no member named 'h_addr'
make[2]: *** [ipc.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Error: Status 1 encountered during processing.

Any suggestions?

Thanks

comment:6 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

sync and retry. That file isn't even in the dist tarballs yet.

comment:7 Changed 15 years ago by mark.pearson0@…

Thanks, that worked :)

Please excuse my ignorance of MacPorts. I've never had to do a 'port sync' before.

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.