On 2013/01/30 23:47, Matthieu Herrb wrote:
> On Wed, Jan 30, 2013 at 09:07:55PM +0000, Stuart Henderson wrote:
> > On 2013/01/30 21:15, Matthieu Herrb wrote:
> > > On Wed, Jan 30, 2013 at 07:50:56PM +0000, Stuart Henderson wrote:
> > > > 
> > > > Ok so this needs some more, at least for the default flavour.
> > > > 
> > > > cc -c -I/usr/local/include  -I/usr/local/include/libpng -Demacs 
> > > > -DHAVE_CONFIG_H -DUSE_LUCID  -I. 
> > > > -I/usr/ports/pobj/emacs-21.4/emacs-21.4/src       -I/usr/X11R6/include  
> > > >     -O2 -pipe xterm.c
> > > > xterm.c: In function `x_term_init':
> > > > xterm.c:14303: dereferencing pointer to incomplete type
> > > > 
> > > 
> > > Do you have the config.log file  from configure somewhere ? it looks
> > > like HAVE_XRMSETDATABASE is not probed correctly, and thus the builds
> > > fails into a dead branch of the code (the ifndef HAVE_XRMSETDATABASE
> > > part has probably not been compile tested for years...)
> > > 
> > > Probably yet another issue with static linking of X libs.
> > > -- 
> > > Matthieu Herrb
> > > 
> > 
> > I do; lots of "xcb_io.o: Undefined symbol `_xcb_XXX' referenced from
> > text segment" messages after "checking for XrmSetDatabase".
> > 
> 
> You need to set LIB_X11_LIB to -lX11 -lxcb , either by patching the
> configure.in or in s/openbsd.h... 
> 
> but it will probably not be enough... the no_x11 flavor may be easier.
> -- 
> Matthieu Herrb
> 

no_x11 compiles! But it doesn't link:

