Bug 1394 - Cannot compile. inl and outl undefined
Summary: Cannot compile. inl and outl undefined
Status: RESOLVED DUPLICATE of bug 2096
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: git
Hardware: SPARC Solaris
: high major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-15 15:32 UTC by Aaron Williams
Modified: 2005-05-14 18:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Aaron Williams 2004-09-15 15:32:12 UTC
When attempting to compile X11r6.8 on Solaris 2.8 using Sun Forte 6.1 
compiler, I get the following error: 
 
 
cc -c -xO4 -xstrconst -xarch=v8plus -xprefetch -xvector=yes -Xa -v -zlazyload 
-zcombreloc -xstrconst -xildoff     -I. 
-I../../../../../programs/Xserver/hw/xfree86/common 
-I../../../../../programs/Xserver/hw/xfree86/os-support  
-I../../../../../programs/Xserver/include -I../../../../../exports/include/X11 
-I../../../../../programs/Xserver/hw/xfree86/scanpci  
-I../../../../../programs/Xserver/hw/xfree86/dummylib  -I../../../../.. 
-I../../../../../exports/include   -Dsun -Dsparc -DSVR4 -D__EXTENSIONS__ 
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP  -DXF86BIGFONT 
-DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DRANDR -DXFIXES -DDAMAGE 
-DCOMPOSITE -DXEVIE -DINCLUDE_ALLOCA_H -DAVOID_GLYPHBLT -DPIXPRIV 
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server 
-DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension 
-DX_BYTE_ORDER=X_BIG_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 
100000) + ((0) * 1000) + 0)"   -DNDEBUG      -D__XCONFIGFILE__='"xorg.conf"' 
-D__XCONFIGDIR__='"/usr/X11R6/lib/X11"' -D__XLOGFILE__='"Xorg"' 
-D__XSERVERNAME__='"Xorg"'   scanpci.c 
"scanpci.c", line 212: warning: Function has no return statement : main 
rm -f scanpci 
LD_RUN_PATH=/usr/X11R6/lib cc -o scanpci -xO4 -xstrconst -xarch=v8plus 
-xprefetch -xvector=yes -Xa -v -zlazyload -zcombreloc -xstrconst -xildoff     
-L../../../../../exports/lib   scanpci.o -L../os-support -lxf86_os 
-L../scanpci -lscanpci -L../dummylib -ldummy     -lsocket -lnsl  
-Wl,-z,lazyload 
Undefined                       first referenced 
 symbol                             in file 
outl                                ../os-support/libxf86_os.a(Pci.o) 
inl                                 ../os-support/libxf86_os.a(Pci.o) 
ld: fatal: Symbol referencing errors. No output written to scanpci 
*** Error code 1 
make: Fatal error: Command failed for target `scanpci' 
Current working 
directory /work/aaronw/ftp/x/build/programs/Xserver/hw/xfree86/etc 
*** Error code 1 
make: Fatal error: Command failed for target `all' 
Current working directory /work/aaronw/ftp/x/build/programs/Xserver/hw/xfree86 
*** Error code 1 
make: Fatal error: Command failed for target `hw/xfree86' 
Current working directory /work/aaronw/ftp/x/build/programs/Xserver 
*** Error code 1 
make: Fatal error: Command failed for target `all' 
Current working directory /work/aaronw/ftp/x/build/programs 
*** Error code 1 
make: Fatal error: Command failed for target `all' 
Current working directory /work/aaronw/ftp/x/build 
*** Error code 1 
make: Fatal error: Command failed for target `World' 
Current working directory /work/aaronw/ftp/x/build 
*** Error code 1 
make: Fatal error: Command failed for target `World' 
 
uname -a 
SunOS net 5.8 Generic_108528-20 sun4u sparc SUNW,UltraAX-i2 
 
 
Note that I had to change -Kpic to -KPIC to get this far in sun.cf  Also 
changed it from -Xarch=v8 to -Xarch=v8plus.
Comment 1 Daniel Stone 2004-12-09 03:01:01 UTC
*** Bug 792 has been marked as a duplicate of this bug. ***
Comment 2 Alan Coopersmith 2005-05-15 11:58:15 UTC
inl & outl are defined as inline assembly language functions.
Xorg 6.8.0 only contained definitions of these for the gcc compiler and didn't
work with the Sun compilers.   This was fixed for 6.8.2 by bug #2096, which
provided versions for the Sun compilers.    Closing as duplicate of that one.

*** This bug has been marked as a duplicate of 2096 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.