Quantcast
Channel: Software Communities : Popular Discussions - All Things Unix
Viewing all articles
Browse latest Browse all 1046

Compile Errors when using HP-UX make for mod_auth_vas

$
0
0
We do not have/use GNU MAKE at our place. We used HP-UX MAKE to compile mod_auth_vas. Here are the errors I got...We were still able to brute force compile the module. However I am worried if this would be stable and if I could use it production with these errors.

The errors causing changes 1 and 3 are ones that would be interesting to see what other people have to say:

1. Modify "configure" script to ignore errors with gnu patsubst:

Error:
checking if make understands patsubst... no
configure: error: make does not understand GNU make patsubst
See `config.log' for more details.

Comment: This error seems to imply that GNU make is required to make/compile correctly.

Modify line 2243 from
2243 { (exit 1); exit 1; };}
to
2243 }

2. Modify "Makefile" to remove calls to patsubst function:

Modify lines 637 - 640 from
637 $(patsubst $(Wc)$(Wc)%,$(Wc)%,$(CFLAGS:%=$(Wc)%)) \
638 $(patsubst $(Wc)$(Wc)%,$(Wc)%,$(VAS_CFLAGS:%=$(Wc)%)) \
639 $(patsubst $(Wl)$(Wl)%,$(Wl)%,$(LDFLAGS:%=$(Wl)%)) \
640 $(patsubst $(Wl)$(Wl)%,$(Wl)%,$(VAS_LIBS:%=$(Wl)%)) \
to
637 -g -Wl,/usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.2.libgcc.a \
638 $(VAS_CFLAGS) \
639 $(LDFLAGS) \
640 $(VAS_LIBS) \

3. Modify"test/http-get/get.c" to include code to define "*hsterror" variable;

Error:
/usr/ccs/bin/ld: Unsatisfied symbols:
hstrerror (first referenced in get.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.

Insert following code starting at line 152 of test/http-get/get.c:
152
153 const char *hstrerror (int herr)
154 {
155 static char buf[100];
156 sprintf (buf, "Host lookup error %d", herr);
157 return buf;
158 }
159

Viewing all articles
Browse latest Browse all 1046

Trending Articles