/tmp//cc2cBegU.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
/tmp//cc2cBegU.o: Definition of symbol `___DTOR_LIST__' (multiply defined)
..
emacs.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
emacs.o: Definition of symbol `___DTOR_LIST__' (multiply defined)



cc -nostartfiles    -L/usr/local/lib       -o temacs pre-crt0.o /usr/lib/crt0.o 
 dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o    charset.o coding.o 
category.o ccl.o     cm.o term.o xfaces.o    emacs.o keyboard.o macros.o 
keymap.o sysdep.o   buffer.o filelock.o insdel.o marker.o   minibuf.o fileio.o 
dired.o filemode.o   cmds.o casetab.o casefiddle.o indent.o search.o regex.o 
undo.o  alloc.o data.o doc.o editfns.o callint.o        eval.o floatfns.o fns.o 
print.o lread.o         abbrev.o syntax.o unexsunos4.o  mocklisp.o bytecode.o   
process.o callproc.o    region-cache.o sound.o atimer.o         doprnt.o 
strftime.o intervals.o textprop.o composite.o md5.o     terminfo.o lastfile.o 
gmalloc.o ralloc.o vm-limit.o              -lossaudio        -lncurses        
`cc -print-libgcc-file-name`  -lm  -lc     `cc -print-libgcc-file-name` 
frame.o: warning: sprintf() is often misused, please use snprintf()
xdisp.o: warning: sprintf() is often misused, please use snprintf()
ccl.o: warning: sprintf() is often misused, please use snprintf()
term.o: warning: sprintf() is often misused, please use snprintf()
term.o: warning: strcpy() is almost always misused, please use strlcpy()
term.o: warning: strcat() is almost always misused, please use strlcat()
keyboard.o: warning: strcpy() is almost always misused, please use strlcpy()
keyboard.o: warning: sprintf() is often misused, please use snprintf()
keyboard.o: warning: strcat() is almost always misused, please use strlcat()
keymap.o: warning: sprintf() is often misused, please use snprintf()
buffer.o: warning: sprintf() is often misused, please use snprintf()
buffer.o: warning: strcpy() is almost always misused, please use strlcpy()
filelock.o: warning: strcpy() is almost always misused, please use strlcpy()
filelock.o: warning: sprintf() is often misused, please use snprintf()
minibuf.o: warning: sprintf() is often misused, please use snprintf()
fileio.o: warning: strcpy() is almost always misused, please use strlcpy()
fileio.o: warning: sprintf() is often misused, please use snprintf()
fileio.o: warning: strcat() is almost always misused, please use strlcat()
data.o: warning: sprintf() is often misused, please use snprintf()
doc.o: warning: strcpy() is almost always misused, please use strlcpy()
doc.o: warning: strcat() is almost always misused, please use strlcat()
editfns.o: warning: strcat() is almost always misused, please use strlcat()
editfns.o: warning: sprintf() is often misused, please use snprintf()
editfns.o: warning: strcpy() is almost always misused, please use strlcpy()
fns.o: warning: sprintf() is often misused, please use snprintf()
print.o: warning: strcpy() is almost always misused, please use strlcpy()
print.o: warning: sprintf() is often misused, please use snprintf()
lread.o: warning: sprintf() is often misused, please use snprintf()
unexsunos4.o: warning: strcpy() is almost always misused, please use strlcpy()
process.o: warning: sprintf() is often misused, please use snprintf()
doprnt.o: warning: sprintf() is often misused, please use snprintf()
terminfo.o: warning: strcpy() is almost always misused, please use strlcpy()
/tmp//cc2cBegU.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
/tmp//cc2cBegU.o: Definition of symbol `___DTOR_LIST__' (multiply defined)
frame.o: warning: sprintf() is often misused, please use snprintf()
xdisp.o: warning: sprintf() is often misused, please use snprintf()
ccl.o: warning: sprintf() is often misused, please use snprintf()
term.o: warning: sprintf() is often misused, please use snprintf()
term.o: warning: strcpy() is almost always misused, please use strlcpy()
term.o: warning: strcat() is almost always misused, please use strlcat()
emacs.o: Definition of symbol `___CTOR_LIST__' (multiply defined)
emacs.o: Definition of symbol `___DTOR_LIST__' (multiply defined)
keyboard.o: warning: strcpy() is almost always misused, please use strlcpy()
keyboard.o: warning: sprintf() is often misused, please use snprintf()
keyboard.o: warning: strcat() is almost always misused, please use strlcat()
keymap.o: warning: sprintf() is often misused, please use snprintf()
buffer.o: warning: sprintf() is often misused, please use snprintf()
buffer.o: warning: strcpy() is almost always misused, please use strlcpy()
filelock.o: warning: strcpy() is almost always misused, please use strlcpy()
filelock.o: warning: sprintf() is often misused, please use snprintf()
minibuf.o: warning: sprintf() is often misused, please use snprintf()
fileio.o: warning: strcpy() is almost always misused, please use strlcpy()
fileio.o: warning: sprintf() is often misused, please use snprintf()
fileio.o: warning: strcat() is almost always misused, please use strlcat()
data.o: warning: sprintf() is often misused, please use snprintf()
doc.o: warning: strcpy() is almost always misused, please use strlcpy()
doc.o: warning: strcat() is almost always misused, please use strlcat()
editfns.o: warning: strcat() is almost always misused, please use strlcat()
editfns.o: warning: sprintf() is often misused, please use snprintf()
editfns.o: warning: strcpy() is almost always misused, please use strlcpy()
fns.o: warning: sprintf() is often misused, please use snprintf()
print.o: warning: strcpy() is almost always misused, please use strlcpy()
print.o: warning: sprintf() is often misused, please use snprintf()
lread.o: warning: sprintf() is often misused, please use snprintf()
unexsunos4.o: warning: strcpy() is almost always misused, please use strlcpy()
process.o: warning: sprintf() is often misused, please use snprintf()
doprnt.o: warning: sprintf() is often misused, please use snprintf()
terminfo.o: warning: strcpy() is almost always misused, please use strlcpy()
collect2: ld returned 1 exit status
*** Error 1 in src (Makefile:99 'temacs')
*** Error 1 in /usr/ports/pobj/emacs-21.4-no_x11/emacs-21.4 (Makefile:265 'src')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2603 
'/usr/ports/pobj/emacs-21.4-no_x11/.build_done')
*** Error 1 in /usr/ports/editors/emacs21 
(/usr/ports/infrastructure/mk/bsd.port.mk:2323 'fake')

Reply via email to