On Wednesday 20 February 2008 6:22 pm, Rich Megginson wrote:
>>> Where would I have to define that? I tried adding
>>>
>>> DS_CONFIGURE_ARGS = NETSNMP_USE_INLINE=1
>>
>> Try adding
>> DS_CONFIGURE_ENV += CPPFLAGS=-DNETSNMP_USE_INLINE=1
>> to somewhere around line 21 of dsbuild/ds/Makefile
>>
>> I think the proper solution will be to modify the ldapserver code to
>> allow for net-snmp specific compiler and linker flags. But this will at
>> least make the definition as localized as possible.
>
> I added that line to /usr/src/dsbuild/ds/ldapserver/Makefile. Which is
> what I *think* you meant.
Yes, that's what I meant :-)
> I then tried to start the dsbuild process over having
> dsbuild handle svrcore, perl/mozldap and it errors at the same point
> again.
Ok. You'll have to remove the cookies and the code to force it to start
over again from the configure stage:
rm -rf dsbuild/ds/ldapserver/work dsbuild/ds/ldapserver/cookies
Then do
make -C dsbuild/meta/ds SVRCORE_SOURCE=1 MOZLDAP_SOURCE=1
PERLDAP_SOURCE=1
again.
It looks like it bails with the same error. I'll try building the snmp source
for giggles, but we'll see what to try next to fix the original issue.
Here is /usr/src/dsbuild/ds/ldapserver/Makefile
{{{
include ../../objdirname.mk
GARNAME = fedora-ds-base
GARVERSION = 1.1.0
CATEGORIES = ds
PATCHFILES =
PKGDIR = $(ABS_GARDIR)/$(CATEGORIES)/ldapserver/work/pkg
ifdef USE_CVS
CVSMODULES = ldapserver
else
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
endif
LIBDEPS =
DESCRIPTION = Fedora Directory Server (base)
CONFIGURE_ARGS = $(DS_CONFIGURE_ARGS) --enable-bundle
DS_CONFIGURE_ENV += CPPFLAGS=-DNETSNMP_USE_INLINE=1
CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile
ifdef USE_CVS
post-extract: extract-cvs
endif
# this is our "custom" patch target
ifdef MYPATCH
post-patch:
cat $(addprefix download/,$(MYPATCH)) | ( cd
work/$(GARNAME)-$(GARVERSION) ; patch -p1 )
$(MAKECOOKIE)
endif
include ../../gar.conf.mk
include ../category.mk
}}}
and the tail end of the build.
/bin/sh ./libtool --tag=CC --mode=link gcc -g -o infadd-bin
ldap/servers/slapd/tools/rsearch/infadd_bin-addthread.o
ldap/servers/slapd/tools/rsearch/infadd_bin-infadd.o
ldap/servers/slapd/tools/rsearch/infadd_bin-nametable.o -lplc4 -lplds4 -lnspr4 -lssl3
-lnss3 -lsoftokn3 -L/opt/dirsrv/lib -lssldap60 -lprldap60 -lldap60 -lldif60 -lsasl2
gcc -g -o infadd-bin ldap/servers/slapd/tools/rsearch/infadd_bin-addthread.o
ldap/servers/slapd/tools/rsearch/infadd_bin-infadd.o
ldap/servers/slapd/tools/rsearch/infadd_bin-nametable.o -lplc4 -lplds4 -lnspr4 -lssl3
-lnss3 -lsoftokn3 -L/opt/dirsrv/lib -lssldap60 -lprldap60 -lldap60 -lldif60
/usr/lib/libsasl2.so -ldl -lresolv
if
gcc -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_NUM=\"2008.051.1835\" -I./ldap/include
-I./ldap/servers/slapd -I./include -I.
-DLOCALSTATEDIR="\"/opt/dirsrv/var\""
-DSYSCONFDIR="\"/opt/dirsrv/etc\""
-DLIBDIR="\"/opt/dirsrv/lib\""
-DBINDIR="\"/opt/dirsrv/bin\""
-DDATADIR="\"/opt/dirsrv/share\"" -DDOCDIR="\"\""
-DSBINDIR="\"/opt/dirsrv/sbin\""
-DPLUGINDIR="\"/opt/dirsrv/lib/dirsrv/plugins\""
-DTEMPLATEDIR="\"/opt/dirsrv/share/dirsrv/data\"" -I/usr/include
-I/opt/dirsrv/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nspr -g
-MT
ldap/servers/snmp/ldap_agent_bin-main.o -MD -MP -MF
"ldap/servers/snmp/.deps/ldap_agent_bin-main.Tpo" -c -o
ldap/servers/snmp/ldap_agent_bin-main.o
`test -f 'ldap/servers/snmp/main.c' || echo './'`ldap/servers/snmp/main.c;
\
then
mv -f "ldap/servers/snmp/.deps/ldap_agent_bin-main.Tpo"
"ldap/servers/snmp/.deps/ldap_agent_bin-main.Po";
else rm -f "ldap/servers/snmp/.deps/ldap_agent_bin-main.Tpo"; exit 1; fi
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/main.c:49:
./config.h:295:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/main.c:49:
/usr/include/net-snmp/net-snmp-config.h:946:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/main.c:49:
./config.h:298:1: warning: "PACKAGE_NAME" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/main.c:49:
/usr/include/net-snmp/net-snmp-config.h:949:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/main.c:49:
./config.h:301:1: warning: "PACKAGE_STRING" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/main.c:49:
/usr/include/net-snmp/net-snmp-config.h:952:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/main.c:49:
./config.h:304:1: warning: "PACKAGE_TARNAME" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/main.c:49:
/usr/include/net-snmp/net-snmp-config.h:955:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/main.c:49:
./config.h:307:1: warning: "PACKAGE_VERSION" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/main.c:49:
/usr/include/net-snmp/net-snmp-config.h:958:1: warning: this is the location
of the previous definition
if
gcc -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_NUM=\"2008.051.1835\" -I./ldap/include
-I./ldap/servers/slapd -I./include -I.
-DLOCALSTATEDIR="\"/opt/dirsrv/var\""
-DSYSCONFDIR="\"/opt/dirsrv/etc\""
-DLIBDIR="\"/opt/dirsrv/lib\""
-DBINDIR="\"/opt/dirsrv/bin\""
-DDATADIR="\"/opt/dirsrv/share\"" -DDOCDIR="\"\""
-DSBINDIR="\"/opt/dirsrv/sbin\""
-DPLUGINDIR="\"/opt/dirsrv/lib/dirsrv/plugins\""
-DTEMPLATEDIR="\"/opt/dirsrv/share/dirsrv/data\"" -I/usr/include
-I/opt/dirsrv/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nspr -g
-MT
ldap/servers/snmp/ldap_agent_bin-ldap-agent.o -MD -MP -MF
"ldap/servers/snmp/.deps/ldap_agent_bin-ldap-agent.Tpo" -c -o
ldap/servers/snmp/ldap_agent_bin-ldap-agent.o
`test -f 'ldap/servers/snmp/ldap-agent.c' ||
echo './'`ldap/servers/snmp/ldap-agent.c; \
then
mv -f "ldap/servers/snmp/.deps/ldap_agent_bin-ldap-agent.Tpo"
"ldap/servers/snmp/.deps/ldap_agent_bin-ldap-agent.Po";
else rm -f "ldap/servers/snmp/.deps/ldap_agent_bin-ldap-agent.Tpo"; exit 1;
fi
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/ldap-agent.c:45:
./config.h:295:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/ldap-agent.c:45:
/usr/include/net-snmp/net-snmp-config.h:946:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/ldap-agent.c:45:
./config.h:298:1: warning: "PACKAGE_NAME" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/ldap-agent.c:45:
/usr/include/net-snmp/net-snmp-config.h:949:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/ldap-agent.c:45:
./config.h:301:1: warning: "PACKAGE_STRING" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/ldap-agent.c:45:
/usr/include/net-snmp/net-snmp-config.h:952:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/ldap-agent.c:45:
./config.h:304:1: warning: "PACKAGE_TARNAME" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/ldap-agent.c:45:
/usr/include/net-snmp/net-snmp-config.h:955:1: warning: this is the location
of the previous definition
In file included from ldap/servers/snmp/../slapd/agtmmap.h:40,
from ldap/servers/snmp/ldap-agent.h:56,
from ldap/servers/snmp/ldap-agent.c:45:
./config.h:307:1: warning: "PACKAGE_VERSION" redefined
In file included from ldap/servers/snmp/ldap-agent.h:50,
from ldap/servers/snmp/ldap-agent.c:45:
/usr/include/net-snmp/net-snmp-config.h:958:1: warning: this is the location
of the previous definition
if
gcc -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_NUM=\"2008.051.1835\" -I./ldap/include
-I./ldap/servers/slapd -I./include -I.
-DLOCALSTATEDIR="\"/opt/dirsrv/var\""
-DSYSCONFDIR="\"/opt/dirsrv/etc\""
-DLIBDIR="\"/opt/dirsrv/lib\""
-DBINDIR="\"/opt/dirsrv/bin\""
-DDATADIR="\"/opt/dirsrv/share\"" -DDOCDIR="\"\""
-DSBINDIR="\"/opt/dirsrv/sbin\""
-DPLUGINDIR="\"/opt/dirsrv/lib/dirsrv/plugins\""
-DTEMPLATEDIR="\"/opt/dirsrv/share/dirsrv/data\"" -I/usr/include
-I/opt/dirsrv/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nspr -g
-MT
ldap/servers/slapd/ldap_agent_bin-agtmmap.o -MD -MP -MF
"ldap/servers/slapd/.deps/ldap_agent_bin-agtmmap.Tpo" -c -o
ldap/servers/slapd/ldap_agent_bin-agtmmap.o
`test -f 'ldap/servers/slapd/agtmmap.c' ||
echo './'`ldap/servers/slapd/agtmmap.c; \
then
mv -f "ldap/servers/slapd/.deps/ldap_agent_bin-agtmmap.Tpo"
"ldap/servers/slapd/.deps/ldap_agent_bin-agtmmap.Po";
else rm -f "ldap/servers/slapd/.deps/ldap_agent_bin-agtmmap.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CC --mode=link gcc -g -o ldap-agent-bin
ldap/servers/snmp/ldap_agent_bin-main.o
ldap/servers/snmp/ldap_agent_bin-ldap-agent.o
ldap/servers/slapd/ldap_agent_bin-agtmmap.o -L/opt/dirsrv/lib -lssldap60 -lprldap60
-lldap60 -lldif60 -lsasl2 -lssl3 -lnss3 -lsoftokn3 -lplc4 -lplds4 -lnspr4 -L/usr/lib
-lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -lm -ldl -lsensors -lwrap -lwrap
gcc -g -o ldap-agent-bin ldap/servers/snmp/ldap_agent_bin-main.o
ldap/servers/snmp/ldap_agent_bin-ldap-agent.o
ldap/servers/slapd/ldap_agent_bin-agtmmap.o -L/opt/dirsrv/lib -lssldap60 -lprldap60
-lldap60 -lldif60 /usr/lib/libsasl2.so -lresolv -lssl3 -lnss3 -lsoftokn3 -lplc4 -lplds4
-lnspr4 -L/usr/lib /usr/lib/libnetsnmpmibs.so /usr/lib/libnetsnmpagent.so
/usr/lib/libnetsnmphelpers.so /usr/lib/libnetsnmp.so -lcrypto -lm -ldl -lsensors -lwrap
ldap/servers/snmp/ldap_agent_bin-ldap-agent.o: In function `init_ldap_agent':
ldap/servers/snmp/ldap-agent.c:98: undefined reference to `CONTAINER_INSERT'
collect2: ld returned 1 exit status
make[3]: *** [ldap-agent-bin] Error 1
make[3]: Leaving directory
`/usr/src/dsbuild/ds/ldapserver/work/fedora-ds-base-1.1.0'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/src/dsbuild/ds/ldapserver/work/fedora-ds-base-1.1.0'
make[1]: *** [build-work/fedora-ds-base-1.1.0/Makefile] Error 2
make[1]: Leaving directory `/usr/src/dsbuild/ds/ldapserver'
make: *** [dep-../../ds/ldapserver] Error 2
make: Leaving directory `/usr/src/dsbuild/meta/ds'