Re: notes on building fds in etch and a failed build question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ryan Braun wrote:
<snip>
Once I get it built and working I'd be more then happy to whip up a debian page on the wiki. I'm trying to keep some detailed notes on the process so I should have something to add to the page.
Thanks!
Looks like perhaps NETSNMP_USE_INLINE is not defined for some reason -
it expects CONTAINER_INSERT to be defined inline, but it's not, and not
defined in any libraries either.  Looks like on debian it expects you to
define NETSNMP_USE_INLINE=1 explicitly even though it looks as though it
was built that way.  On RHEL/Fedora, it looks like the
NETSNMP_USE_INLINE is implicit.
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.
But I could have added that line to the wrong file :)

infinity:/usr/src/dsbuild/meta/ds# make SVRCORE_SOURCE=1 MOZLDAP_SOURCE=1 PERLDAP_SOURCE=1
[===== NOW BUILDING:     ds-1.1.0       =====]
        [fetch] complete for ds.
        [checksum] complete for ds.
        [extract] complete for ds.
        [patch] complete for ds.
 ==> Building ds/svrcore as a dependency
 ==> Building ds/mozldap as a dependency
 ==> Building ds/perldap as a dependency
 ==> Building ds/ldapserver as a dependency
cat: /etc/redhat-release: No such file or directory
make[1]: Entering directory `/usr/src/dsbuild/ds/ldapserver'
[===== NOW BUILDING:     fedora-ds-base-1.1.0   =====]
        [fetch] complete for fedora-ds-base.
        [checksum] complete for fedora-ds-base.
        [extract] complete for fedora-ds-base.
        [patch] complete for fedora-ds-base.
        [configure] complete for fedora-ds-base.
 ==> Running make in work/fedora-ds-base-1.1.0
make[2]: Entering directory `/usr/src/dsbuild/ds/ldapserver/work/fedora-ds-base-1.1.0'
make  all-am
make[3]: Entering directory `/usr/src/dsbuild/ds/ldapserver/work/fedora-ds-base-1.1.0' /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

--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

<<attachment: smime.p7s>>

--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux