Opened 21 months ago
Last modified 21 months ago
#66849 assigned defect
xar @494.81.1 fails to build when irstlm is installed
Reported by: | barracuda156 | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | xar |
Description
ln -s librxar.1.dylib lib/librxar.dylib In file included from src/xar.c:55: /opt/local/include/util.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ In file included from src/xar.c:55: /opt/local/include/util.h:8:18: error: string: No such file or directory /opt/local/include/util.h:9:20: error: iostream: No such file or directory /opt/local/include/util.h:10:19: error: fstream: No such file or directory In file included from src/xar.c:55: /opt/local/include/util.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngram’ /opt/local/include/util.h:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mfstream’ /opt/local/include/util.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /opt/local/include/util.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /opt/local/include/util.h:48: error: expected ‘)’ before ‘&’ token /opt/local/include/util.h:50: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:50: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:58: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:58: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:63: error: expected ‘)’ before ‘&’ token /opt/local/include/util.h:65: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:65: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘irstlm’ /opt/local/include/util.h:88: error: expected ‘)’ before ‘x’ rm -f lib/libxar.dylib ln -s libxar.1.dylib lib/libxar.dylib make: *** [src/xar.o] Error 1 make: *** Waiting for unfinished jobs....
Attachments (1)
Change History (9)
Changed 21 months ago by barracuda156
Attachment: | xar_main_log.txt added |
---|
comment:1 Changed 21 months ago by barracuda156
Summary: | xar @494.81.1 fails to build with gcc-4.2 → xar @494.81.1 fails to build with gcc-4.2: /opt/local/include/util.h: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ |
---|
comment:2 Changed 21 months ago by Schamschula (Marius Schamschula)
comment:3 follow-ups: 4 5 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | leopard snowleopard removed |
---|---|
Summary: | xar @494.81.1 fails to build with gcc-4.2: /opt/local/include/util.h: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ → xar @494.81.1 fails to build when irstlm is installed |
What port provided the file /opt/local/include/util.h?
port provides /opt/local/include/util.h
I wouldn't be surprised if that's interfering with the file called "util.h" in the xar port (which would mean that you could reproduce this problem on any system if that port were installed). It would indicate that the -I
flags when building the xar port are in the wrong order.
Using the search function on ports.macports.org the only port I found that provides the file /opt/local/include/util.h is irstlm. I am able to reproduce this failure when trying to build xar if the irstlm port is installed.
It's probably a bad idea for the irstlm port to install a file with such a common name in such a prominent directory. This probably needs to be brought up with the developers of irstlm so that they either rename their util.h or move it into a subdirectory named after their project. Their project is now at https://github.com/irstlm-team/irstlm. First I will see if I can update it to the latest version and if that already resolves this issue.
comment:4 follow-up: 6 Changed 21 months ago by barracuda156
Replying to ryandesign:
What port provided the file /opt/local/include/util.h?
port provides /opt/local/include/util.hI wouldn't be surprised if that's interfering with the file called "util.h" in the xar port (which would mean that you could reproduce this problem on any system if that port were installed). It would indicate that the
-I
flags when building the xar port are in the wrong order.Using the search function on ports.macports.org the only port I found that provides the file /opt/local/include/util.h is irstlm. I am able to reproduce this failure when trying to build xar if the irstlm port is installed.
It's probably a bad idea for the irstlm port to install a file with such a common name in such a prominent directory. This probably needs to be brought up with the developers of irstlm so that they either rename their util.h or move it into a subdirectory named after their project. Their project is now at https://github.com/irstlm-team/irstlm. First I will see if I can update it to the latest version and if that already resolves this issue.
Thank you for point out the cause of the problem!
Just found out that for the reason expect
fails to build:
/usr/bin/gcc-4.2 -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIOS=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/opt/local/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.13/generic" -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.13/unix" -pipe -Os -arch ppc -pipe -Os -Wall -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/tcl8.6.10/generic -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/tcl8.6.10/unix -c `echo exp_event.c` -o exp_event.o In file included from pty_termios.c:12: /opt/local/include/util.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ In file included from pty_termios.c:12: /opt/local/include/util.h:8:18: error: string: No such file or directory /opt/local/include/util.h:9:20: error: iostream: No such file or directory /opt/local/include/util.h:10:19: error: fstream: No such file or directory In file included from pty_termios.c:12: /opt/local/include/util.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngram’ /opt/local/include/util.h:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mfstream’ /opt/local/include/util.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /opt/local/include/util.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /opt/local/include/util.h:48: error: expected ‘)’ before ‘&’ token /opt/local/include/util.h:50: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:50: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:58: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:58: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:63: error: expected ‘)’ before ‘&’ token /opt/local/include/util.h:65: warning: type defaults to ‘int’ in declaration of ‘std’ /opt/local/include/util.h:65: error: expected ‘;’, ‘,’ or ‘)’ before ‘:’ token /opt/local/include/util.h:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘irstlm’ /opt/local/include/util.h:88: error: expected ‘)’ before ‘x’ Dbg.c: In function ‘debugger_trap’: Dbg.c:632: warning: enumeration value ‘none’ not handled in switch Dbg.c:632: warning: enumeration value ‘up’ not handled in switch Dbg.c:632: warning: enumeration value ‘down’ not handled in switch Dbg.c:632: warning: enumeration value ‘where’ not handled in switch exp_chan.c:62: warning: initialization from incompatible pointer type Dbg.c:698: warning: enumeration value ‘none’ not handled in switch Dbg.c:698: warning: enumeration value ‘up’ not handled in switch Dbg.c:698: warning: enumeration value ‘down’ not handled in switch exp_chan.c: In function ‘expWaitOnAny’: exp_chan.c:602: warning: passing argument 2 of ‘waitpid’ from incompatible pointer type exp_chan.c: In function ‘expWaitOnOne’: exp_chan.c:621: warning: passing argument 1 of ‘wait’ from incompatible pointer type pty_termios.c: In function ‘exp_getptymaster’: pty_termios.c:474: warning: implicit declaration of function ‘openpty’ pty_termios.c:380: warning: unused variable ‘num’ pty_termios.c:377: warning: unused variable ‘stat_buf’ pty_termios.c:376: warning: unused variable ‘bank’ pty_termios.c:376: warning: unused variable ‘hex’ pty_termios.c: In function ‘exp_getptyslave’: pty_termios.c:642: warning: unused variable ‘buf’ pty_termios.c:641: warning: unused variable ‘slave2’ /usr/bin/gcc-4.2 -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIOS=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/opt/local/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.13/generic" -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_tcl/tcl/work/tcl8.6.13/unix" -pipe -Os -arch ppc -pipe -Os -Wall -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/tcl8.6.10/generic -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/tcl8.6.10/unix -c `echo exp_main_exp.c` -o exp_main_exp.o make: *** [pty_termios.o] Error 1 make: *** Waiting for unfinished jobs.... exp_event.c: In function ‘exp_unblock_background_channelhandler’: exp_event.c:116: warning: enumeration value ‘armed’ not handled in switch exp_event.c:116: warning: enumeration value ‘unarmed’ not handled in switch exp_command.c: In function ‘Exp_SendObjCmd’: exp_command.c:1979: warning: ‘string’ may be used uninitialized in this function exp_command.c:1968: warning: ‘rc’ may be used uninitialized in this function Dbg.c:619: warning: passing argument 2 of ‘breakpoint_test’ discards qualifiers from pointer target type Dbg.c:242: warning: ‘framePtr’ may be used uninitialized in this function Dbg.c:242: note: ‘framePtr’ was declared here exp_command.c: In function ‘Exp_SpawnObjCmd’: exp_command.c:888: warning: ‘rfd’ may be used uninitialized in this function exp_command.c:888: warning: ‘wfd’ may be used uninitialized in this function exp_clib.c: In function ‘expectv’: exp_clib.c:2447: warning: ‘return_val’ may be used uninitialized in this function expect.c: In function ‘Exp_ExpectObjCmd’: expect.c:2557: warning: ‘configure_count’ may be used uninitialized in this function expect.c:2549: warning: ‘end_time’ may be used uninitialized in this function expect.c:2540: warning: ‘mcount’ may be used uninitialized in this function make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/expect5.45.4' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_expect/expect/work/expect5.45.4" && /usr/bin/make -j8 -w all Exit code: 2 Error: Failed to build expect: command execution failed
comment:5 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign:
I will see if I can update it to the latest version and if that already resolves this issue.
I did, and it didn't, so I filed an issue with them: https://github.com/irstlm-team/irstlm/issues/29
comment:6 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to barracuda156:
Just found out that for the reason
expect
fails to build:
Please file a separate ticket for expect since xar and expect will need separate fixes and it's nice to be able to close each ticket as each issue is addressed.
comment:7 follow-up: 8 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)
Oh geez, expect doesn't have a util.h header, but MacOSX.sdk does! irstlm's util.h is hiding /usr/include/util.h.
comment:8 Changed 21 months ago by barracuda156
Replying to ryandesign:
Oh geez, expect doesn't have a util.h header, but MacOSX.sdk does! irstlm's util.h is hiding /usr/include/util.h.
Okay, so the fix should be with irstlm
? No need for another ticket for expect
?
Sorry, I can't help with Leopard or Snow Leopard. PRs welcome!