Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
[Pdfedit-support] Compiling on PCBSD (FreeBSD) - boost problems -
boost installed but not recognised
From: Root <rodneyh@bi...> - 2007-09-18 15:51:59
Attachments:
Message as HTML
|
I'm using PCBSD 1.4 beta, based on FreeBSD 6.2-stable. Boost is installed: pcbsd# pkg_info|grep boost boost-1.34.1 Free peer-reviewed portable C++ source libraries OK, I used the FreeBSD instructions in the readme. To get the configure to work, I had to use: ./configure -- CPPFLAGS="-I /usr/local/include" LDFLAG="-L /usr/local/include" (not just ./configure as in the README, which resulted in an error saying the boost libraries are needed, when in fact they are installed). The boost headers are in /usr/local/include/boost. config.log is shown below - no errors from boost. Upon attempting make, boost is not defined and the compile fails as below. How do I overcome this? I've tried and failed with: setenv boost /usr/local/include/boost I also failed with editing src/Makefile.flags to include boost=/usr/local/include/boost. How do I get the compilation to recognise the location of the boost header files? Thanks, Rod. cd doc && ( gmake doc_dist|| make doc_dist ) cd user && ( gmake all_no_pdf || make all_no_pdf ) gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' gmake[1]: Nothing to be done for `all_no_pdf'. gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' cd design && ( gmake all_no_pdf || make all_no_pdf ) gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' gmake[1]: Nothing to be done for `all_no_pdf'. gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' cd src && make cd xpdf && make libxpdf cd goo; make cd fofi; make cd splash; make cd xpdf; make libxpdf cd utils && make g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -o delinearizator.o delinearizator.cc In file included from ../kernel/pdfwriter.h:90, from delinearizator.h:56, from delinearizator.cc:47: ../utils/observer.h:149:26: shared_ptr.hpp: No such file or directory In file included from ../kernel/pdfwriter.h:90, from delinearizator.h:56, from delinearizator.cc:47: ../utils/observer.h:225: error: `boost' has not been declared ../utils/observer.h:225: error: ISO C++ forbids declaration of `shared_ptr' with no type ../utils/observer.h:225: error: expected `;' before '<' token ../utils/observer.h:230: error: `boost' has not been declared ../utils/observer.h:230: error: expected `)' before '<' token ../utils/observer.h:250: error: `boost' has not been declared ../utils/observer.h:250: error: ISO C++ forbids declaration of `shared_ptr' with no type ../utils/observer.h:250: error: `shared_ptr' declared as a `virtual' field ../utils/observer.h:250: error: expected `;' before '<' token ../utils/observer.h:254: error: expected `;' before '}' token ../utils/observer.h:278: error: `boost' has not been declared ../utils/observer.h:278: error: expected `)' before '<' token ../utils/observer.h:318: error: `boost' has not been declared ../utils/observer.h:318: error: ISO C++ forbids declaration of `shared_ptr' with no type ../utils/observer.h:318: error: expected `;' before '<' token ../utils/observer.h:325: error: `boost' has not been declared ../utils/observer.h:325: error: expected `)' before '<' token ../utils/observer.h:330: error: `boost' has not been declared ...................................................................................................................................................................... Here's the config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by PDFedit configure 0.3.2, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure -- CPPFLAGS=-I /usr/local/include LDFLAG=-L /usr/local/include ## --------- ## ## Platform. ## ## --------- ## hostname = pcbsd uname -m = i386 uname -r = 6.2-STABLE uname -s = FreeBSD uname -v = FreeBSD 6.2-STABLE #50: Wed Jul 18 13:15:37 PDT 2007 root@...:/usr/obj/usr/src/sys/PCBSD /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/games PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/X11R6/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1795: checking for g++ configure:1811: found /usr/bin/g++ configure:1822: result: g++ configure:1853: checking for C++ compiler version configure:1860: g++ --version >&5 g++ (GCC) 3.4.6 [FreeBSD] 20060305 Copyright (C) 2006 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. configure:1863: $? = 0 configure:1870: g++ -v >&5 Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.6 [FreeBSD] 20060305 configure:1873: $? = 0 configure:1880: g++ -V >&5 g++: `-V' option must have argument configure:1883: $? = 1 configure:1906: checking for C++ compiler default output file name configure:1933: g++ -I /usr/local/include conftest.cpp >&5 configure:1936: $? = 0 configure:1974: result: a.out configure:1991: checking whether the C++ compiler works configure:2001: ./a.out configure:2004: $? = 0 configure:2021: result: yes configure:2028: checking whether we are cross compiling configure:2030: result: no configure:2033: checking for suffix of executables configure:2040: g++ -o conftest -I /usr/local/include conftest.cpp >&5 configure:2043: $? = 0 configure:2067: result: configure:2073: checking for suffix of object files configure:2099: g++ -c -I /usr/local/include conftest.cpp >&5 configure:2102: $? = 0 configure:2125: result: o configure:2129: checking whether we are using the GNU C++ compiler configure:2158: g++ -c -I /usr/local/include conftest.cpp >&5 configure:2164: $? = 0 configure:2181: result: yes configure:2186: checking whether g++ accepts -g configure:2216: g++ -c -g -I /usr/local/include conftest.cpp >&5 configure:2222: $? = 0 configure:2321: result: yes configure:2392: checking for gcc configure:2408: found /usr/bin/gcc configure:2419: result: gcc configure:2657: checking for C compiler version configure:2664: gcc --version >&5 gcc (GCC) 3.4.6 [FreeBSD] 20060305 Copyright (C) 2006 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. configure:2667: $? = 0 configure:2674: gcc -v >&5 Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.6 [FreeBSD] 20060305 configure:2677: $? = 0 configure:2684: gcc -V >&5 gcc: `-V' option must have argument configure:2687: $? = 1 configure:2690: checking whether we are using the GNU C compiler configure:2719: gcc -c -I /usr/local/include conftest.c >&5 configure:2725: $? = 0 configure:2742: result: yes configure:2747: checking whether gcc accepts -g configure:2777: gcc -c -g -I /usr/local/include conftest.c >&5 configure:2783: $? = 0 configure:2882: result: yes configure:2899: checking for gcc option to accept ISO C89 configure:2973: gcc -c -g -O2 -I /usr/local/include conftest.c >&5 configure:2979: $? = 0 configure:3002: result: none needed configure:3020: checking whether make sets $(MAKE) configure:3041: result: yes configure:3093: checking for ranlib configure:3109: found /usr/bin/ranlib configure:3120: result: ranlib configure:3153: checking how to run the C++ preprocessor configure:3189: g++ -E -I /usr/local/include conftest.cpp configure:3195: $? = 0 configure:3226: g++ -E -I /usr/local/include conftest.cpp conftest.cpp:8:28: ac_nonexistent.h: No such file or directory configure:3232: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3265: result: g++ -E configure:3294: g++ -E -I /usr/local/include conftest.cpp configure:3300: $? = 0 configure:3331: g++ -E -I /usr/local/include conftest.cpp conftest.cpp:8:28: ac_nonexistent.h: No such file or directory configure:3337: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3375: checking for grep that handles long lines and -e configure:3449: result: /usr/bin/grep configure:3454: checking for egrep configure:3532: result: /usr/bin/grep -E configure:3537: checking for ANSI C header files configure:3567: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3573: $? = 0 configure:3672: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3675: $? = 0 configure:3681: ./conftest configure:3684: $? = 0 configure:3701: result: yes configure:3725: checking for sys/types.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for sys/stat.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for stdlib.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for string.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for memory.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for strings.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for inttypes.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for stdint.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3725: checking for unistd.h configure:3746: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3752: $? = 0 configure:3768: result: yes configure:3790: checking boost/smart_ptr.hpp usability configure:3807: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3813: $? = 0 configure:3827: result: yes configure:3831: checking boost/smart_ptr.hpp presence configure:3846: g++ -E -I /usr/local/include conftest.cpp configure:3852: $? = 0 configure:3866: result: yes configure:3899: checking for boost/smart_ptr.hpp configure:3906: result: yes configure:3929: checking boost/iostreams/stream.hpp usability configure:3946: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:3952: $? = 0 configure:3966: result: yes configure:3970: checking boost/iostreams/stream.hpp presence configure:3985: g++ -E -I /usr/local/include conftest.cpp configure:3991: $? = 0 configure:4005: result: yes configure:4038: checking for boost/iostreams/stream.hpp configure:4045: result: yes configure:4059: checking for ANSI C header files configure:4223: result: yes configure:4251: checking limits.h usability configure:4268: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:4274: $? = 0 configure:4288: result: yes configure:4292: checking limits.h presence configure:4307: g++ -E -I /usr/local/include conftest.cpp configure:4313: $? = 0 configure:4327: result: yes configure:4360: checking for limits.h configure:4368: result: yes configure:4241: checking for stdlib.h configure:4247: result: yes configure:4241: checking for string.h configure:4247: result: yes configure:4241: checking for unistd.h configure:4247: result: yes configure:4382: checking for stdbool.h that conforms to C99 configure:4475: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 conftest.cpp:44: error: expected unqualified-id before string constant conftest.cpp:44: error: expected constructor, destructor, or type conversion before ';' token conftest.cpp:50: error: `s' was not declared in this scope conftest.cpp:51: error: `_Bool' was not declared in this scope conftest.cpp:51: error: expected `]' before numeric constant conftest.cpp:53: error: `_Bool' was not declared in this scope conftest.cpp:54: error: `s' was not declared in this scope conftest.cpp:56: error: `_Bool' does not name a type conftest.cpp:57: error: `n' was not declared in this scope conftest.cpp:57: error: `n' was not declared in this scope conftest.cpp:58: error: `_Bool' was not declared in this scope conftest.cpp:58: error: expected `]' before numeric constant conftest.cpp:82: error: `_Bool' does not name a type conftest.cpp:83: error: expected constructor, destructor, or type conversion before '*' token conftest.cpp: In function `int main()': conftest.cpp:89: error: `pq' was not declared in this scope conftest.cpp:89: error: `q' was not declared in this scope conftest.cpp:92: error: `f' was not declared in this scope conftest.cpp:92: error: `h' was not declared in this scope conftest.cpp:92: error: `i' was not declared in this scope conftest.cpp:93: error: `n' was not declared in this scope conftest.cpp:93: error: `o' was not declared in this scope conftest.cpp:93: error: `p' was not declared in this scope configure:4481: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_LIMITS_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | | #include <stdbool.h> | #ifndef bool | "error: bool is not defined" | #endif | #ifndef false | "error: false is not defined" | #endif | #if false | "error: false is not 0" | #endif | #ifndef true | "error: true is not defined" | #endif | #if true != 1 | "error: true is not 1" | #endif | #ifndef __bool_true_false_are_defined | "error: __bool_true_false_are_defined is not defined" | #endif | | struct s { _Bool s: 1; _Bool t; } s; | | char a[true == 1 ? 1 : -1]; | char b[false == 0 ? 1 : -1]; | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | char d[(bool) 0.5 == true ? 1 : -1]; | bool e = &s; | char f[(_Bool) 0.0 == false ? 1 : -1]; | char g[true]; | char h[sizeof (_Bool)]; | char i[sizeof s.t]; | enum { j = false, k = true, l = false * true, m = true * 256 }; | _Bool n[m]; | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | # if defined __xlc__ || defined __GNUC__ | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 | reported by James Lemley on 2005-10-05; see | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | This test is not quite right, since xlc is allowed to | reject this program, as the initializer for xlcbug is | not one of the forms that C requires support for. | However, doing the test right would require a runtime | test, and that would make cross-compilation harder. | Let us hope that IBM fixes the xlc bug, and also adds | support for this kind of constant expression. In the | meantime, this test will reject xlc, which is OK, since | our stdbool.h substitute should suffice. We also test | this with GCC, where it should work, to detect more | quickly whether someone messes up the test in the | future. */ | char digs[] = "0123456789"; | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); | # endif | /* Catch a bug in an HP-UX C compiler. See | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | */ | _Bool q = true; | _Bool *pq = &q; | | int | main () | { | | *pq |= q; | *pq |= ! q; | /* Refer to every declared value, to avoid compiler optimizations. */ | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | + !m + !n + !o + !p + !q + !pq); | | ; | return 0; | } configure:4496: result: no configure:4498: checking for _Bool configure:4528: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 conftest.cpp:56: error: `_Bool' does not name a type conftest.cpp: In function `int main()': conftest.cpp:60: error: `ac__type_new_' was not declared in this scope conftest.cpp:60: error: expected primary-expression before ')' token conftest.cpp:60: error: expected `)' before numeric constant conftest.cpp:62: error: `ac__type_new_' was not declared in this scope configure:4534: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_LIMITS_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | typedef _Bool ac__type_new_; | int | main () | { | if ((ac__type_new_ *) 0) | return 0; | if (sizeof (ac__type_new_)) | return 0; | ; | return 0; | } configure:4549: result: no configure:4568: checking for an ANSI C-conforming const configure:4643: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:4649: $? = 0 configure:4664: result: yes configure:4674: checking for inline configure:4700: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:4706: $? = 0 configure:4724: result: inline configure:4743: checking for size_t configure:4773: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:4779: $? = 0 configure:4794: result: yes configure:4806: checking whether struct tm is in sys/time.h or time.h configure:4836: g++ -c -g -O2 -I /usr/local/include conftest.cpp >&5 configure:4842: $? = 0 configure:4857: result: time.h configure:4868: checking for error_at_line configure:4894: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 conftest.cpp:23:19: error.h: No such file or directory conftest.cpp: In function `int main()': conftest.cpp:27: error: `error_at_line' was not declared in this scope configure:4900: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_LIMITS_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <error.h> | int | main () | { | error_at_line (0, 0, "", 0, "an error occurred"); | ; | return 0; | } configure:4917: result: no configure:4933: checking for stdlib.h configure:4939: result: yes configure:5073: checking for GNU libc compatible malloc configure:5107: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5110: $? = 0 configure:5116: ./conftest configure:5119: $? = 0 configure:5135: result: yes configure:5163: checking whether lstat dereferences a symlink specified with a trailing slash configure:5199: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5202: $? = 0 configure:5208: ./conftest configure:5211: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "PDFedit" | #define PACKAGE_TARNAME "pdfedit" | #define PACKAGE_VERSION "0.3.2" | #define PACKAGE_STRING "PDFedit 0.3.2" | #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_LIMITS_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_MALLOC 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | int | main () | { | struct stat sbuf; | /* Linux will dereference the symlink and fail. | That is better in the sense that it means we will not | have to compile and use the lstat wrapper. */ | return lstat ("conftest.sym/", &sbuf) == 0; | ; | return 0; | } configure:5234: result: no configure:5253: checking whether stat accepts an empty string configure:5283: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5286: $? = 0 configure:5292: ./conftest configure:5295: $? = 0 configure:5311: result: no configure:5331: checking for strftime configure:5387: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5393: $? = 0 configure:5411: result: yes configure:5505: checking for atexit configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for floor configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for ftruncate configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for localtime_r configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for memset configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for mkdir configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for strdup configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for strerror configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for strpbrk configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5505: checking for strstr configure:5561: g++ -o conftest -g -O2 -I /usr/local/include conftest.cpp >&5 configure:5567: $? = 0 configure:5585: result: yes configure:5702: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by PDFedit config.status 0.3.2, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on pcbsd config.status:604: creating Makefile config.status:604: creating config.pro.in config.status:604: creating src/utils/aconf.h config.status:835: src/utils/aconf.h is unchanged config.status:848: executing default commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_c_inline=inline ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-I /usr/local/include' ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_atexit=yes ac_cv_func_floor=yes ac_cv_func_ftruncate=yes ac_cv_func_localtime_r=yes ac_cv_func_lstat_dereferences_slashed_symlink=no ac_cv_func_malloc_0_nonnull=yes ac_cv_func_memset=yes ac_cv_func_mkdir=yes ac_cv_func_stat_empty_string_bug=no ac_cv_func_strdup=yes ac_cv_func_strerror=yes ac_cv_func_strftime=yes ac_cv_func_strpbrk=yes ac_cv_func_strstr=yes ac_cv_header_boost_iostreams_stream_hpp=yes ac_cv_header_boost_smart_ptr_hpp=yes ac_cv_header_inttypes_h=yes ac_cv_header_limits_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdbool_h=no ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_lib_error_at_line=no ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes ac_cv_struct_tm=time.h ac_cv_type__Bool=no ac_cv_type_size_t=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='gcc' CFLAGS='-g -O2' CPPFLAGS='-I /usr/local/include' CXX='g++' CXXCPP='g++ -E' CXXFLAGS='-g -O2' DEFS='-DHAVE_CONFIG_H' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' GREP='/usr/bin/grep' LDFLAGS='' LIBOBJS=' ${LIBOBJDIR}error$U.o ${LIBOBJDIR}lstat$U.o' LIBS='' LTLIBOBJS=' ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}lstat$U.lo' OBJEXT='o' PACKAGE_BUGREPORT='BUGTRACKER - http://pdfedit.petricek.net/bt/ ' PACKAGE_NAME='PDFedit' PACKAGE_STRING='PDFedit 0.3.2' PACKAGE_TARNAME='pdfedit' PACKAGE_VERSION='0.3.2' PATH_SEPARATOR=':' RANLIB='ranlib' SET_MAKE='' SHELL='/bin/bash' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' enable_release='yes' exec_prefix='${prefix}' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "PDFedit" #define PACKAGE_TARNAME "pdfedit" #define PACKAGE_VERSION "0.3.2" #define PACKAGE_STRING "PDFedit 0.3.2" #define PACKAGE_BUGREPORT "BUGTRACKER - http://pdfedit.petricek.net/bt/ " #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define HAVE_LIMITS_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_UNISTD_H 1 #define HAVE_STDLIB_H 1 #define HAVE_MALLOC 1 #define HAVE_STRFTIME 1 #define HAVE_ATEXIT 1 #define HAVE_FLOOR 1 #define HAVE_FTRUNCATE 1 #define HAVE_LOCALTIME_R 1 #define HAVE_MEMSET 1 #define HAVE_MKDIR 1 #define HAVE_STRDUP 1 #define HAVE_STRERROR 1 #define HAVE_STRPBRK 1 #define HAVE_STRSTR 1 configure: exit 0 |
From: Michal Hocko <mstsxfx@gm...> - 2007-09-26 17:46:48
|
Hi. Sorry for delay. On Wed, Sep 19, 2007 at 01:51:39AM +1000, Root wrote: > I'm using PCBSD 1.4 beta, based on FreeBSD 6.2-stable. > Boost is installed: > > pcbsd# pkg_info|grep boost > boost-1.34.1 Free peer-reviewed portable C++ source libraries > > OK, I used the FreeBSD instructions in the readme. > To get the configure to work, I had to use: > > ./configure -- CPPFLAGS="-I /usr/local/include" LDFLAG="-L /usr/local/include" > [...] > > cd doc && ( gmake doc_dist|| make doc_dist ) > cd user && ( gmake all_no_pdf || make all_no_pdf ) > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > gmake[1]: Nothing to be done for `all_no_pdf'. > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > cd design && ( gmake all_no_pdf || make all_no_pdf ) > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > gmake[1]: Nothing to be done for `all_no_pdf'. > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > cd src && make > cd xpdf && make libxpdf > cd goo; make > cd fofi; make > cd splash; make > cd xpdf; make libxpdf > cd utils && make > g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -o delinearizator.o delinearizator.cc Seems like include path from configure doesn't get to the src/utils/Makefile. It would be good to report this as bug to our bug tracker (http://pdfedit.petricek.net/bt/main_page.php) and add your boost path to the INCPATH variable in the mean time (src/utils/Makefile - however I assume that same has to be done also for src/{kernel,gui}/Makefile). > In file included from ../kernel/pdfwriter.h:90, > from delinearizator.h:56, > from delinearizator.cc:47: > ../utils/observer.h:149:26: shared_ptr.hpp: No such file or directory > In file included from ../kernel/pdfwriter.h:90, > from delinearizator.h:56, > from delinearizator.cc:47: > ../utils/observer.h:225: error: `boost' has not been declared > ../utils/observer.h:225: error: ISO C++ forbids declaration of `shared_ptr' with no type > ../utils/observer.h:225: error: expected `;' before '<' token > ../utils/observer.h:230: error: `boost' has not been declared > ../utils/observer.h:230: error: expected `)' before '<' token > ../utils/observer.h:250: error: `boost' has not been declared > ../utils/observer.h:250: error: ISO C++ forbids declaration of `shared_ptr' with no type [...] Best regards. -- Michal Hocko |
From: Rodney Hoskinson <rodneyh@bi...> - 2007-10-11 11:58:44
Attachments:
Message as HTML
|
On Thu, 27 Sep 2007 3:55:57 am Michal Hocko wrote: > Hi. > > Sorry for delay. > > On Wed, Sep 19, 2007 at 01:51:39AM +1000, Root wrote: > > I'm using PCBSD 1.4 beta, based on FreeBSD 6.2-stable. > > Boost is installed: > > > > pcbsd# pkg_info|grep boost > > boost-1.34.1 Free peer-reviewed portable C++ source libraries > > > > OK, I used the FreeBSD instructions in the readme. > > To get the configure to work, I had to use: > > > > ./configure -- CPPFLAGS="-I /usr/local/include" LDFLAG="-L > > /usr/local/include" > > [...] > > > cd doc && ( gmake doc_dist|| make doc_dist ) > > cd user && ( gmake all_no_pdf || make all_no_pdf ) > > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > > gmake[1]: Nothing to be done for `all_no_pdf'. > > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > > cd design && ( gmake all_no_pdf || make all_no_pdf ) > > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > > gmake[1]: Nothing to be done for `all_no_pdf'. > > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > > cd src && make > > cd xpdf && make libxpdf > > cd goo; make > > cd fofi; make > > cd splash; make > > cd xpdf; make libxpdf > > cd utils && make > > g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi > > -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG > > -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash > > -I../xpdf/fofi -o delinearizator.o delinearizator.cc > > Seems like include path from configure doesn't get to the > src/utils/Makefile. It would be good to report this as bug to our bug > tracker (http://pdfedit.petricek.net/bt/main_page.php) and add your boost > path to the INCPATH variable in the mean time (src/utils/Makefile - however > I assume that same has to be done also for src/{kernel,gui}/Makefile). > > > In file included from ../kernel/pdfwriter.h:90, > > from delinearizator.h:56, > > from delinearizator.cc:47: > > ../utils/observer.h:149:26: shared_ptr.hpp: No such file or directory > > In file included from ../kernel/pdfwriter.h:90, > > from delinearizator.h:56, > > from delinearizator.cc:47: > > ../utils/observer.h:225: error: `boost' has not been declared > > ../utils/observer.h:225: error: ISO C++ forbids declaration of > > `shared_ptr' with no type ../utils/observer.h:225: error: expected `;' > > before '<' token > > ../utils/observer.h:230: error: `boost' has not been declared > > ../utils/observer.h:230: error: expected `)' before '<' token > > ../utils/observer.h:250: error: `boost' has not been declared > > ../utils/observer.h:250: error: ISO C++ forbids declaration of > > `shared_ptr' with no type > > [...] > > Best regards. Thanks for the help so far. I still can't get the compile to "see" the boost libraries. Now, when the compiler starts compiling from the first boost source code file, it can't find other boost source files. Please see where it goes wrong below. Others have successfully compiled on FreeBSD so I wonder what is wrong with my setup? pcbsd# make cd doc && ( gmake doc_dist|| make doc_dist ) cd user && ( gmake all_no_pdf || make all_no_pdf ) gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' gmake[1]: Nothing to be done for `all_no_pdf'. gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' cd design && ( gmake all_no_pdf || make all_no_pdf ) gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' gmake[1]: Nothing to be done for `all_no_pdf'. gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' cd src && make cd xpdf && make libxpdf cd goo; make cd fofi; make cd splash; make cd xpdf; make libxpdf cd utils && make g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -I/usr/local/include/boost -o delinearizator.o delinearizator.cc In file included from ../utils/observer.h:149, from ../kernel/pdfwriter.h:90, from delinearizator.h:56, from delinearizator.cc:47: /usr/local/include/boost/shared_ptr.hpp:17:65: boost/config.hpp: No such file or directory /usr/local/include/boost/shared_ptr.hpp:25:28: boost/assert.hpp: No such file or directory /usr/local/include/boost/shared_ptr.hpp:26:36: boost/checked_delete.hpp: No such file or directory /usr/local/include/boost/shared_ptr.hpp:27:37: boost/throw_exception.hpp: No such file or directory /usr/local/include/boost/shared_ptr.hpp:28:41: boost/detail/shared_count.hpp: No such file or directory /usr/local/include/boost/shared_ptr.hpp:29:39: boost/detail/workaround.hpp: No such file or directory In file included from ../utils/observer.h:149, from ../kernel/pdfwriter.h:90, from delinearizator.h:56, from delinearizator.cc:47: /usr/local/include/boost/shared_ptr.hpp:86: error: variable or field `sp_enable_shared_from_this' declared void /usr/local/include/boost/shared_ptr.hpp:86: error: template declaration of `int boost::detail::sp_enable_shared_from_this' /usr/local/include/boost/shared_ptr.hpp:86: error: `shared_count' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:86: error: expected primary-expression before "const" /usr/local/include/boost/shared_ptr.hpp:86: error: expected primary-expression before "const" /usr/local/include/boost/shared_ptr.hpp:96: error: variable or field `sp_enable_shared_from_this' declared void /usr/local/include/boost/shared_ptr.hpp:96: error: `boost::detail::sp_enable_shared_from_this' declared as an `inline' variable /usr/local/include/boost/shared_ptr.hpp:96: error: `shared_count' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:96: error: expected primary-expression before '...' token /usr/local/include/boost/shared_ptr.hpp:97: error: initializer expression list treated as compound expression /usr/local/include/boost/shared_ptr.hpp:97: error: expected `,' or `;' before '{' token /usr/local/include/boost/shared_ptr.hpp:326:45: missing binary operator before token "(" /usr/local/include/boost/shared_ptr.hpp:347:46: missing binary operator before token "(" /usr/local/include/boost/shared_ptr.hpp:415: error: using-declaration for non-member at class scope /usr/local/include/boost/shared_ptr.hpp:415: error: expected `;' before "pn" /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr()': /usr/local/include/boost/shared_ptr.hpp:144: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(Y*)': /usr/local/include/boost/shared_ptr.hpp:149: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:151: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(Y*, D)': /usr/local/include/boost/shared_ptr.hpp:160: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:162: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(Y*, D, A)': /usr/local/include/boost/shared_ptr.hpp:167: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:169: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&)': /usr/local/include/boost/shared_ptr.hpp:180: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::weak_ptr<Y>&)': /usr/local/include/boost/shared_ptr.hpp:187: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::shared_ptr<Y>&)': /usr/local/include/boost/shared_ptr.hpp:194: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::shared_ptr<Y>&, boost::detail::static_cast_tag)': /usr/local/include/boost/shared_ptr.hpp:199: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::shared_ptr<Y>&, boost::detail::const_cast_tag)': /usr/local/include/boost/shared_ptr.hpp:204: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::shared_ptr<Y>&, boost::detail::dynamic_cast_tag)': /usr/local/include/boost/shared_ptr.hpp:209: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:213: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:213: error: `shared_count' is not a member of `boost::detail' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(const boost::shared_ptr<Y>&, boost::detail::polymorphic_cast_tag)': /usr/local/include/boost/shared_ptr.hpp:218: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:222: error: `throw_exception' is not a member of `boost' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(std::auto_ptr<_Tp1>&)': /usr/local/include/boost/shared_ptr.hpp:229: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:232: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:232: error: `shared_count' is not a member of `boost::detail' /usr/local/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(Ap, typename boost::detail::sp_enable_if_auto_ptr<Ap, int>::type)': /usr/local/include/boost/shared_ptr.hpp:239: error: class `boost::shared_ptr<T>' does not have any field named `pn' /usr/local/include/boost/shared_ptr.hpp:242: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:242: error: `shared_count' is not a member of `boost::detail' /usr/local/include/boost/shared_ptr.hpp: In member function `boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<Y>&)': /usr/local/include/boost/shared_ptr.hpp:257: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `bool boost::shared_ptr<T>::unique() const': /usr/local/include/boost/shared_ptr.hpp:377: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `long int boost::shared_ptr<T>::use_count() const': /usr/local/include/boost/shared_ptr.hpp:382: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `void boost::shared_ptr<T>::swap(boost::shared_ptr<T>&)': /usr/local/include/boost/shared_ptr.hpp:388: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `bool boost::shared_ptr<T>::_internal_less(const boost::shared_ptr<Y>&) const': /usr/local/include/boost/shared_ptr.hpp:393: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `void* boost::shared_ptr<T>::_internal_get_deleter(const std::type_info&) const': /usr/local/include/boost/shared_ptr.hpp:398: error: `pn' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp:510:45: missing binary operator before token "(" /usr/local/include/boost/shared_ptr.hpp:528:44: missing binary operator before token "(" In file included from ../kernel/xrefwriter.h:178, from delinearizator.cc:49: ../kernel/static.h:50:31: boost/smart_ptr.hpp: No such file or directory ../kernel/static.h:51:38: boost/iostreams/stream.hpp: No such file or directory ../kernel/static.h:52:48: boost/iostreams/filtering_stream.hpp: No such file or directory In file included from ../kernel/cstream.h:27, from ../kernel/cobject.h:46, from ../kernel/factories.h:15, from delinearizator.cc:51: ../kernel/filters.h: At global scope: ../kernel/filters.h:76: error: `boost::iostreams' has not been declared ../kernel/filters.h:76: error: expected initializer before "InputStream" ../kernel/filters.h:153: error: `boost::iostreams' has not been declared ../kernel/filters.h:154: error: expected class-name before '{' token ../kernel/filters.h:156: error: `boost::iostreams' has not been declared ../kernel/filters.h:156: error: ISO C++ forbids declaration of `input_filter_tag' with no type ../kernel/filters.h:156: error: expected `;' before "category" ../kernel/filters.h: In member function `int filters::NoFilter::get(Source&)': ../kernel/filters.h:165: error: `boost::iostreams' has not been declared ../kernel/filters.h: At global scope: ../kernel/filters.h:188: error: `boost::iostreams' has not been declared ../kernel/filters.h:225: error: `boost::iostreams' has not been declared ../kernel/filters.h:225: error: ISO C++ forbids declaration of `sink_tag' with no type ../kernel/filters.h:225: error: expected `;' before "category" In file included from ../kernel/cobject.h:46, from ../kernel/factories.h:15, from delinearizator.cc:51: ../kernel/cstream.h:62: error: `boost::iostreams' has not been declared ../kernel/cstream.h:62: error: ISO C++ forbids declaration of `filtering_streambuf' with no type ../kernel/cstream.h:62: error: expected `;' before '<' token ../kernel/cstream.h: In member function `void pdfobjects::CStream::encodeBuffer(const Container&)': ../kernel/cstream.h:433: error: `InputStream' is not a member of `filters' ../kernel/cstream.h:433: error: expected `;' before "in" ../kernel/cstream.h:440: error: `in' was not declared in this scope ../kernel/cstream.h:457: error: `boost::iostreams' has not been declared ../kernel/cstream.h:457: error: `stream' was not declared in this scope ../kernel/cstream.h:457: error: expected primary-expression before '>' token ../kernel/cstream.h:458: error: `in' was not declared in this scope ../kernel/cstream.h:458: error: `input' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::IProperty]': ../kernel/carray.h:180: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = pdfobjects::IProperty]': ../kernel/cdict.h:400: instantiated from here /usr/local/include/boost/shared_ptr.hpp:180: error: 'const class boost::shared_ptr<pdfobjects::IProperty>' has no member named 'pn' /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::CInt]': ../kernel/cobjectsimple.h:619: instantiated from `typename ItemType::Value pdfobjects::utils::getValueFromSimple(const boost::shared_ptr<pdfobjects::IProperty>&) [with ItemType = pdfobjects::CInt]' ../kernel/cobjectsimple.h:631: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::CReal]': ../kernel/cobjectsimple.h:619: instantiated from `typename ItemType::Value pdfobjects::utils::getValueFromSimple(const boost::shared_ptr<pdfobjects::IProperty>&) [with ItemType = pdfobjects::CReal]' ../kernel/cobjectsimple.h:638: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::CString]': ../kernel/cobjectsimple.h:619: instantiated from `typename ItemType::Value pdfobjects::utils::getValueFromSimple(const boost::shared_ptr<pdfobjects::IProperty>&) [with ItemType = pdfobjects::CString]' ../kernel/cobjectsimple.h:644: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::CName]': ../kernel/cobjectsimple.h:619: instantiated from `typename ItemType::Value pdfobjects::utils::getValueFromSimple(const boost::shared_ptr<pdfobjects::IProperty>&) [with ItemType = pdfobjects::CName]' ../kernel/cobjectsimple.h:649: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = pdfobjects::CDict]': ../kernel/cdict.h:827: instantiated from `boost::shared_ptr<T> pdfobjects::utils::getTypeFromDictionary(const boost::shared_ptr<pdfobjects::CDict>&, const std::string&) [with ItemType = pdfobjects::CDict]' ../kernel/cdict.h:915: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = const observer::IObserver<pdfobjects::IProperty>]': ../utils/observer.h:637: instantiated from `void observer::ObserverHandler<T>::notifyObservers(boost::shared_ptr<T>, boost::shared_ptr<const observer::IChangeContext<T> >) [with T = pdfobjects::IProperty]' delinearizator.cc:233: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `T* boost::shared_ptr<T>::operator->() const [with T = const observer::IObserver<pdfobjects::utils::OperationStep>]': ../utils/observer.h:637: instantiated from `void observer::ObserverHandler<T>::notifyObservers(boost::shared_ptr<T>, boost::shared_ptr<const observer::IChangeContext<T> >) [with T = pdfobjects::utils::OperationStep]' delinearizator.cc:233: instantiated from here /usr/local/include/boost/shared_ptr.hpp:315: error: `BOOST_ASSERT' was not declared in this scope /usr/local/include/boost/shared_ptr.hpp: In member function `boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = const observer::IObserver<pdfobjects::IProperty>]': /usr/include/c++/3.4/bits/vector.tcc:238: instantiated from `void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> >, _Alloc = std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> > >]' /usr/include/c++/3.4/bits/stl_vector.h:564: instantiated from `void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> >, _Alloc = std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> > >]' ../utils/observer.h:506: instantiated from `void observer::<unnamed>::PriorityList<T, Storage, Compare>::insert(const T&) [with T = boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> >, Storage = std::vector<boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> >, std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> > > >, Compare = observer::<unnamed>::PriorityComparator<boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> > >]' ../utils/observer.h:593: instantiated from `void observer::ObserverHandler<T>::registerObserver(const boost::shared_ptr<const observer::IObserver<T> >&) [with T = pdfobjects::IProperty]' delinearizator.cc:233: instantiated from here /usr/local/include/boost/shared_ptr.hpp:180: error: 'const class boost::shared_ptr<const observer::IObserver<pdfobjects::IProperty> >' has no member named 'pn' /usr/local/include/boost/shared_ptr.hpp: In member function `boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = const observer::IObserver<pdfobjects::utils::OperationStep>]': /usr/include/c++/3.4/bits/vector.tcc:238: instantiated from `void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> >, _Alloc = std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> > >]' /usr/include/c++/3.4/bits/stl_vector.h:564: instantiated from `void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> >, _Alloc = std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> > >]' ../utils/observer.h:506: instantiated from `void observer::<unnamed>::PriorityList<T, Storage, Compare>::insert(const T&) [with T = boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> >, Storage = std::vector<boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> >, std::allocator<boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> > > >, Compare = observer::<unnamed>::PriorityComparator<boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> > >]' ../utils/observer.h:593: instantiated from `void observer::ObserverHandler<T>::registerObserver(const boost::shared_ptr<const observer::IObserver<T> >&) [with T = pdfobjects::utils::OperationStep]' delinearizator.cc:233: instantiated from here /usr/local/include/boost/shared_ptr.hpp:180: error: 'const class boost::shared_ptr<const observer::IObserver<pdfobjects::utils::OperationStep> >' has no member named 'pn' *** Error code 1 Stop in /root/PDFedit/pdfedit-0.3.2/src/utils. *** Error code 1 Stop in /root/PDFedit/pdfedit-0.3.2/src. *** Error code 1 Stop in /root/PDFedit/pdfedit-0.3.2. pcbsd# |
From: Michal Hocko <mstsxfx@gm...> - 2007-10-14 07:52:16
|
On Thu, Oct 11, 2007 at 09:58:28PM +1000, Rodney Hoskinson wrote: > On Thu, 27 Sep 2007 3:55:57 am Michal Hocko wrote: [...] > > Thanks for the help so far. I still can't get the compile to "see" the boost libraries. Now, when the compiler starts compiling from the first boost source code file, it can't find other boost source files. Please see where it goes wrong below. > > Others have successfully compiled on FreeBSD so I wonder what is wrong with my setup? > > > > pcbsd# make > cd doc && ( gmake doc_dist|| make doc_dist ) > cd user && ( gmake all_no_pdf || make all_no_pdf ) > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > gmake[1]: Nothing to be done for `all_no_pdf'. > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > cd design && ( gmake all_no_pdf || make all_no_pdf ) > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > gmake[1]: Nothing to be done for `all_no_pdf'. > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > cd src && make > cd xpdf && make libxpdf > cd goo; make > cd fofi; make > cd splash; make > cd xpdf; make libxpdf > cd utils && make > g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -I/usr/local/include/boost -o delinearizator.o delinearizator.cc > In file included from ../utils/observer.h:149, > from ../kernel/pdfwriter.h:90, > from delinearizator.h:56, > from delinearizator.cc:47: > /usr/local/include/boost/shared_ptr.hpp:17:65: boost/config.hpp: No such file or directory You need to ad -I/usr/local/include without boost part, because boost headers are included with specified directory (e.g. #include <boost/config.h>). > /usr/local/include/boost/shared_ptr.hpp:25:28: boost/assert.hpp: No such file or directory [...] -- Michal Hocko |
From: Rodney Hoskinson <rodneyh@bi...> - 2007-10-16 12:27:10
|
On Sun, 14 Oct 2007 6:01:51 pm Michal Hocko wrote: > On Thu, Oct 11, 2007 at 09:58:28PM +1000, Rodney Hoskinson wrote: > > On Thu, 27 Sep 2007 3:55:57 am Michal Hocko wrote: > > [...] > > > Thanks for the help so far. I still can't get the compile to "see" the > > boost libraries. Now, when the compiler starts compiling from the first > > boost source code file, it can't find other boost source files. Please > > see where it goes wrong below. > > > > Others have successfully compiled on FreeBSD so I wonder what is wrong > > with my setup? > > > > > > > > pcbsd# make > > cd doc && ( gmake doc_dist|| make doc_dist ) > > cd user && ( gmake all_no_pdf || make all_no_pdf ) > > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > > gmake[1]: Nothing to be done for `all_no_pdf'. > > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/user' > > cd design && ( gmake all_no_pdf || make all_no_pdf ) > > gmake[1]: Entering directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > > gmake[1]: Nothing to be done for `all_no_pdf'. > > gmake[1]: Leaving directory `/root/PDFedit/pdfedit-0.3.2/doc/design' > > cd src && make > > cd xpdf && make libxpdf > > cd goo; make > > cd fofi; make > > cd splash; make > > cd xpdf; make libxpdf > > cd utils && make > > g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi > > -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG > > -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash > > -I../xpdf/fofi -I/usr/local/include/boost -o delinearizator.o > > delinearizator.cc In file included from ../utils/observer.h:149, > > from ../kernel/pdfwriter.h:90, > > from delinearizator.h:56, > > from delinearizator.cc:47: > > /usr/local/include/boost/shared_ptr.hpp:17:65: boost/config.hpp: No such > > file or directory > > You need to ad -I/usr/local/include without boost part, because boost > headers are included with specified directory (e.g. #include > <boost/config.h>). Thanks! That did the trick. Perhaps worth adding this to the FreeBSD instructions in the readme. Rod. > > > /usr/local/include/boost/shared_ptr.hpp:25:28: boost/assert.hpp: No such > > file or directory > > [...] |