[rtg] Compiling RTG

John Center john.center at villanova.edu
Thu Apr 16 12:04:26 EDT 2009


Hi Adrian,

Thanks! That generally works, but configure is putting in spurious -I's 
that is making it fail:

configure:11123: checking png.h presence
configure:11138: cc -xc99 -E -I/opt/db/include -I/opt/openssl/include 
-I/opt/postgres/include -I/opt/mysql/include -I/opt/gnu/include 
-I/opt/local/include -I/usr/sfw/include -I/usr/include -I conftest.c
usage: cc [ options] files.  Use 'cc -flags' for details
configure:11145: $? = 1

This happens if I don't define --with-png or define it as "yes".  Once 
the -I's are removed, then make fails with spurious -L's:

LDFLAGS = -L/usr/local/ssl/lib -L -L/opt/mysql/lib -L/opt/local/lib 
-L/usr/lib -L/usr/local/lib -L/opt/openssl/lib/sparcv9 
-R/opt/openssl/lib/sparcv9 -L/opt/postgres/lib/sparcv9 
-R/opt/postgres/lib/sparcv9 -L/opt/db/lib/sparcv9 -R/opt/db/lib/sparcv9 
-L/opt/mysql/lib/sparcv9 -R/opt/mysql/lib/sparcv9 
-L/opt/gnu/lib/sparcv9 -R/opt/gnu/lib/sparcv9 -L/opt/local/lib/sparcv9 
-R/opt/local/lib/sparcv9 -L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9 
-L/usr/lib/sparcv9 -R/usr/lib/sparcv9
  -Wl,-ztext -Wl,-Bdirect -Wl,-zlazyload -Wl,-zcombreloc -Wl,-zignore


I'm trying to do a 64-bit build on Solaris 10 with Sun Studio 12, so 
these types of things come out of the woodwork. :-)  What would really 
be helpful would be --with-xxx-include & --with-xxx-lib, so I can point 
everything to the correct 64-bit libraries.  Also, since it checks for 
openssl, a --with-ssl-include & --with-ssl-lib would help, too.  Lastly, 
configure adds -L flags to things it's found to the front of LDFLAGS, 
even though I define the right locations later.  This means it finds the 
32-bit version, not the 64-bit version.

HTH

	-John



On 4/16/2009 2:41 AM, Adrian Chadd wrote:
> I've replicated your issue here.
>
> I'm doing the "squid" thing in trunk - I've added a new script called "bootstrap.sh"
> which will run automake/autoconf as required. This will generate your configure
> script and populate the build directory with the relevant stuff from your automake/
> autoconf install.
>
> Try that. :)
>
>
>
> adrian
>
> On Wed, Apr 15, 2009, John Center wrote:
>> Hi,
>>
>> I've been trying to compile the version of rtg from Google, but I'm not
>> having much success.  I'm using the latest version of GNU autotools.  I
>> first couldn't get configure to run to completion, so I ran autoupdate
>> to update the various macros.  I next ran autoreconf -if.  Once I did
>> this, configure would successfully run.  When I ran make, however, I get
>> the following errors:
>>
>> Making all in cgilib-0.4
>> gmake[1]: Entering directory `/opt/ws/builds/rtg/rtg2/cgilib-0.4'
>> source='cgi.c' object='cgi.o' libtool=no \
>> DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \
>> cc -xc99 -DHAVE_CONFIG_H -I. -I../config   -I/opt/openssl/include
>> -I/opt/postgres/include -I/opt/mysql/include -I/opt/gnu/include
>> -I/opt/local/include -I/usr/sfw/include -I/usr/include -I/usr//include
>> -I/opt/local//include -I -I/opt/mysql/include
>> -I/opt/local//include/net-snmp -I/opt/local//include/net-snmp/..  -g -xs
>> -fast -fsimple=1 -fns=no -xtarget=ultraT1 -xarch=sparcvis2 -m64 -mt
>> -xipo -xcode=pic32 -xpagesize=default -xregs=no%appl -xlic_lib=sunperf
>> -c cgi.c
>> "cgi.c", line 82: warning: implicit function declaration: bzero
>> "cgi.c", line 180: warning: implicit function declaration: index
>> rm -f libcgi.a
>> ar cru libcgi.a cgi.o
>> ranlib libcgi.a
>> gmake[1]: Leaving directory `/opt/ws/builds/rtg/rtg2/cgilib-0.4'
>> Making all in src
>> gmake[1]: Entering directory `/opt/ws/builds/rtg/rtg2/src'
>> /bin/bash ../config/ylwrap rtgtarg.y y.tab.c rtgtarg.c y.tab.h rtgtarg.h
>> y.output rtgtarg.output -- bison -y  -d
>> updating rtgtarg.h
>> /usr/sfw/bin/gmake  all-am
>> gmake[2]: Entering directory `/opt/ws/builds/rtg/rtg2/src'
>> source='librtgmysql.c' object='librtgmysql.lo' libtool=yes \
>> DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \
>> /bin/bash ../libtool   --mode=compile cc -xc99 -DHAVE_CONFIG_H -I.
>> -I../config -I../cgilib-0.4  -I/opt/openssl/include
>> -I/opt/postgres/include -I/opt/mysql/include -I/opt/gnu/include
>> -I/opt/local/include -I/usr/sfw/include -I/usr/include -I/usr//include
>> -I/opt/local//include -I -I/opt/mysql/include
>> -I/opt/local//include/net-snmp -I/opt/local//include/net-snmp/..  -g -xs
>> -fast -fsimple=1 -fns=no -xtarget=ultraT1 -xarch=sparcvis2 -m64 -mt
>> -xipo -xcode=pic32 -xpagesize=default -xregs=no%appl -xlic_lib=sunperf
>> -c -o librtgmysql.lo librtgmysql.c
>> ../libtool: line 401: CDPATH: command not found
>> ../libtool: line 1079: func_opt_split: command not found
>> libtool: Version mismatch error.  This is libtool 2.2.6, but the
>> libtool: definition of this LT_INIT comes from an older release.
>> libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
>> libtool: and run autoconf again.
>> gmake[2]: *** [librtgmysql.lo] Error 63
>> gmake[2]: Leaving directory `/opt/ws/builds/rtg/rtg2/src'
>> gmake[1]: *** [all] Error 2
>> gmake[1]: Leaving directory `/opt/ws/builds/rtg/rtg2/src'
>> gmake: *** [all-recursive] Error 1
>>
>> Notice that it successfully built libcgi.a, but blows up when trying to
>> compile librtgmysql.  I don't understand the "command not found"
>> messages, since CDPATH is an environment variable&  line 401 is
>> $lt_unset CDPATH&  func_opt_split is a macro defined in libtool.m4.  I
>> also don't understand the message about recreating aclocal.m4, since the
>> steps I took do recreate it.
>>
>> Any help would be greatly appreciated.
>>
>> Thanks.
>>
>> 	-John
>>
>> --
>> John Center
>> Villanova University
>> _______________________________________________
>> RTG mailing list
>> RTG at lists.grdata.com
>> http://lists.grdata.com/mailman/listinfo/rtg
>


More information about the RTG mailing list