Re: Meta-things
Daniel Hagerty <[email protected]> Mon, 11 Feb 2002 17:33:59 -0500
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
> gcc -I/workspace/partain/op/tools/pkg_install/info -I/workspace/partain/op/tools/pkg_install/info/../lib -g -O2 -DNEED_FGETLN -DNEED_SETENV -DNEED_UNSETENV -g0 -O0 -I/workspace/partain/op/tools/port/inc0 -I/workspace/partain/op/tools/port/inc1 -I/workspace/partain/op/tools/port/libopcompat -I../../port/db.1.86/dist/include -I/workspace/partain/op/tools/port/db.1.86/dist/include -I/workspace/partain/op/tools/port/md5 -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DHAVE_INT8_T=1 -Du_int8_t=unsigned\ char -Du_int16_t=unsigned\ short -DHAVE_UINT32_T=1 -Du_int32=unsigned\ int -Du_int32_t=unsigned\ int -DHAVE_UINT64_T=1 -Du_int64_t=unsigned\ long\ long -DHAVE_SSIZE_T=1 -DSTDC_HEADERS=1 -DHAVE_REGEX_H=1 -DHAVE_SEARCH_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS
_UTSNAME_H=1 -DHAVE_SYS_VFS_H=1 -D__?\Ó¿¿å£¸Õ¿¿RCSID\(s\)= -D__P\(protos\)=\(\) -DHAVE_GETOPT=1 -DHAVE_MKSTEMP=1 -DHAVE_SNPRINTF=1 -DHAVE_STATVFS=1 -DHAVE_STRSTR=1 -DHAVE_UTIMES=1 -DHAVE_UNISTD_H=1 -DHAVE_VSNPRINTF=1 -DBINDIR=\"/sbin\" -DCHMOD=\"/bin/chmod\" -DCHOWN=\"/bin/chown\" -DCHGRP=\"/bin/chgrp\" -DDEF_LOG_DIR=\"/var/db/pkg\" -L../../port/db.1.86/dist -o pkg_info main.o perform.o show.o -L../lib -linstall -L../../port/md5 -lmd -L../../port/libopcompat -lopcompat ../../make/util.o ../../make/memory.o -ldb
> ld: fatal: symbol `unsetenv' is multiply defined:
> (file ../../port/libopcompat/libopcompat.a(unsetenv.o) and file ../../make/util.o);
> ld: fatal: File processing errors. No output written to pkg_info
These sorts of things usually come from the configure process
doing the wrong thing.
Try removing unsetenv.o from libopcompat. pkg_info should link at
that point. If other things stop linking from lack of an unsetenv,
than unsetenv.o should be put back in the library, and the definition
of unsetenv in make/util.o should be removed.