Re: [htdig] make error on solaris 2.6


Subject: Re: [htdig] make error on solaris 2.6
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Mon Jan 15 2001 - 14:10:34 PST


According to Ronald Edward Petty:
> When I was doing make I got this error for DocumentDB.cc and I did a work
> around doing this, but then I type make again and it gets past
> DocumentDB.cc and does this for the next file... Is there something wrong
> with my shell or something... I dont feel like typing
> #!/usr/bin/tcsh
>
> setenv BIN_DIR /export/netapp/user/rpy/htdig/bin
> setenv DCOMMON_DIR "/export/netapp/user/rpy/htdig/common"
> setenv DCONFIG_DIR "/export/netapp/user/rpy/htdig/conf"
> setenv DATABASE_DIR "/export/netapp/user/rpy/htdig/db"
> setenv IMAGE_URL_PREFIX "/export/netapp/user/rpy/htdig/images"
> setenv PDF_PARSER "/usr/local/bin/acroread"
> setenv SORT_PROG "/bin/sort"
> setenv DEFAULT_CONFIG_FILE "/export/netapp/user/rpy/htdig/conf/htdig.conf"
>
>
> c++ -c -DBIN_DIR -DCOMMON_DIR -DCONFIG_DIR -DDATABASE_DIR
> -DIMAGE_URL_PREFIX -DPDF_PARSER -DSORT_PROG -DDEFAULT_CONFIG_FILE
> -I../htlib -I../ht
> common -I../db/dist -I../include -g -O2 DocumentDB.cc
>
>
> -----
> Any idea why this top thing worked but the other doesn't
> -----
>
>
> ares:/export/netapp/user/rpy/htdig-3.1.5/> make
> make[1]: Entering directory `/export/netapp/user/rpy/htdig-3.1.5/db/dist'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/export/netapp/user/rpy/htdig-3.1.5/db/dist'
> make[1]: Entering directory `/export/netapp/user/rpy/htdig-3.1.5/htlib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/export/netapp/user/rpy/htdig-3.1.5/htlib'
> make[1]: Entering directory `/export/netapp/user/rpy/htdig-3.1.5/htcommon'
> c++ -c -DBIN_DIR=\"/export/netapp/user/rpy/htdig/bin\"
> -DCOMMON_DIR=\"/export/netapp/user/rpy/htdig/common\"
> -DCONFIG_DIR=\"/export/netapp/user/rpy/htdig/conf\"
> -DDATABASE_DIR=\"/export/netapp/user/rpy/htdig/db\"
> -DIMAGE_URL_PREFIX=\"/export/netapp/user/rpy/htdig/images \"

                                                           ^
                                                           |
I think the problem is right here. ------------------------+
There seems to be a space (or maybe a control character) in your definition
for the IMAGE_URL_PREFIX, which is messing things up.

> -DPDF_PARSER=\"/usr/local/bin/acroread\" -DSORT_PROG=\"/bin/sort\"
> -DDEFAULT_CONFIG_FILE=\"/export/netapp/user/rpy/htdig/conf/htdig.conf\"
> -I../htlib -I../htcommon -I../db/dist -I../include -g -O2 DocumentRef.cc
> c++: ": No such file or directory
> DocumentRef.cc:0: unterminated string or character constant
> DocumentRef.cc:0: possible real start of unterminated constant
> make[1]: *** [DocumentRef.o] Error 1
> make[1]: Leaving directory `/export/netapp/user/rpy/htdig-3.1.5/htcommon'
> make: *** [all] Error 1
> ares:/export/netapp/user/rpy/htdig-3.1.5/>

By the way, I think you may be misunderstanding what the IMAGE_URL_PREFIX
is supposed to be. It's supposed to be an URL path, relative to the
DocumentRoot of your web server, not relative to your system's root
directory. It's the IMAGE_DIR that is relative to the system's root
directory, but it must point to a directory that will be somewhere under
the DocumentRoot, so that the installed image files can be accessed by
web clients.

E.g., on my system, IMAGE_DIR is set to /home/httpd/html/htdig, and
my Apache configuration sets DocumentRoot to /home/httpd/html, so my
IMAGE_URL_PREFIX is simply "/htdig".

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Mon Jan 15 2001 - 14:24:47 PST