Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#410 closed defect (fixed)

aterm fails to configure correctly on OS X

Reported by: dmarker@… Owned by: dmarker@…
Priority: Low Milestone:
Component: ports Version: 1.0
Keywords: Cc: dmarker@…
Port:

Description

Aterm configures incorrectly, missing thirteen system header files which causes the build to fail. The system runs OS X 10.2.4 with December 2002 Developer tools and Apple's public beta 3 of X11.

The header files are not part of X11, they all exist in /usr/include and /usr/include/sys.

The following steps reproduce the problem:

bash-2.05a$ port patch aterm ---> Fetching aterm ---> Verifying checksum for aterm ---> Extracting aterm bash-2.05a$ port -dv configure aterm [ ... ] checking for assert.h... no checking for fcntl.h... no checking for grp.h... no checking for libc.h... no [ ... ] checking for stdarg.h... no checking for stdlib.h... no checking for string.h... no checking for termios.h... no checking for unistd.h... no [ ... ] checking for sys/ioctl.h... no checking for sys/select.h... no checking for sys/sockio.h... no checking for sys/time.h... no [ ... ]

Building at this point will fail in command.c

The following will work around the problem by creating a config.cache which knows about the missing header files:

bash-2.05a$ cd ${prefix}/dports/x11/aterm bash-2.05a$ port clean ---> Cleaning aterm bash-2.05a$ port configure ---> Fetching aterm ---> Verifying checksum for aterm ---> Extracting aterm ---> Configuring aterm bash-2.05a$ cd work/aterm-0.4.2 bash-2.05a$ cat patch.config.cache | patch -c patching file config.cache bash-2.05a$ cp config.cache ~ bash-2.05a$ cd ../.. bash-2.05a$ port clean ---> Cleaning aterm bash-2.05a$ port patch ---> Fetching aterm ---> Verifying checksum for aterm ---> Extracting aterm bash-2.05a$ cp ~/config.cache work/aterm-0.4.2 bash-2.05a$ port install aterm

Here is patch.config.cache:

* config.cache --- config.cache * * 28,51

ac_cv_have_png=${ac_cv_have_png='have_png=yes vt_png_includes=/usr/local/include vt_png_libraries=/usr/local/lib vt_png_include_X11=no'} ac_cv_have_x=${ac_cv_have_x='have_x=yes ac_x_includes=/usr/X11R6/include ac_x_libraries=/usr/X11R6/lib'} ac_cv_have_xpm=${ac_cv_have_xpm='have_xpm=yes vt_xpm_includes=/usr/X11R6/include vt_xpm_libraries=/usr/X11R6/lib vt_xpm_include_X11=no'}

! ac_cv_header_assert_h=${ac_cv_header_assert_h=no} ! ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=no} ! ac_cv_header_grp_h=${ac_cv_header_grp_h=no}

ac_cv_header_lastlog_h=${ac_cv_header_lastlog_h=no}

! ac_cv_header_libc_h=${ac_cv_header_libc_h=no} ! ac_cv_header_stdarg_h=${ac_cv_header_stdarg_h=no}

ac_cv_header_stdc=${ac_cv_header_stdc=no}

! ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=no} ! ac_cv_header_string_h=${ac_cv_header_string_h=no}

ac_cv_header_sys_byteorder_h=${ac_cv_header_sys_byteorder_h=no}

! ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h=no} ! ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h=no} ! ac_cv_header_sys_sockio_h=${ac_cv_header_sys_sockio_h=no} ! ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h=no}

ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h=yes}

! ac_cv_header_termios_h=${ac_cv_header_termios_h=no}

ac_cv_header_time=${ac_cv_header_time=yes}

! ac_cv_header_unistd_h=${ac_cv_header_unistd_h=no}

ac_cv_header_utmpx_h=${ac_cv_header_utmpx_h=no} ac_cv_lib_ICE_IceConnectionNumber=${ac_cv_lib_ICE_IceConnectionNumber=yes} ac_cv_lib_dnet_dnet_ntoa=${ac_cv_lib_dnet_dnet_ntoa=no}

--- 28,51 ----

ac_cv_have_png=${ac_cv_have_png='have_png=yes vt_png_includes=/usr/local/include vt_png_libraries=/usr/local/lib vt_png_include_X11=no'} ac_cv_have_x=${ac_cv_have_x='have_x=yes ac_x_includes=/usr/X11R6/include ac_x_libraries=/usr/X11R6/lib'} ac_cv_have_xpm=${ac_cv_have_xpm='have_xpm=yes vt_xpm_includes=/usr/X11R6/include vt_xpm_libraries=/usr/X11R6/lib vt_xpm_include_X11=no'}

! ac_cv_header_assert_h=${ac_cv_header_assert_h=yes} ! ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=yes} ! ac_cv_header_grp_h=${ac_cv_header_grp_h=yes}

ac_cv_header_lastlog_h=${ac_cv_header_lastlog_h=no}

! ac_cv_header_libc_h=${ac_cv_header_libc_h=yes} ! ac_cv_header_stdarg_h=${ac_cv_header_stdarg_h=yes}

ac_cv_header_stdc=${ac_cv_header_stdc=no}

! ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=yes} ! ac_cv_header_string_h=${ac_cv_header_string_h=yes}

ac_cv_header_sys_byteorder_h=${ac_cv_header_sys_byteorder_h=no}

! ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h=yes} ! ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h=yes} ! ac_cv_header_sys_sockio_h=${ac_cv_header_sys_sockio_h=yes} ! ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h=yes}

ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h=yes}

! ac_cv_header_termios_h=${ac_cv_header_termios_h=yes}

ac_cv_header_time=${ac_cv_header_time=yes}

! ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes}

ac_cv_header_utmpx_h=${ac_cv_header_utmpx_h=no} ac_cv_lib_ICE_IceConnectionNumber=${ac_cv_lib_ICE_IceConnectionNumber=yes} ac_cv_lib_dnet_dnet_ntoa=${ac_cv_lib_dnet_dnet_ntoa=no}

Attachments (1)

Portfile (1.7 KB) - added by jpm@… 21 years ago.
darwin variant Portfile

Download all attachments as: .zip

Change History (4)

comment:1 Changed 21 years ago by jpm@…

Owner: changed from kevin@… to jpm@…

comment:2 Changed 21 years ago by jpm@…

Owner: changed from jpm@… to dmarker@…

that is odd, running configure on a clean 10.2.5 machine i get:

[...] checking for assert.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for libc.h... yes checking for lastlog.h... no checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for termios.h... yes checking for unistd.h... yes checking for utmpx.h... no checking for sys/byteorder.h... no checking for sys/ioctl.h... yes checking for sys/select.h... yes checking for sys/sockio.h... yes checking for sys/time.h... yes [...]

please try the attached Portfile and let me know that affords you anything. i just added a darwin variant that copies the system config.[sub|guess] into the aterm src directory.

Changed 21 years ago by jpm@…

Attachment: Portfile added

darwin variant Portfile

comment:3 Changed 21 years ago by mij@…

Resolution: fixed
Status: newclosed

I'm assuming this has been fixed since I can't replicate here anymore (10.2.6, Apple X11).

Note: See TracTickets for help on using tickets.