Tru64unix 5.1A
tcl/tk 8.4.1
tkimg1.3rc.tar.bz2
configure from CVS
make failed in libjpeg, jpeg, and tiff
because jconfig.h was not found.
configure have created jconfig.h
in libjpeg/tcl/libjpeg/libjpeg/.
After I made a symlink like this
demo/demo.tcl works well.
pushd libjpeg/tcl/libjpeg/
ln -s libjpeg/jconfig.h .
popd
Logged In: YES
user_id=75003
Is the problem still present in tkimg 1.3 rc 2 ?
Logged In: YES
user_id=49637
Tru64unix 5.1A
tcl/tk 8.4.2
tkimg1.3rc2.tar.bz2
Yes, the problem is still present in tkimg 1.3 rc 2. I
think gcc try to find header files in /usr/local/include/ by
default, but cc on Tru64. I suppose peaple have jconfig.h
in /usr/local/include/ and it is used instead of
./libjpeg/jconfig.h.
Some more details follow.
env CC="cc -std1 -pthread" ./configure \
--prefix=/usr/new/pkg/tcl8.4.2
--with-tcl=/usr/new/pkg/tcl8.4.2/lib \
| & tee ../tkimg1.3rc2-orange-make1.log
make |& tee ../tkimg1.3rc2-orange-make2.log
...
make[1]: Entering directory
/mnt/localsrc/tk_apl/tkimg/Tobedel/tkimg1.3rc2/libjpeg/tcl' cc -std1 -pthread -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_READDIR_R=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAV E_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTI ME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -Dsocklen_t=unsigne d -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_FIONBIO=1 -DVERSION=\"1.0\" -DJPEGTCL_VERSION=\"1.0\" -DUSE_TCL_STUBS=1 -DHAVE_TZS ET -std1 -I. -I./libjpeg -I"/usr/new/pkg/tcl8.4.2/include" -DPACKAGE_NAME=\"jpegtcl\" -O -cecho jpegtcl.c` -ojpegtcl.o
cc: Severe: ./../jpeglib.h, line 24: Cannot find file
"jconfig.h" specified in #
include directive. (noinclfilef)
include "jconfig.h" /* widely used configuration
options */
-^
make[1]: *** [jpegtcl.o] Error 1
make[1]: Leaving directory
`/mnt/localsrc/tk_apl/tkimg/Tobedel/tkimg1.3rc2/libjpeg/tcl'
...
pushd libjpeg/tcl/libjpeg/
ln -s libjpeg/jconfig.h .
popd
make |& tee ../tkimg1.3rc2-orange-make2b.log
make test |& tee ../tkimg1.3rc2-orange-make3.log
make install | & tee ../tkimg1.3rc2-orange-make4.log
wish8.4.2 demo/demo.tcl
Logged In: YES
user_id=204408
Using tkimg1.3rc2, I saw possibly related problems on HP-UX 11.00. In this case, configure did not even create
jconfig.h, and warns about not finding tclConfig.sh when it is dealing with the jpeg stuff.
It looks like the libjpeg/tcl/configure script assumes a wrong subdirectory level with respect to tkimg1.3rc2 - at
least if you don't pass the --srcdir option. As soon as I configured with --srcdir pointing to the absolute path,
everything worked OK.
Logged In: YES
user_id=585068
With the help of Joe English I managed to build the HEAD
(from Nov 29, 2004) with the core-8-4-branch from the same
date.
The jconfig.h problem still exists. I found that libjpeg in
the tkimg directory wasn't being configured, so in
tkimg/libjpeg I ran
./configure --prefix=/home/gps/src/cvs/stable/Nov_29_test
That prefix is the same as the prefix I chose when
configuring img, Tcl, and Tk. After configuring libjpeg I
was able to build jpegtcl from the toplevel tkimg directory
using make.
After a fresh checkout on a system which doesn't have jconfig.h
in one of the system include directories, the same happens with
me. So this looks like a valid issue.
Another hint: When running configure, I see in stderr:
mkdir: cannot create directory 'libjpeg': File exists
env: ./../compat/libjpeg/configure: No such file or directory
This points to lines 206-210 in configure.in, something
is not quite right there.
Upping prio, making it a requirement for the 'official' 1.4 release.
this patch seems to work
Checked in in HEAD.
Backport to tkimg 1.3?