* Emacs compile problem (mbsinit unresolved)
@ 2003-05-29 23:59 Doug Chinnery
2003-05-30 5:00 ` Kai Großjohann
2003-05-30 19:55 ` Benjamin Riefenstahl
0 siblings, 2 replies; 7+ messages in thread
From: Doug Chinnery @ 2003-05-29 23:59 UTC (permalink / raw)
I'm trying to compile emacs 21.3 with gcc-3.2.2. When linking the
temacs directory, I get the following error:
Undefined first referenced
symbol in file
mbsinit strftime.o
temacs: fatal error: Symbol referencing errors. No output written to temacs
I can't find any info on this problem with google. Anyone have any
ideas?
--
Doug Chinnery doug@zadall.com
'Dead is the drunkest you can get. But I haven't been that drunk yet' - Tielli
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-05-29 23:59 Emacs compile problem (mbsinit unresolved) Doug Chinnery
@ 2003-05-30 5:00 ` Kai Großjohann
2003-05-30 16:39 ` Doug Chinnery
2003-05-30 19:55 ` Benjamin Riefenstahl
1 sibling, 1 reply; 7+ messages in thread
From: Kai Großjohann @ 2003-05-30 5:00 UTC (permalink / raw)
Doug Chinnery <doug.chinnery@zadall.com> writes:
> Undefined first referenced
> symbol in file
> mbsinit strftime.o
> temacs: fatal error: Symbol referencing errors. No output written to temacs
Some library is missing. It's hard to say which one, though. Can
you go hunting for an mbsinit symbol in your libraries?
And also, maybe the configure run got confused somehow. Want to show
us its output?
--
This line is not blank.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-05-30 5:00 ` Kai Großjohann
@ 2003-05-30 16:39 ` Doug Chinnery
2003-05-30 19:42 ` Kai Großjohann
0 siblings, 1 reply; 7+ messages in thread
From: Doug Chinnery @ 2003-05-30 16:39 UTC (permalink / raw)
kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) writes:
> Doug Chinnery <doug.chinnery@zadall.com> writes:
>
> > Undefined first referenced
> > symbol in file
> > mbsinit strftime.o
> > temacs: fatal error: Symbol referencing errors. No output written to temacs
>
> Some library is missing. It's hard to say which one, though. Can
> you go hunting for an mbsinit symbol in your libraries?
Hmmm, I can't find it in any of the libraries that I have
installed. Where does it normally live? Perhaps I have an older
version of some key lib.
> And also, maybe the configure run got confused somehow. Want to show
> us its output?
thunder [doug-556]-> ./configure
loading cache ./config.cache
checking host system type... i386-pc-sco3.2v5.0.5
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/local/bin/install -c
checking for bison... (cached) bison -y
checking for ranlib... (cached) :
checking for AIX... no
checking the machine- and system-dependent files to find out
- which libraries the lib-src programs will want, and
- whether the GNU malloc routines are usable
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking for _LARGE_FILES value needed for large files... (cached) no
checking for machine/soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) no
checking for soundcard.h... (cached) no
checking for _oss_ioctl in -lossaudio... (cached) no
checking for sys/select.h... (cached) yes
checking for sys/timeb.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for linux/version.h... (cached) no
checking for sys/systeminfo.h... (cached) no
checking for termios.h... (cached) yes
checking for limits.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for termcap.h... (cached) yes
checking for stdio_ext.h... (cached) no
checking for fcntl.h... (cached) yes
checking for term.h... (cached) yes
checking for strings.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys_siglist declaration in signal.h or unistd.h... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for struct utimbuf... (cached) yes
checking return type of signal handlers... (cached) void
checking for speed_t... (cached) yes
checking for struct timeval... (cached) yes
checking for struct exception... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) no
checking for tzname... (cached) yes
checking for tm_gmtoff in struct tm... (cached) no
checking for gcc option to accept ANSI C... (cached) none needed
checking for function prototypes... yes
checking for working volatile... (cached) yes
checking for working const... (cached) yes
checking for void * support... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for long file names... (cached) yes
checking for X... (cached) libraries /usr/lib, headers
checking for malloc_get_state... (cached) no
checking for malloc_set_state... (cached) no
checking whether __after_morecore_hook exists... (cached) no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for dnet_ntoa in -ldnet... (cached) no
checking for main in -lXbsd... (cached) no
checking for cma_open in -lpthreads... (cached) no
checking for XFree86 in /usr/X386... no
checking for Xkb... no
checking for XrmSetDatabase... (cached) yes
checking for XScreenResourceString... (cached) yes
checking for XScreenNumberOfScreen... (cached) yes
checking for XSetWMProtocols... (cached) yes
checking X11 version 6... (cached) before 6
checking X11 version 5... (cached) 5 or newer
checking X11 version 5 with Xaw... (cached) 5 or newer, with Xaw; use toolkit by default
checking X11 toolkit version... (cached) before 6
checking for XmuConvertStandardSelection in -lXmu... (cached) no
checking for XShapeQueryExtension in -lXext... (cached) yes
checking for X11/Xaw3d/Scrollbar.h... (cached) yes
checking for XawScrollbarSetThumb in -lXaw3d... (cached) no
checking for X11/xpm.h... (cached) yes
checking for XpmReadFileToPixmap in -lXpm... (cached) yes
checking for XpmReturnAllocPixels preprocessor define... yes
checking for jerror.h... (cached) yes
checking for jpeg_destroy_compress in -ljpeg... (cached) yes
checking for png.h... (cached) yes
checking for png_get_channels in -lpng... (cached) yes
checking for tiffio.h... (cached) yes
checking for TIFFGetVersion in -ltiff... (cached) yes
checking for gif_lib.h... (cached) yes
checking for EGifPutExtensionLast in -lungif... (cached) no
checking whether netdb declares h_errno... (cached) no
checking for working alloca.h... (cached) no
checking for alloca... (cached) yes
checking for sqrt in -lm... (cached) yes
checking for maillock in -lmail... (cached) no
checking for maillock in -llockfile... (cached) no
checking for liblockfile.so... (cached) no
checking for touchlock... (cached) no
checking for maillock.h... (cached) no
checking for gethostname... (cached) yes
checking for getdomainname... (cached) yes
checking for dup2... (cached) yes
checking for rename... (cached) yes
checking for closedir... (cached) yes
checking for mkdir... (cached) yes
checking for rmdir... (cached) yes
checking for sysinfo... (cached) no
checking for random... (cached) yes
checking for lrand48... (cached) yes
checking for bcopy... (cached) yes
checking for bcmp... (cached) yes
checking for logb... (cached) yes
checking for frexp... (cached) yes
checking for fmod... (cached) yes
checking for rint... (cached) yes
checking for cbrt... (cached) yes
checking for ftime... (cached) yes
checking for res_init... (cached) yes
checking for setsid... (cached) yes
checking for strerror... (cached) yes
checking for fpathconf... (cached) yes
checking for select... (cached) yes
checking for mktime... (cached) yes
checking for euidaccess... (cached) no
checking for getpagesize... (cached) yes
checking for tzset... (cached) yes
checking for setlocale... (cached) yes
checking for utimes... (cached) yes
checking for setrlimit... (cached) yes
checking for setpgid... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for shutdown... (cached) yes
checking for strftime... (cached) yes
checking for getaddrinfo... (cached) no
checking for __fpending... (cached) no
checking for mblen... (cached) yes
checking for mbrlen... (cached) yes
checking for strsignal... (cached) no
checking for setitimer... (cached) yes
checking for ualarm... (cached) yes
checking for index... (cached) yes
checking for rindex... (cached) yes
checking for gai_strerror... (cached) no
checking for mkstemp... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... (cached) yes
checking for working mktime... (cached) no
checking for getloadavg... (cached) no
checking for elf_begin in -lelf... (cached) yes
checking for kvm_open in -lkvm... (cached) no
checking for getloadavg in -lutil... (cached) no
checking for getloadavg in -lgetloadavg... (cached) no
checking for getloadavg... (cached) no
checking for sys/dg_sys_info.h... (cached) no
checking for nlist.h... (cached) yes
checking for n_un in struct nlist... (cached) no
checking whether getloadavg requires setgid... (cached) no
checking for _LARGEFILE_SOURCE value needed for large files... (cached) no
checking for fseeko... (cached) no
checking for grantpt... (cached) yes
checking for getpt... (cached) no
checking for tparm in -lncurses... (cached) yes
checking for dgettext in -lintl... (cached) no
checking whether localtime caches TZ... (cached) no
checking for gettimeofday... (cached) yes
checking whether gettimeofday can accept two arguments... (cached) yes
checking for struct timezone... (cached) yes
checking for socket... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking whether system supports dynamic ptys... no
checking for pid_t... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for size_t... (cached) yes
Configured for `i386-pc-sco3.2v5.0.5'.
Where should the build process find the source code? /u1/doug/emacs-21.3
What operating system and machine description files should Emacs use?
`s/sco5.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -g -O2
Should Emacs use the GNU version of malloc? yes
Should Emacs use a relocating allocator for buffers? yes
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? LUCID
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? /usr/lib
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use -lungif? no
Does Emacs use -lpng? yes
Does Emacs use X toolkit scroll bars? no
creating ./config.status
creating Makefile
creating lib-src/Makefile.c
creating oldXMenu/Makefile
creating man/Makefile
creating lwlib/Makefile
creating src/Makefile.c
creating lisp/Makefile
creating leim/Makefile
creating src/config.h
src/config.h is unchanged
creating src/epaths.h
src/epaths.h is unchanged
creating lib-src/Makefile
creating src/Makefile
thunder [doug-557]->
--
Doug Chinnery doug@zadall.com
'Dead is the drunkest you can get. But I haven't been that drunk yet' - Tielli
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-05-30 16:39 ` Doug Chinnery
@ 2003-05-30 19:42 ` Kai Großjohann
0 siblings, 0 replies; 7+ messages in thread
From: Kai Großjohann @ 2003-05-30 19:42 UTC (permalink / raw)
Doug Chinnery <doug.chinnery@zadall.com> writes:
> kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) writes:
>
>> Doug Chinnery <doug.chinnery@zadall.com> writes:
>>
>> > Undefined first referenced
>> > symbol in file
>> > mbsinit strftime.o
>> > temacs: fatal error: Symbol referencing errors. No output written to temacs
>>
>> Some library is missing. It's hard to say which one, though. Can
>> you go hunting for an mbsinit symbol in your libraries?
>
> Hmmm, I can't find it in any of the libraries that I have
> installed. Where does it normally live? Perhaps I have an older
> version of some key lib.
I don't know that function. I have no idea, really. Hmpf :-{
>> And also, maybe the configure run got confused somehow. Want to show
>> us its output?
>
> thunder [doug-556]-> ./configure
> loading cache ./config.cache
The output looks sane. One last resort would be to remove the
config.cache and try again, maybe config.cache contains bogus
values. But I don't think that's it.
--
This line is not blank.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-05-29 23:59 Emacs compile problem (mbsinit unresolved) Doug Chinnery
2003-05-30 5:00 ` Kai Großjohann
@ 2003-05-30 19:55 ` Benjamin Riefenstahl
2003-06-03 21:56 ` Doug Chinnery
1 sibling, 1 reply; 7+ messages in thread
From: Benjamin Riefenstahl @ 2003-05-30 19:55 UTC (permalink / raw)
Hi Doug,
Doug Chinnery <doug.chinnery@zadall.com> writes:
> Undefined first referenced
> symbol in file
> mbsinit strftime.o
> temacs: fatal error: Symbol referencing errors. No output written to temacs
The Emacs 21.3 version of src/strftime.c believes that if you have
mbrlen(), you must also have mbsinit() without explicitly checking for
the latter function. That seems not to be true on your system. Emacs
in CVS allows for that possibility, but 21.3 doesn't.
Add this line in src/strftime.c to patch it up, and let us know how it
goes:
#define mbsinit(ps) (*(ps) == 0)
Hope this helps, benny
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-05-30 19:55 ` Benjamin Riefenstahl
@ 2003-06-03 21:56 ` Doug Chinnery
2003-06-04 12:39 ` Benjamin Riefenstahl
0 siblings, 1 reply; 7+ messages in thread
From: Doug Chinnery @ 2003-06-03 21:56 UTC (permalink / raw)
Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> writes:
> Doug Chinnery <doug.chinnery@zadall.com> writes:
> > Undefined first referenced
> > symbol in file
> > mbsinit strftime.o
> > temacs: fatal error: Symbol referencing errors. No output written to temacs
>
> The Emacs 21.3 version of src/strftime.c believes that if you have
> mbrlen(), you must also have mbsinit() without explicitly checking for
> the latter function. That seems not to be true on your system. Emacs
> in CVS allows for that possibility, but 21.3 doesn't.
>
> Add this line in src/strftime.c to patch it up, and let us know how it
> goes:
>
> #define mbsinit(ps) (*(ps) == 0)
That fixed my problem nicely. Any suggestions on what I should
be entering in a bug report?
Thanks much!!
--
Doug Chinnery doug@zadall.com
'Dead is the drunkest you can get. But I haven't been that drunk yet' - Tielli
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Emacs compile problem (mbsinit unresolved)
2003-06-03 21:56 ` Doug Chinnery
@ 2003-06-04 12:39 ` Benjamin Riefenstahl
0 siblings, 0 replies; 7+ messages in thread
From: Benjamin Riefenstahl @ 2003-06-04 12:39 UTC (permalink / raw)
Hi Doug,
Doug Chinnery <doug.chinnery@zadall.com> writes:
> That fixed my problem nicely. Any suggestions on what I should be
> entering in a bug report?
It was already fixed in CVS, that's where I got the suggestion. So I
assume that the next version will have it anyway.
so long, benny
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-06-04 12:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-29 23:59 Emacs compile problem (mbsinit unresolved) Doug Chinnery
2003-05-30 5:00 ` Kai Großjohann
2003-05-30 16:39 ` Doug Chinnery
2003-05-30 19:42 ` Kai Großjohann
2003-05-30 19:55 ` Benjamin Riefenstahl
2003-06-03 21:56 ` Doug Chinnery
2003-06-04 12:39 ` Benjamin Riefenstahl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.