Philipp Marek schrieb:
> On Friday 07 December 2007 Alexander Skwar wrote:
>> Hello again :)
>>
>> I'm trying to get fsvs to compile on a Solaris 10 Sparc
>> system. To configure, I ran:
>>
>> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>> LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>> CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
>> -I/opt/csw/include/subversion-1" \
>> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>> ./configure \
>> --prefix=$HOME/.software --with-aprinc=/opt/csw/apache2/include \
>> --with-aprlib=/opt/csw/apache2/lib --with-svnlib=/opt/csw/lib/svn \
>> --with-svninc=/opt/csw/include/subversion-1
>>
>> Now I'm trying to "make" it:
>>
>> CC=/opt/csw/gcc4/bin/gcc CPP=/opt/csw/gcc4/bin/cpp \
>> LDFLAGS="-L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn" \
>> CPPFLAGS="-I/opt/csw/include -I/opt/csw/apache2/include
>> -I/opt/csw/include/subversion-1" \
>> PATH=/opt/csw/gcc4/bin:/opt/csw/gnu:/opt/csw/bin:$PATH \
>> /opt/csw/bin/gmake
> The Makefile overrides these;
You mean, it's good enough when I use "--with-svninc", right?
Well, I tried both ways, just to make sure :)
> but they should have been picked up by the
> configure.
They have. Without LDFLAGS/CPPFLAGS and/or --with-..., configure
"fails", as the header files cannot be found.
> Could you send me the output of
> diff -u src/Makefile.in src/Makefile
>
> please?
Sure. It's attached.
Best regards,
Alexander
--- src/Makefile.in 2007-11-08 10:13:25.000000000 +0100
+++ src/Makefile 2007-12-07 12:26:19.330221000 +0100
@@ -15,19 +15,19 @@
HEADREV := "$Revision: 1124 $"
VERSION = $(shell perl -e '($$r) = (q( $(HEADREV) ) =~ m:(\d+):); $$t=
q( $(HEADURL) ) =~ m:/tags/([^/]+): ? $$1 : "trunk"; print "$$t:$$r\n";' )
-CFLAGS := @CFLAGS@
+CFLAGS := -g -O2 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -idirafter
/usr/local/include -idirafter /usr/include -idirafter /openpkg/include
-idirafter /opt/csw/apache2/include -idirafter /opt/csw/include/subversion-1
-idirafter /opt/csw/include/subversion-1
CFLAGS += -Wall -funsigned-char -Os -DFSVS_VERSION='"$(VERSION)"'
-LDFLAGS := @LDFLAGS@
+LDFLAGS := -L/opt/csw/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn
-L/usr/local/lib -L/openpkg/lib -L/opt/csw/apache2/lib -L/opt/csw/lib/svn
FSVS_LDFLAGS = $(LDFLAGS) -lsvn_subr-1 -lsvn_ra-1 -lsvn_client-1 -lpcre -lgdbm
ifdef RPATH
LDFLAGS += -Wl,-rpath,$(RPATH)
endif
-ifeq (@ENABLE_DEBUG@, 1)
+ifeq (, 1)
CFLAGS += -DDEBUG -g
LDFLAGS += -g
-ifeq (@ENABLE_GCOV@, 1)
+ifeq (, 1)
CFLAGS += -fprofile-arcs -ftest-coverage
LDFLAGS += -fprofile-arcs
endif
@@ -41,7 +41,7 @@
################################ Targets ###################################
-ifeq (@CHROOTER_JAIL@, )
+ifeq (, )
all: deps tags $(DEST) lsDEST
else
all: tools/fsvs-chrooter
@@ -102,7 +102,7 @@
$(DEST): $(C_FILES:%.c=%.o)
@echo " Link $@"
@$(CC) $(FSVS_LDFLAGS) $(LDLIBS) -o $@ $^
-ifeq (@ENABLE_RELEASE@, 1)
+ifeq (, 1)
-strip $@
endif
@@ -153,7 +153,7 @@
@$(MAKE) --no-print-directory tt DIR=$(DIR)
-ifeq (@ENABLE_GCOV@, 1)
+ifeq (, 1)
GCOV_FILES := $(C_FILES:%.c=%.c.gcov)
GCOV_SMRY_FILES := $(GCOV_FILES:%.gcov=%.gcov.smry)
GCOV_DATA := $(C_FILES:%.c=%.gcda) $(C_FILES:%.c=%.gcno)
@@ -195,7 +195,7 @@
################################ Testing ####################################
run-tests: $(DEST)
$(MAKE) -C ../tests BINARY=$(shell pwd)/$(DEST) $(TESTS)
-ifeq (@ENABLE_GCOV@, 1)
+ifeq (, 1)
# I don't know why, but gcov wants to open the .gcda and .gcno
# files Read-Write. I filed a bug report for this.
# If the tests are run as root (which is currently necessary because
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]