Sorry, I forgot to attach the log file.
-----Original Message-----
From: Abe, Sumiko
Sent: Thursday, August 12, 2010 2:31 PM
To: 'Martin Costabel'
Cc: Fink Core Group; 'Bernd Kuemmerlen'
Subject: RE: [fink-core] DCMTK and xmedcon unstable package install...
Hi Martin,
Thank you so much for all of your great help.
The gzip package are built successfully. Also, I have built xmedcon too, it works on my macbook now, very happy, :-)
But for DCMTK, not happy, :. It still could not be built...
The following is the output error, and the attached if is the config.log from dcmtk.
................
c++ -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include \
-I/sw/include -O -I/sw/include/libxml2 -I/sw/include -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall oflist.cc
c++ -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include \
-I/sw/include -O -I/sw/include/libxml2 -I/sw/include -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall ofstring.cc
In file included from /usr/include/sys/attr.h:42,
from /usr/include/sys/mount.h:76,
from /usr/include/libc.h:45,
from ../include/dcmtk/ofstd/ofstdinc.h:320,
from ../include/dcmtk/ofstd/ofstring.h:61,
from ofstring.cc:47:
/usr/include/sys/ucred.h:91: error: 'u_long' does not name a type
/usr/include/sys/ucred.h:137: error: 'u_int' does not name a type
In file included from /usr/include/sys/mount.h:76,
from /usr/include/libc.h:45,
from ../include/dcmtk/ofstd/ofstdinc.h:320,
from ../include/dcmtk/ofstd/ofstring.h:61,
from ofstring.cc:47:
/usr/include/sys/attr.h:77: error: 'u_short' does not name a type
/usr/include/sys/attr.h:430: error: 'u_long' does not name a type
/usr/include/sys/attr.h:442: error: 'u_char' does not name a type
make[2]: *** [ofstring.o] Error 1
make[1]: *** [libsrc-all] Error 2
make: *** [ofstd-all] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-dcmtk-3.5.4-1002
(Reading database ... 25650 files and directories currently installed.)
Removing fink-buildlock-dcmtk-3.5.4-1002 ...
Failed: phase compiling: dcmtk-3.5.4-1002 failed
Before reporting any errors, please run "fink selfupdate" and
try again. If you continue to have issues, please check to see if the
FAQ on fink's website solves the problem. If not, ask on the fink-users
or fink-beginners mailing lists, with a carbon copy to the maintainer:
Bernd Kuemmerlen <bkuemmer@...>
Note that this is preferable to emailing the maintainer directly, since
most fink package maintainers do not have access to all possible
hardware and software configurations.
Sorry for interrupt you again,
Sumiko
-----Original Message-----
From: Martin Costabel [mailto:costabel@...]
Sent: Thursday, August 12, 2010 2:43 AM
To: Abe, Sumiko
Cc: Fink Core Group
Subject: Re: [fink-core] DCMTK and xmedcon unstable package install...
Abe, Sumiko wrote:
> Hi Martin,
>
> Thank you so much for your great information. I run the grep command and it show same result with yours.
>
> sh-3.2#
> sh-3.2# grep "ASCPPPOST " /sw/src/fink.build/gzip-1.4-2/gzip-1.4/lib/Makefile
> ASCPPPOST = sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\. /./g'
So your sed is OK, and I suppose even your make is OK, and this is
simply bad makefile syntax. Make apparently considers # as comment
character, even inside quotes, and interprets the above line as
equivalent to
ASCPPPOST = sed '/^ *
So this is a real bug in the gzip build system. They should have escaped
the # character. Indeed, writing \# instead of # in lib/Makefile makes
the bug go away. But the bug usually does not show up, see below.
> sh-3.2#
>
> Also, Please take a look at the attached config.log file of gzip package.
The main difference appears to be that you get
configure:22627: checking for an assembler syntax supported by this package
configure:22657: result: yes
whereas I have result: no.
This accounts for the fact that later on your build process tries to
handle this "match" stuff where it fails. It looks like this part really
is buggy, but the bug has never been encountered, because everyone else
has "no" at the above test.
Staring at the configure script for a while, I get the following strong
suspicion:
You have a file named "config.h" in either /sw/include/ or
/usr/local/include/ . If you remove this, you will get the same result
(no) for the assembler syntax test as me and everyone else, and the
build will proceed.
This is a situation where one bug (#include <config.h> in lib/match.c)
masks another (the make syntax error), and you only see the latter
because of a third bug, namely your stray config.h.
Since gzip is so basic for fink, I think something should be done about
this, like predefining the result of the above assembler test as "no",
so that it does not depend on the existence of a stray config.h. Or
define it as "yes", and fix lib/Makefile and lib/match.c.
Better yet, we should remove the completely superfluous gzip package
from Fink, together with the other equally superfluous unzip and bzip2
packages. This would speed up bootstrapping considerably (but I know
that this is a dream...)
--
Martin
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.
|