Opened 12 years ago

Closed 12 years ago

#38489 closed defect (worksforme)

xconsole @1.0.5 build fails due to -Werror

Reported by: cooljeanius (Eric Gallager) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: xconsole

Description

While trying to install xorg-apps, MacPorts hit an error with xconsole:

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xconsole/xconsole/work/xconsole-1.0.5'
  CC     xconsole.o
xconsole.c:816:35: warning: declaration shadows a variable in the global scope [-Wshadow]
get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
                                  ^
xconsole.c:188:13: note: previous declaration is here
static char ttydev[64], ptydev[64];
            ^
xconsole.c:816:49: warning: declaration shadows a variable in the global scope [-Wshadow]
get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
                                                ^
xconsole.c:188:25: note: previous declaration is here
static char ttydev[64], ptydev[64];
                        ^
xconsole.c:819:6: error: implicit declaration of function 'openpty' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (openpty(pty, tty, NULL, NULL, NULL) == -1) {
            ^
2 warnings and 1 error generated.
make[2]: *** [xconsole.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xconsole/xconsole/work/xconsole-1.0.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xconsole/xconsole/work/xconsole-1.0.5'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xconsole/xconsole/work/xconsole-1.0.5'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xconsole/xconsole/work/xconsole-1.0.5" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: org.macports.build for port xconsole returned: command execution failed

Full log is attached.

Attachments (1)

main.log (16.9 KB) - added by cooljeanius (Eric Gallager) 12 years ago.
main.log for xconsole

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by cooljeanius (Eric Gallager)

Attachment: main.log added

main.log for xconsole

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

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

comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)

Actually never mind, I can't reproduce this myself any more. Our school computers recently upgraded to Mountain Lion and xconsole now builds properly for me. Feel free to close as invalid.

comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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