Date: Sun, 8 Sep 2013 07:12:29 GMT From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/181929: net/openldap24-server: libtool: compile: gcc -g -O2 -Wall -DDO_SAMBA -I../../../include -I../../../include -I../../../servers/slapd -I/usr/heimdal/include -c smbk5pwd.c -fPIC -DPIC -o .libs/smbk5pwd.o eval: gcc: not found *** Error code 1 Message-ID: <201309080712.r887CTu7058138@oldred.freebsd.org> Resent-Message-ID: <201309080720.r887K0CY009641@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 181929 >Category: ports >Synopsis: net/openldap24-server: libtool: compile: gcc -g -O2 -Wall -DDO_SAMBA -I../../../include -I../../../include -I../../../servers/slapd -I/usr/heimdal/include -c smbk5pwd.c -fPIC -DPIC -o .libs/smbk5pwd.o eval: gcc: not found *** Error code 1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 08 07:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: O. Hartmann >Release: FreeBSD 10.0-CURRENT/amd64 >Organization: FU Berlin >Environment: FreeBSD 10.0-CURRENT #2 r255356: Sat Sep 7 13:04:03 CEST 2013 amd64 >Description: After having built a world on CURRENT r255356 and having done "make delete-old" the outdated gnuish compiler stuff gets deleted. After that, port net/openldap[-sasl]-server rejects to compile due to the shown error. Somehwere the compiler seems to be hardcoded. This somewhere is file contrib/slapd-modules/smbk5pwd/Makefile. [...] --- all-common --- for page in slapacl.8 slapadd.8 slapauth.8 slapcat.8 slapd.8 slapdn.8 slapindex.8 slappasswd.8 slapschema.8 slaptest.8; do sed -e "s%LDVERSION%2.4.36%" -e 's%ETCDIR%/usr/local/etc/openldap%g' -e 's%LOCALSTATEDIR%/var/db%' -e 's%SYSCONFDIR%/usr/local/etc/openldap%' -e 's%DATADIR%/usr/local/share/openldap%' -e 's%SBINDIR%/usr/local/sbin%' -e 's%BINDIR%/usr/local/bin%' -e 's%LIBDIR%/usr/local/lib%' -e 's%LIBEXECDIR%/usr/local/libexec%' -e 's%MODULEDIR%/usr/local/libexec/openldap%' -e 's%RELEASEDATE%2013/08/17%' ./$page | (cd .; soelim -) > $page.tmp; done /usr/local/bin/libtool --mode=compile gcc -g -O2 -Wall -DDO_SAMBA -I../../../include -I../../../include -I../../../servers/slapd -I/usr/heimdal/include -c smbk5pwd.c libtool: compile: gcc -g -O2 -Wall -DDO_SAMBA -I../../../include -I../../../include -I../../../servers/slapd -I/usr/heimdal/include -c smbk5pwd.c -fPIC -DPIC -o .libs/smbk5pwd.o eval: gcc: not found *** Error code 1 Stop. make[2]: stopped in /usr/ports/net/openldap24-server/work/openldap-2.4.36/contrib/slapd-modules/smbk5pwd *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/openldap24-server *** Error code 1 Stop. make: stopped in /usr/ports/net/openldap24-server ===>>> make failed for net/openldap24-server ===>>> Aborting update ===>>> Killing background jobs >How-To-Repeat: Stay with most recent CURRENT, follow all deletions of GNU stuff (make delete-old), start building this port. >Fix: I attached a patch, simple one without knowing why people had hardcoded CC/gcc. Patch attached with submission follows: diff -Nur openldap24-server.orig/files/patch-smbk5pwd-Makefile openldap24-server/files/patch-smbk5pwd-Makefile --- openldap24-server.orig/files/patch-smbk5pwd-Makefile 2013-09-08 09:01:04.000000000 +0200 +++ openldap24-server/files/patch-smbk5pwd-Makefile 2013-09-08 09:06:43.000000000 +0200 @@ -1,12 +1,15 @@ ---- contrib/slapd-modules/smbk5pwd/Makefile.orig 2013-03-03 13:17:30.000000000 -0800 -+++ contrib/slapd-modules/smbk5pwd/Makefile 2013-03-14 10:54:56.917578861 -0700 -@@ -24,13 +24,12 @@ +--- contrib/slapd-modules/smbk5pwd/Makefile.orig 2013-08-16 20:12:59.000000000 +0200 ++++ contrib/slapd-modules/smbk5pwd/Makefile 2013-09-08 09:06:34.000000000 +0200 +@@ -24,18 +24,19 @@ HEIMDAL_INC = -I/usr/heimdal/include HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv -LIBTOOL = $(LDAP_BUILD)/libtool - CC = gcc - OPT = -g -O2 -Wall +-CC = gcc +-OPT = -g -O2 -Wall ++#CC = gcc ++#OPT = -g -O2 -Wall ++OPT = $(CFLAGS) # Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it. DEFS = -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW INCS = $(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC) @@ -15,3 +18,10 @@ PROGRAMS = smbk5pwd.la LTVER = 0:0:0 + +-prefix=/usr/local ++#prefix=/usr/local ++prefix=$(PREFIX) + exec_prefix=$(prefix) + ldap_subdir=/openldap + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309080712.r887CTu7058138>