Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problem with gcc-2.95.3 #25

Closed
michaelrsweet opened this issue Apr 16, 2003 · 3 comments
Closed

Compilation problem with gcc-2.95.3 #25

michaelrsweet opened this issue Apr 16, 2003 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.19rc1
CUPS.org User: egal1976.web

Under Solaris with gcc 2.95.3, I get the error messages
Compiling ipp-var.c...
ipp-var.c: In function ippSetCGIVars': ipp-var.c:240: warning: null format string ipp-var.c:326: union has no member namedcollection'
make[1]: *** [ipp-var.o] Error 1
make: *** [all] Error 1

Under IRIX with original compiler there is no problem.

Additional info:
gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)

No problem with gcc-3.2.x or original IRIX Compiler.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Can you post your Makedefs file so we can see what include directories are there?

Thanks!

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: egal1976.web

You're right, it occurs only if I try to use another include directory with CFLAGS, CXXFLAGS

CFLAGS = $(RC_CFLAGS) -I/vw/cups/include -I.. $(OPTIONS)

I want to install cups completely under /vw/cups directory, it should not use other libraries or includes. libz, jpeg, tiff, png are already installed, hier is ls -la /vw/cups/include:
286% ls -la /vw/cups/include/
total 628
drwxr-xr-x 3 root root 512 Apr 2 12:35 .
drwxr-xr-x 10 root root 512 Apr 2 08:07 ..
drwxr-xr-x 2 root root 512 Apr 2 14:50 cups
-rw-r--r-- 1 root root 1258 Apr 2 08:22 jconfig.h
-rw-r--r-- 1 root root 13936 Apr 2 08:22 jerror.h
-rw-r--r-- 1 root root 12458 Apr 2 08:22 jmorecfg.h
-rw-r--r-- 1 root root 46205 Apr 2 08:22 jpeglib.h
-rw-r--r-- 1 root root 117483 Apr 2 08:21 png.h
-rw-r--r-- 1 root root 28150 Apr 2 08:21 pngconf.h
-r--r--r-- 1 root root 19731 Apr 2 12:35 tiff.h
-r--r--r-- 1 root root 12276 Apr 2 12:35 tiffio.h
-rw-r--r-- 1 root root 7810 Apr 2 08:20 zconf.h
-rw-r--r-- 1 root root 40898 Apr 2 08:20 zlib.h

I had no problem with CUPS-1.1.18.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: egal1976.web

got it.
it's not a problem with gcc, sorry. it's a problem with includes I use in /vw/cups/include. If I change the line
CFLAGS = $(RC_CFLAGS) -I/vw/cups/include -I.. $(OPTIONS)
to
CFLAGS = $(RC_CFLAGS) -I.. -I/vw/cups/include $(OPTIONS)
and now it works.
Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant