emacs-devel
[Top][All Lists]
Advanced

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

Emacs with GNUstep


From: A. Arias
Subject: Emacs with GNUstep
Date: Fri, 28 Dec 2012 19:00:13 -0600

With pretest 24.2.91 I had a problem to compile. I get something like:

gcc -std=gnu99 -rdynamic -Demacs  -I.
-I/home/german/Instalados/desde-codigo/emacs-24.2.91/src -I../lib
-I/home/german/Instalados/desde-codigo/emacs-24.2.91/src/../lib
-D_REENTRANT -fPIC -fno-strict-aliasing
-I/usr/GNUstep/System/Library/Headers
-I/usr/GNUstep/Local/Library/Headers    -I/usr/include/libxml2
-I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include
-MMD -MF deps/.d -MP     -g3 -O2
-L/usr/GNUstep/System/Library/Libraries
-L/usr/GNUstep/Local/Library/Libraries -lgnustep-gui -lgnustep-base
-lobjc -lpthread  \
          -o temacs  dispnew.o frame.o scroll.o xdisp.o menu.o  window.o
charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o
term.o terminal.o xfaces.o   dbusbind.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 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
font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o gnutls.o
callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o
textprop.o composite.o xml.o profiler.o       fontset.o fringe.o image.o
nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o terminfo.o
lastfile.o    vm-limit.o   ../lib/libgnu.a          -lrt -lrt  -ldbus-1
-lpthread -lrt    -lxml2      -ltinfo   -lselinux     -lgnutls
-lpthread   -lm  
nsterm.o: In function `ns_constrain_all_frames':
/home/german/Instalados/desde-codigo/emacs-24.2.91/src/nsterm.m:574:
undefined reference to `objc_msg_lookup'


the gnustep libraries flags are present. But this don't works. Googling
I found this:

http://stackoverflow.com/questions/11425120/objective-c-on-linux-compile-error

So, I solved the problem adding "-Wl,--no-as-needed" at line 4360 in 
configure.ac:

LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L
${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}
-Wl,--no-as-needed -lgnustep-gui -lgnustep-base -lobjc -lpthread"

Could be possible add this flag in trunk? Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]