Goldschrafe, Jeffrey wrote: >>> Hey there, >>> >>> I'm trying to build Fedora DS 1.1.0 on my buildsystem, >>> >> which is mock >> >>> 0.8.19 on a rather minimal Fedora 8 x86_64 system. >>> >> Regardless of the >> >>> distro I try to build for in mock (I've tried CentOS 5, >>> >> Fedora 8 and >> >>> Fedora Core 6), I hit the following set of build errors: >>> >>> >> Can you post your exact mock command line? >> > > Sure! > > rpmbuild -bs --nodeps /usr/src/redhat/SPECS/fedora-ds-base.spec > mock rebuild -r fedora-8-i386 > /usr/src/redhat/SRPMS/fedora-ds-base-1.1.0-1.2.src.rpm > I know 1.1.0-1.2 built in mock, but I suggest using the latest which is 1.1.0-3. This is the version that is currently in f7, f8, and f9. Also check your mock root log to see if it found the snmp dependencies and installed them correctly. > And here's the relevant mock config: > > -- FILE: /etc/mock/fedora-8-i386.cfg -- > #!/usr/bin/python -tt > > import os > config_opts['root'] = 'fedora-8-i386' > config_opts['target_arch'] = 'i386' > > config_opts['yum.conf'] = """ > [main] > cachedir=/var/cache/yum > debuglevel=1 > reposdir=/dev/null > logfile=/var/log/yum.log > retries=20 > obsoletes=1 > gpgcheck=0 > assumeyes=1 > > # repos > > [core] > name=Fedora 8 > baseurl=http://my-fedora-mirror/releases/8/Everything/i386/os/ > > [updates] > name=updates > baseurl=http://my-fedora-mirror/updates/8/i386/ > > [groups] > name=groups > baseurl=http://buildsys.fedoraproject.org/buildgroups/development/i386/ > > [cshl] > name=cshl > baseurl=http://my-repo-host/8/i386/ > > [local] > name=local > baseurl=http://koji.fedoraproject.org/static-repos/dist-f8-build-current > /i386/ > exclude=*debuginfo* > enabled=0 > """ > > config_opts['macros']['local'] = """ > %fc8 1 > """ > -- END FILE: /etc/mock/fedora-8-i386.cfg -- > > -- FILE: /etc/mock/defaults.cfg -- > config_opts['basedir'] = '/var/lib/mock/' > config_opts['cache_topdir'] = '/var/lib/mock/cache' > config_opts['rpmbuild_timeout'] = 10000000 > config_opts['use_host_resolv'] = True > config_opts['build_log_fmt_name'] = "unadorned" > config_opts['root_log_fmt_name'] = "detailed" > config_opts['state_log_fmt_name'] = "state" > config_opts['internal_dev_setup'] = True > config_opts['internal_setarch'] = False > config_opts['cleanup_on_success'] = 0 > config_opts['cleanup_on_failure'] = 0 > config_opts['plugin_conf']['tmpfs_enable'] = False > config_opts['plugin_conf']['tmpfs_opts'] = {} > config_opts['clean'] = True > config_opts['macros']['defaults'] = """ > %_topdir /builddir/build > %_rpmfilename %%{NAME}-%%{VERSION}-%%{DIST}.%%{RELEASE}.%%{ARCH}.rpm > %packager Jeff Goldschrafe <goldschr at cshl.edu> > %vendor Cold Spring Harbor Laboratory > """ > -- END FILE: /etc/mock/fedora-8-i386.cfg -- > > >>> ---SNIP-- >>> >>> /bin/sh ./libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall >>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector >>> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic >>> -fasynchronous-unwind-tables -o ldclt-bin >>> ldap/servers/slapd/tools/ldclt_bin-ldaptool-sasl.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-data.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-ldapfct.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-ldclt.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-ldcltU.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-parser.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-port.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-scalab01.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-threadMain.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-utils.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-version.o >>> ldap/servers/slapd/tools/ldclt/ldclt_bin-workarounds.o >>> >> -lplc4 -lplds4 >> >>> -lnspr4 -lssl3 -lnss3 -lsoftokn3 -lssldap60 -lprldap60 -lldap60 >>> -lldif60 >>> -lsasl2 >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:64: > >>> undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:62: > >>> undefined reference to `snmp_log' >>> ldap/servers/snmp/ldap_agent_bin-main.o: In function `main': >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:117: > >>> undefined reference to `netsnmp_ds_set_boolean' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:120: > >>> undefined reference to `netsnmp_register_loghandler' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:158: > >>> undefined reference to `snmp_enable_filelog' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:164: > >>> undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:167: > >>> undefined reference to `netsnmp_ds_set_boolean' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:170: > >>> undefined reference to `netsnmp_ds_set_string' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:174: > >>> undefined reference to `netsnmp_daemonize' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:189: > >>> undefined reference to `init_agent' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:191: > >>> undefined reference to `init_snmp' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:213: > >>> undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:217: > >>> undefined reference to `agent_check_and_process' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:221: > >>> undefined reference to `snmp_shutdown' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:222: > >>> undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:202: > >>> undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/m >> > ain.c:206: > >>> undefined reference to `snmp_log' >>> ldap/servers/snmp/ldap_agent_bin-ldap-agent.o: In function >>> `send_DirectoryServerStart_trap': >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:72 >>> 2: undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:73 >>> 1: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:73 >>> 6: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:74 >>> 1: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:74 >>> 6: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:75 >>> 4: undefined reference to `send_v2trap' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:75 >>> 5: undefined reference to `snmp_free_varbind' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:72 >>> 6: undefined reference to `snmp_log' >>> ldap/servers/snmp/ldap_agent_bin-ldap-agent.o: In function >>> `send_DirectoryServerDown_trap': >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:65 >>> 7: undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:66 >>> 6: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:67 >>> 1: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:67 >>> 6: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:68 >>> 1: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:68 >>> 7: undefined reference to `snmp_varlist_add_variable' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:69 >>> 5: undefined reference to `send_v2trap' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:69 >>> 6: undefined reference to `snmp_free_varbind' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:66 >>> 1: undefined reference to `snmp_log' >>> ldap/servers/snmp/ldap_agent_bin-ldap-agent.o: In function >>> `dsEntityTable_get_value': >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:62 >>> 8: undefined reference to `snmp_log' >>> >>> >> /builddir/build/BUILD/fedora-ds-base-1.1.0/ldap/servers/snmp/ldap-agen >> >>> t.c:62 >>> 2: undefined reference to `snmp_set_var_typed_value' >>> >>> ---SNIP--- >>> >>> ...and then about another page of the same stuff, which >>> >> I've omitted >> >>> for brevity. I noticed that the command doesn't seem to include >>> -lsnmp, which I imagine it should be including. >>> >>> >> Are you using make -j or some other parallel make? Because >> the compiler/linker errors you are getting are not from the >> compile/link command above, which is for ldclt. >> > > You're right, it's running make -j2 and my build environment is > dual-core. Here's what I should have pasted instead: > > gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 > -mtune=generic -fasynchronous-unwind-tables -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 -lssldap60 -lprldap60 -lldap60 -lldif60 > -lsasl2 > gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 > -mtune=generic -fasynchronous-unwind-tables -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 -lssldap60 -lprldap60 > -lldap60 -lldif60 -lssl3 -lnss3 -lsoftokn3 -lplc4 -lplds4 -lnspr4 > > >>> Is mock an unsupported build environment for FDS? >>> >> I've used mock to build FDS for f6, f7, f8. >> >>> If not, any idea how to >>> get this building? >>> >>> Thanks a lot! >>> >>> Jeff Goldschrafe <goldschr at cshl.edu> >>> Systems Engineer >>> Cold Spring Harbor Laboratory >>> 1 Bungtown Road >>> Cold Spring Harbor, NY 11724 >>> (516) 367-6966 >>> http://cshl.edu >>> > > -- > Fedora-directory-users mailing list > Fedora-directory-users at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3245 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20080303/e77f54fc/attachment.bin