Opened 14 years ago

Closed 14 years ago

#24313 closed defect (duplicate)

expect-5.43.0 build failure

Reported by: matteocorti (Matteo Corti) Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: expect

Description

Build fails with:

/opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5

Uninstalling and rebuilding Tk does not solve the problem.

Here the steps to reproduce:

$ sudo port uninstall -f tk
--->  Unable to uninstall tk 8.5.8_0+darwin, the following ports depend on it:
--->    python26
--->    python25
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating tk @8.5.8_0+darwin
--->  Uninstalling tk @8.5.8_0+darwin
$ sudo port install tk
--->  Computing dependencies for tk
--->  Fetching tk
--->  Verifying checksum(s) for tk
--->  Extracting tk
--->  Configuring tk
--->  Building tk
--->  Staging tk into destroot
--->  Installing tk @8.5.8_0+darwin
--->  Activating tk @8.5.8_0+darwin
--->  Cleaning tk
sudo port install expect 
--->  Computing dependencies for expect
--->  Fetching expect
--->  Verifying checksum(s) for expect
--->  Extracting expect
--->  Applying patches to expect
--->  Configuring expect
--->  Building expect
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/expect-5.43" && /usr/bin/make -j2 all " returned error 2
Command output: exp_chan.c: In function 'ExpGetHandleProc':
exp_chan.c:415: warning: cast to pointer from integer of different size
exp_chan.c:418: warning: cast to pointer from integer of different size
exp_chan.c: In function 'expWaitOnAny':
exp_chan.c:526: warning: passing argument 2 of 'waitpid' from incompatible pointer type
exp_chan.c: In function 'expWaitOnOne':
exp_chan.c:545: warning: passing argument 1 of 'wait' from incompatible pointer type
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
           if [ ! -d shared ] ; then \
                mkdir shared ; \
           else true; fi ; \
           /usr/bin/gcc-4.2 -c  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic  -I/opt/local/include -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -arch x86_64 -O2 -arch x86_64 -pipe     -DDFLT_STTY="\"sane\""  exp_chan.c -o shared/exp_chan.o ; \
        fi
/usr/bin/gcc-4.2 -c -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -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 -DHAVE_LIMITS_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DTCL_CFG_DO64BIT=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DHAVE_XSS=1 -DHAVE_LIBXFT=1 -DHAVE_XFT=1   -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic  -I/opt/local/include -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -arch x86_64 -O2 -arch x86_64 -pipe     exp_main_tk.c
In file included from exp_main_tk.c:37:
/opt/local/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
exp_main_tk.c: In function 'Tk_Init2':
exp_main_tk.c:301: warning: incompatible implicit declaration of built-in function 'strrchr'
exp_main_tk.c: In function 'optcmd_debug':
exp_main_tk.c:444: warning: incompatible implicit declaration of built-in function 'strcpy'
make: *** [exp_main_tk.o] Error 1
make: *** Waiting for unfinished jobs....
Dbg.c: In function 'PrintStackBelow':
Dbg.c:469: warning: passing argument 3 of 'print_objv' discards qualifiers from pointer target type
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
           if [ ! -d shared ] ; then \
                mkdir shared ; \
           else true; fi ; \
           /usr/bin/gcc-4.2 -c  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic  -I/opt/local/include -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -arch x86_64 -O2 -arch x86_64 -pipe     -DDFLT_STTY="\"sane\""  Dbg.c -o shared/Dbg.o ; \
        fi

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

The complete build debug log is attached

Attachments (1)

expect-build.log (41.3 KB) - added by matteocorti (Matteo Corti) 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by matteocorti (Matteo Corti)

Attachment: expect-build.log added

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to markd@…
Port: expect added
Summary: expectt-5.43.0 build failureexpect-5.43.0 build failure

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #23154, please search before filing new tickets.

Note: See TracTickets for help on using tickets.