View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001090 | libextractor | build system | public | 2006-05-12 16:21 | 2006-05-17 01:43 |
| Reporter | Patrick BURNAND | Assigned To | Christian Grothoff | ||
| Priority | normal | Severity | trivial | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.5.13 | ||||
| Summary | 0001090: recursive reference to CXXFLAGS in pdf module | ||||
| Description | My make refuses to compile the pdf module due to a recursive reference of CXXFLAGS. The problem is at this place in the Makefile: # gcc 3.3 produces BROKEN code for -O1 and -O2 (PDF extraction # would fail silently) hence we MUST override the user flag here # which may contain -O1 or -O2! CXXFLAGS = "`echo "$(CXXFLAGS)" | sed -e "s/-O?//g"` -O0" Calling make yields the following error message: Makefile:436: *** Recursive variable `CXXFLAGS' references itself (eventually). Stop. Since I use gcc 4.0.2, I simply commented this line out and then the compilation works. | ||||
| Additional Information | $ make -v: GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc -v: Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=x86_64-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) uname -a: Linux amd64 2.6.16.5-smp #3 SMP PREEMPT Tue May 2 11:19:05 CEST 2006 x86_64 x86_64 x86_64 GNU/Linux System: SUSE Linux 10.0 | ||||
| Tags | No tags attached. | ||||
|
|
Suggested fix: Compile using the flags in LIBEXT_PDF_CXXFLAGS, which would be defined as: LIBEXT_PDF_CXXFLAGS = "`echo "$(CXXFLAGS)" | sed -e "s/-O?//g"` -O0" Thus avoiding recursion... |
|
|
I guess causing problems in recent systems to work around legacy problems that few people have is a bad idea. Also, the C++, xpdf-based PDF extractor will die sooner rather than later anyway. For now, I've removed the CFLAGS-hack and instead put a note into PLATFORMS. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2006-05-12 16:21 | Patrick BURNAND | New Issue | |
| 2006-05-14 03:52 | Christian Grothoff | Status | new => confirmed |
| 2006-05-14 03:52 | Christian Grothoff | Status | confirmed => assigned |
| 2006-05-14 03:52 | Christian Grothoff | Assigned To | => Christian Grothoff |
| 2006-05-14 04:39 | Patrick BURNAND | Note Added: 0002638 | |
| 2006-05-17 00:14 | Christian Grothoff | Status | assigned => resolved |
| 2006-05-17 00:14 | Christian Grothoff | Resolution | open => fixed |
| 2006-05-17 00:14 | Christian Grothoff | Note Added: 0002650 | |
| 2006-05-17 01:43 | Christian Grothoff | Status | resolved => closed |